Exemplo n.º 1
0
 public override Instr[] VisitMethod_call([NotNull] JavaParser.Method_callContext context)
 {
     return(new[] {
         new MethodCallInstr {
             Name = string.Join(".", context.ID().Take(context.ID().Count() - 1).Select(x => x.GetText())),
             Arg = context.ID().Last().GetText()
         }
     });
 }
Exemplo n.º 2
0
 /// <summary>
 /// Exit a parse tree produced by <see cref="JavaParser.method_call"/>.
 /// <para>The default implementation does nothing.</para>
 /// </summary>
 /// <param name="context">The parse tree.</param>
 public virtual void ExitMethod_call([NotNull] JavaParser.Method_callContext context)
 {
 }
Exemplo n.º 3
0
 /// <summary>
 /// Visit a parse tree produced by <see cref="JavaParser.method_call"/>.
 /// <para>
 /// The default implementation returns the result of calling <see cref="AbstractParseTreeVisitor{Result}.VisitChildren(IRuleNode)"/>
 /// on <paramref name="context"/>.
 /// </para>
 /// </summary>
 /// <param name="context">The parse tree.</param>
 /// <return>The visitor result.</return>
 public virtual Result VisitMethod_call([NotNull] JavaParser.Method_callContext context)
 {
     return(VisitChildren(context));
 }