public override object VisitSpecsection(CryslGrammarParser.SpecsectionContext context) { SectionSpec specSection = new SectionSpec(); string sectionName = context.SPECSECTIONNAME().GetText(); string specSectionValue = context.TYPE().GetText(); specSection.Crysl_Section = sectionName; specSection.Class_Name = specSectionValue; cryslModel.Spec_Section = specSection; return(0); }
/// <summary> /// Visit a parse tree produced by <see cref="CryslGrammarParser.specsection"/>. /// <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 VisitSpecsection([NotNull] CryslGrammarParser.SpecsectionContext context) { return(VisitChildren(context)); }