Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
30334dc393
@ -206,8 +206,12 @@ public class ASTGenerator extends DecafBaseVisitor<Node> {
|
||||
for(DecafParser.ReceivingMethodContext receivingMethod: ctx.receivingMethod()) {
|
||||
receivingMethods.add((ReceivingMethod) visit(receivingMethod));
|
||||
}
|
||||
if (ctx.receiver() != null) {
|
||||
Receiver receiver = (Receiver) visit(ctx.receiver());
|
||||
return new MethodCallStatementExpression(methodName, receiver, receivingMethods, arguments);
|
||||
} else {
|
||||
return new MethodCallStatementExpression(methodName, null, receivingMethods, arguments);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Loading…
Reference in New Issue
Block a user