Пример #1
0
        public override Node VisitSection([NotNull] SectionContext context)
        {
            var section = new SectionNode(context.Start, context.STRING().ToString().Trim('"'));

            foreach (Section_contentsContext section_content in context.section_contents())
            {
                if (section_content.question() != null)
                {
                    section.AddChild(Visit(section_content.question()));
                }

                if (section_content.default_style() != null)
                {
                    section.AddChild(Visit(section_content.default_style()));
                }
            }

            return(section);
        }