26 references to TriviaList
Microsoft.CodeAnalysis.CSharp (3)
Syntax\SyntaxNodeRemover.cs (3)
320this.AddResidualTrivia(SyntaxFactory.TriviaList(SyntaxFactory.ElasticMarker)); 360this.AddResidualTrivia(SyntaxFactory.TriviaList(SyntaxFactory.ElasticMarker)); 400this.AddResidualTrivia(SyntaxFactory.TriviaList(SyntaxFactory.ElasticMarker));
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
src\Analyzers\CSharp\CodeFixes\UseCollectionExpression\CSharpCollectionExpressionRewriter.cs (1)
355? TriviaList(Space)
Microsoft.CodeAnalysis.CSharp.Features (2)
CodeFixes\Suppression\CSharpSuppressionCodeFixProvider.cs (1)
60var triviaList = TriviaList(pragmaDirectiveTrivia);
src\Analyzers\CSharp\CodeFixes\UseCollectionExpression\CSharpCollectionExpressionRewriter.cs (1)
355? TriviaList(Space)
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (5)
Diagnostics\LocationsTests.cs (1)
554var node = SyntaxFactory.IdentifierName(SyntaxFactory.Identifier(SyntaxFactory.TriviaList(SyntaxFactory.Whitespace(" ")), "x", default(SyntaxTriviaList)));
Syntax\SeparatedSyntaxListTests.cs (1)
313collectionExpression ? SyntaxFactory.TriviaList(SyntaxFactory.Space) : [SyntaxFactory.Space],
Syntax\SyntaxNodeTests.cs (1)
3504var newModifiers = method.Modifiers.Add(SyntaxFactory.Token(default(SyntaxTriviaList), SyntaxKind.UnsafeKeyword, SyntaxFactory.TriviaList(SyntaxFactory.Space)));
Syntax\SyntaxNormalizerTests.cs (2)
3634SyntaxFactory.TriviaList( 3641SyntaxFactory.TriviaList(
Microsoft.CodeAnalysis.CSharp.Workspaces.UnitTests (9)
CodeGeneration\SyntaxGeneratorTests.cs (9)
1208TriviaList( 1220TriviaList( 1229TriviaList( 1281TriviaList( 1289TriviaList( 1301TriviaList( 1312TriviaList( 1318TriviaList( 1328TriviaList(
Microsoft.Interop.ComInterfaceGenerator (1)
Marshallers\ManagedHResultExceptionGeneratorResolver.cs (1)
89TriviaList(
Microsoft.Interop.SourceGeneration (1)
GeneratedStatements.cs (1)
194return TriviaList(Comment($"// {stage} - {comment}"));
Microsoft.VisualStudio.LanguageServices.CSharp (4)
CodeModel\CSharpCodeModelService.cs (4)
907.WithLeadingTrivia(SyntaxFactory.TriviaList(SyntaxFactory.ElasticMarker)) 908.WithTrailingTrivia(SyntaxFactory.TriviaList(SyntaxFactory.ElasticMarker))); 916.WithLeadingTrivia(SyntaxFactory.TriviaList(SyntaxFactory.ElasticMarker)) 917.WithTrailingTrivia(SyntaxFactory.TriviaList(SyntaxFactory.ElasticMarker)));