18 references to GetAllTrivia
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
src\Analyzers\CSharp\Analyzers\UseCollectionExpression\CSharpUseCollectionExpressionForFluentDiagnosticAnalyzer.cs (1)
305.Concat(memberAccess.OperatorToken.GetAllTrivia())
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (2)
src\Analyzers\CSharp\CodeFixes\RemoveConfusingSuppression\CSharpRemoveConfusingSuppressionCodeFixProvider.cs (1)
88var withoutSuppression = suppression.Operand.WithAppendedTrailingTrivia(suppression.OperatorToken.GetAllTrivia());
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpReplaceDiscardDeclarationsWithAssignmentsService.cs (1)
205var trailingTrivia = _localDeclarationStatement.SemicolonToken.GetAllTrivia();
Microsoft.CodeAnalysis.CSharp.Features (8)
ConvertLinq\ConvertForEachToLinqQuery\AbstractConverter.cs (2)
152leadingCommentsTrivia = forEachStatement.ForEachKeyword.GetAllTrivia().Concat(leadingCommentsTrivia); 280.WithCommentsFrom(ifStatement.IfKeyword.GetAllTrivia().Concat(node.ExtraLeadingComments), node.ExtraTrailingComments);
ExtractMethod\CSharpMethodExtractor.PostProcessor.cs (4)
59return (block.OpenBraceToken.GetAllTrivia().IsEmpty() && block.CloseBraceToken.GetAllTrivia().IsEmpty()) 67var firstTokenWithAsset = block.OpenBraceToken.CopyAnnotationsTo(firstToken).WithPrependedLeadingTrivia(block.OpenBraceToken.GetAllTrivia()); 71var lastTokenWithAsset = block.CloseBraceToken.CopyAnnotationsTo(lastToken).WithAppendedTrailingTrivia(block.CloseBraceToken.GetAllTrivia());
src\Analyzers\CSharp\Analyzers\UseCollectionExpression\CSharpUseCollectionExpressionForFluentDiagnosticAnalyzer.cs (1)
305.Concat(memberAccess.OperatorToken.GetAllTrivia())
src\Analyzers\CSharp\CodeFixes\RemoveConfusingSuppression\CSharpRemoveConfusingSuppressionCodeFixProvider.cs (1)
88var withoutSuppression = suppression.Operand.WithAppendedTrailingTrivia(suppression.OperatorToken.GetAllTrivia());
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (1)
Syntax\SyntaxNodeTests.cs (1)
2468var id2 = id.ReplaceTrivia(id.GetAllTrivia(), (tr, tr2) => SyntaxFactory.Space);
Microsoft.CodeAnalysis.CSharp.Workspaces (2)
Simplification\Reducers\CSharpNullableAnnotationReducer.cs (1)
59return node.ElementType.WithAppendedTrailingTrivia(node.QuestionToken.GetAllTrivia());
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpReplaceDiscardDeclarationsWithAssignmentsService.cs (1)
205var trailingTrivia = _localDeclarationStatement.SemicolonToken.GetAllTrivia();
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (2)
Syntax\SyntaxTokenFactoryTests.vb (1)
231Dim id2 = id.ReplaceTrivia(id.GetAllTrivia(), Function(tr, tr2) SyntaxFactory.Space)
TestSyntaxNodes.vb (1)
1690Dim id2 = id.ReplaceTrivia(id.GetAllTrivia(), Function(tr, tr2) SyntaxFactory.Space)
Microsoft.CodeAnalysis.VisualBasic.Workspaces (2)
CodeCleanup\Providers\FixIncorrectTokensCodeCleanupProvider.vb (2)
180Dim endKeywordTrivia = curEndKeyword.GetAllTrivia() 181Dim ifKeywordTrivia = curIfKeyword.GetAllTrivia()