public override ASTNode VisitDispatchImplicit([NotNull] CoolParser.DispatchImplicitContext context)
 {
     return(new ImplicitDispatch(context.Start.Line, context.Start.Column)
     {
         IdMethod = new IdNode(context.ID().Symbol.Line, context.ID().Symbol.Column, context.ID().GetText()),
         Arguments = (from arg in context.expr() select Visit(arg) as ExpressionNode).ToList()
     });
 }
예제 #2
0
 public override ASTNode VisitDispatchImplicit([NotNull] CoolParser.DispatchImplicitContext context)
 {
     return(new DispatchImplicitNode(context)
     {
         IdMethod = new IdNode(context, context.ID().GetText()),
         Arguments = (from x in context.expression() select Visit(x) as ExpressionNode).ToList()
     });
 }