59,60c59,65
< func = obj_type.methods[methodId]
< func.checkArguments(self.expr_ast_vec)
---
> if len(self.expr_ast_vec) != \
> len(obj_type.methods[methodId].param_types):
> # Right number of parameters
> self.error("Wrong number of parameters for function name: '%s', " + \
> "expected: , actual: ", proc_name,
> len(obj_type.methods[methodId].param_types),
> len(self.expr_ast_vec))
61a67,73
> for actual_type, expected_type in \
> zip(paramTypes, obj_type.methods[methodId].param_types):
> if actual_type != expected_type and \
> str(actual_type["interface"]) != str(expected_type):
> self.error("Type mismatch: expected: %s actual: %s",
> expected_type, actual_type)
>
69c81
< def __init__(self, slicc, obj_expr_ast, func_call):
---
> def __init__(self, slicc, obj_expr_ast, proc_name, expr_ast_vec):
71c83,84
< s.__init__(slicc, func_call.proc_name, func_call.exprs)
---
> s.__init__(slicc, proc_name, expr_ast_vec)
>