Compare commits
2 Commits
8182e1ee7a
...
9cf2ff6f37
Author | SHA1 | Date | |
---|---|---|---|
9cf2ff6f37 | |||
b402857713 |
@ -206,8 +206,12 @@ public class ASTGenerator extends DecafBaseVisitor<Node> {
|
|||||||
for(DecafParser.ReceivingMethodContext receivingMethod: ctx.receivingMethod()) {
|
for(DecafParser.ReceivingMethodContext receivingMethod: ctx.receivingMethod()) {
|
||||||
receivingMethods.add((ReceivingMethod) visit(receivingMethod));
|
receivingMethods.add((ReceivingMethod) visit(receivingMethod));
|
||||||
}
|
}
|
||||||
Receiver receiver = (Receiver) visit(ctx.receiver());
|
if (ctx.receiver() != null) {
|
||||||
return new MethodCallStatementExpression(methodName, receiver, receivingMethods, arguments);
|
Receiver receiver = (Receiver) visit(ctx.receiver());
|
||||||
|
return new MethodCallStatementExpression(methodName, receiver, receivingMethods, arguments);
|
||||||
|
} else {
|
||||||
|
return new MethodCallStatementExpression(methodName, null, receivingMethods, arguments);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Loading…
Reference in New Issue
Block a user