Example #1
0
        public override object VisitExeCommandCall([NotNull] OALParser.ExeCommandCallContext context)
        {
            String CallerClass  = ParseUtil.StripWhiteSpace(context.GetChild(1).GetText());
            String CallerMethod = ParseUtil.StripWhiteSpace(context.GetChild(3).GetText());

            String RelationshipName = context.GetChild(9).GetText().Contains("across") ? ParseUtil.StripWhiteSpace(context.GetChild(10).GetText()) : null;

            String CalledClass  = ParseUtil.StripWhiteSpace(context.GetChild(5).GetText());
            String CalledMethod = ParseUtil.StripWhiteSpace(context.GetChild(7).GetText());

            stackEXEScope.Peek().AddCommand(new EXECommandCall(CallerClass, CallerMethod, RelationshipName, CalledClass, CalledMethod));

            return(null);
            //return base.VisitExeCommandCall(context);
        }
Example #2
0
 /// <summary>
 /// Visit a parse tree produced by <see cref="OALParser.exeCommandCall"/>.
 /// <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 VisitExeCommandCall([NotNull] OALParser.ExeCommandCallContext context)
 {
     return(VisitChildren(context));
 }
Example #3
0
 /// <summary>
 /// Exit a parse tree produced by <see cref="OALParser.exeCommandCall"/>.
 /// <para>The default implementation does nothing.</para>
 /// </summary>
 /// <param name="context">The parse tree.</param>
 public virtual void ExitExeCommandCall([NotNull] OALParser.ExeCommandCallContext context)
 {
 }