public override object VisitEventssection(CryslGrammarParser.EventssectionContext context) { SectionEvent eventSection = new SectionEvent(); string sectionName = context.EVENTSSECTIONNAME().GetText(); eventSection.Crysl_Section = sectionName; List <Methods> methods = (List <Methods>)Visit(context.eventlist()); eventSection.Methods = methods; cryslModel.Event_Section = eventSection; return(0); }
/// <summary> /// Visit a parse tree produced by <see cref="CryslGrammarParser.eventssection"/>. /// <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 VisitEventssection([NotNull] CryslGrammarParser.EventssectionContext context) { return(VisitChildren(context)); }