public override void VisitEnumMemberDeclaration(EnumMemberDeclarationSyntax node) { LastEnumMember = new ApexEnumMemberDeclarationSyntax { LeadingComments = NoApexComments.ToList(), Identifier = node.Identifier.ValueText, }; NoApexComments.Clear(); }
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; }