// Handle SyntaxTrivia public override void VisitTrivia(SyntaxTrivia trivia) { switch (trivia.Kind) { case SyntaxKind.CommentTrivia: case SyntaxKind.DisabledTextTrivia: case SyntaxKind.DocumentationComment: case SyntaxKind.RegionDirective: case SyntaxKind.EndRegionDirective: default: writeDelegate(TokenKind.None, trivia.GetFullText(), null); break; } base.VisitTrivia(trivia); }
// Handle SyntaxTrivia public override void VisitTrivia(SyntaxTrivia trivia) { switch (trivia.Kind) { case SyntaxKind.CommentTrivia: case SyntaxKind.DisabledTextTrivia: case SyntaxKind.DocumentationComment: case SyntaxKind.RegionDirective: case SyntaxKind.EndRegionDirective: default: writeDelegate(TokenKind.None,trivia.GetFullText(), null); break; } base.VisitTrivia(trivia); }