Compare commits
No commits in common. "d2b307f86ffe67135831a5647b0cd9c4f7c212b7" and "6c015e72d5f7569469e06800895f372633e5ca30" have entirely different histories.
d2b307f86f
...
6c015e72d5
@ -57,7 +57,7 @@ public class MethodCallStatementExpression extends AbstractType implements IExpr
|
|||||||
receiver.instVarExpression.typeCheck(methodContext, typeContext, localVars);
|
receiver.instVarExpression.typeCheck(methodContext, typeContext, localVars);
|
||||||
currentType = typeContext.get(typeOfSubreceiver).get(mostLeftField);
|
currentType = typeContext.get(typeOfSubreceiver).get(mostLeftField);
|
||||||
} else {
|
} else {
|
||||||
currentType = classToSearchMethodIn;
|
currentType = thisClass;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
currentType = thisClass;
|
currentType = thisClass;
|
||||||
@ -74,9 +74,6 @@ public class MethodCallStatementExpression extends AbstractType implements IExpr
|
|||||||
}
|
}
|
||||||
currentType = (String) methodContext.get(currentType).get(methodName).keySet().toArray()[0];
|
currentType = (String) methodContext.get(currentType).get(methodName).keySet().toArray()[0];
|
||||||
|
|
||||||
for (IExpression argument : arguments) {
|
|
||||||
argument.typeCheck(methodContext, typeContext, localVars);
|
|
||||||
}
|
|
||||||
TypeCheckResult result = new TypeCheckResult();
|
TypeCheckResult result = new TypeCheckResult();
|
||||||
result.type = currentType;
|
result.type = currentType;
|
||||||
setTypeCheckResult(result);
|
setTypeCheckResult(result);
|
||||||
|
Loading…
Reference in New Issue
Block a user