Пример #1
0
        public override ILabel VisitLabel(QLMainParser.LabelContext context)
        {
            string show = context.STRINGLITERAL().GetText();

            return(new Label(show, show.Substring(1, show.Length - 2),
                             Position.PositionFormParserRuleContext(context)));
        }
        private Label MakeLabel(QLMainParser.LabelContext context)
        {
            string labelText = context.STRINGLITERAL().GetText();

            return(new Label(labelText.Substring(1, labelText.Length - 2), new PositionInText(context)));
        }
Пример #3
0
 /// <summary>
 /// Visit a parse tree produced by <see cref="QLMainParser.label"/>.
 /// <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 VisitLabel([NotNull] QLMainParser.LabelContext context)
 {
     return(VisitChildren(context));
 }