コード例 #1
0
        public override object VisitObjectssection(CryslGrammarParser.ObjectssectionContext context)
        {
            SectionObject objectSection = new SectionObject();
            string        sectionName   = context.OBJECTSSECTIONNAME().GetText();

            objectSection.Crysl_Section = sectionName;
            List <ObjectsDeclaration> objectsDeclarationList = (List <ObjectsDeclaration>)Visit(context.objects());

            objectSection.Objects_Declaration = objectsDeclarationList;

            cryslModel.Object_Section = objectSection;
            return(0);
        }
コード例 #2
0
 /// <summary>
 /// Visit a parse tree produced by <see cref="CryslGrammarParser.objectssection"/>.
 /// <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 VisitObjectssection([NotNull] CryslGrammarParser.ObjectssectionContext context)
 {
     return(VisitChildren(context));
 }