Ejemplo n.º 1
0
        public override void VisitEnumMemberDeclaration(EnumMemberDeclarationSyntax node)
        {
            LastEnumMember = new ApexEnumMemberDeclarationSyntax
            {
                LeadingComments = NoApexComments.ToList(),
                Identifier      = node.Identifier.ValueText,
            };

            NoApexComments.Clear();
        }
Ejemplo n.º 2
0
        public override void VisitBlock(BlockSyntax node)
        {
            var block = new ApexBlockSyntax();

            foreach (var stmt in node.Statements.EmptyIfNull())
            {
                stmt.Accept(this);
                if (LastStatement != null)
                {
                    block.Statements.Add(LastStatement);
                    LastStatement = null;
                }
            }

            block.InnerComments = NoApexComments.ToList();
            NoApexComments.Clear();
            LastStatement = LastBlock = block;
        }