Exemple #1
0
        public override object VisitFrag(MFSHParser.FragContext context)
        {
            const String fcn = "VisitFrag";

            this.TraceMsg(context, fcn);
            String fragName = context.NAME().GetText();

            String fragmentDefinition = String.Empty;

            MIFragment frag       = new MIFragment(this.SourceName, context.Start.Line, fragName);
            MacroBlock macroBlock = new MacroBlock("frag", frag);

            frag.OnceFlag = context.ONCE() != null;

            this.PushState(macroBlock);

            return(null);
        }
 /// <summary>
 /// Visit a parse tree produced by <see cref="MFSHParser.frag"/>.
 /// <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 VisitFrag([NotNull] MFSHParser.FragContext context)
 {
     return(VisitChildren(context));
 }