Beispiel #1
0
 /// <summary>
 /// Visit a parse tree produced by the <c>append_tag</c>
 /// labeled alternative in <see cref="xmllangParser.statement"/>.
 /// <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 VisitAppend_tag([NotNull] xmllangParser.Append_tagContext context)
 {
     return(VisitChildren(context));
 }
 /// <summary>
 /// Exit a parse tree produced by the <c>append_tag</c>
 /// labeled alternative in <see cref="xmllangParser.statement"/>.
 /// <para>The default implementation does nothing.</para>
 /// </summary>
 /// <param name="context">The parse tree.</param>
 public virtual void ExitAppend_tag([NotNull] xmllangParser.Append_tagContext context)
 {
 }
        public override object VisitAppend_tag([NotNull] xmllangParser.Append_tagContext context)
        {
            CurrentFunction.Content.Append($"{context.ID()[0]}.{nameof(XMLNode.Children)}.Append({context.ID(1)});\n");

            return(VisitChildren(context));
        }