/// <summary> /// Visit a parse tree produced by <see cref="GoParser.typeDeclaration"/>. /// <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 VisitTypeDeclaration([NotNull] GoParser.TypeDeclarationContext context) { return(VisitChildren(context)); }
public override void ExitTypeDeclaration([NotNull] GoParser.TypeDeclarationContext context) { exit += "}\t\n"; }
/// <summary> /// Exit a parse tree produced by <see cref="GoParser.typeDeclaration"/>. /// <para>The default implementation does nothing.</para> /// </summary> /// <param name="context">The parse tree.</param> public virtual void ExitTypeDeclaration([NotNull] GoParser.TypeDeclarationContext context) { }
public override void EnterTypeDeclaration([NotNull] GoParser.TypeDeclarationContext context) { struct_name = context.children[1].ToString(); exit += "\n\tpublic struct " + context.children[1] + "{\n"; }