Exemplo n.º 1
0
        public override object VisitApply(MFSHParser.ApplyContext context)
        {
            //const String fcn = "VisitApply";
            MIApply apply = new MIApply(this.SourceName, context.Start.Line);

            apply.Name = context.NAME().GetText();


            foreach (MFSHParser.AnyStringContext varContext in context.anyString())
            {
                String s = (String)this.VisitChildren(varContext);
                apply.Parameters.Add(s);
            }

            apply.OnceFlag = (context.ONCE() != null);
            apply.Usings.AddRange(this.Usings);

            this.Current.Items.Add(apply);
            return(null);
        }
Exemplo n.º 2
0
 /// <summary>
 /// Visit a parse tree produced by <see cref="MFSHParser.apply"/>.
 /// <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 VisitApply([NotNull] MFSHParser.ApplyContext context)
 {
     return(VisitChildren(context));
 }