34 references to WithTrailingTrivia
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (5)
src\Analyzers\CSharp\CodeFixes\ConvertToRecord\ConvertToRecordEngine.cs (1)
424typeDeclaration.TypeParameterList?.WithTrailingTrivia(ElasticMarker),
src\Analyzers\CSharp\CodeFixes\InlineDeclaration\CSharpInlineDeclarationCodeFixProvider.cs (1)
204(t, g) => t.WithTrailingTrivia(ElasticSpace).WithoutAnnotations(Formatter.Annotation));
src\Analyzers\CSharp\CodeFixes\UseCollectionInitializer\CSharpUseCollectionInitializerCodeFixProvider_CollectionInitializer.cs (1)
55.WithTrailingTrivia()
src\Analyzers\CSharp\CodeFixes\UsePatternMatching\CSharpAsAndMemberAccessCodeFixProvider.cs (1)
69CreatePattern(binaryExpression, isPatternExpression).WithTrailingTrivia(Space))],
src\Analyzers\CSharp\CodeFixes\UsePatternMatching\CSharpAsAndNullCheckCodeFixProvider.cs (1)
105GetPatternType().WithoutTrivia().WithTrailingTrivia(ElasticMarker),
Microsoft.CodeAnalysis.CSharp.Features (8)
DecompiledSource\CSharpDecompiledSourceService.cs (1)
77.WithTrailingTrivia(new[] { SyntaxFactory.Space, SyntaxFactory.PreprocessingMessage(assemblyInfo) });
MetadataAsSource\CSharpMetadataAsSourceService.cs (1)
43.WithTrailingTrivia(new[] { Space, PreprocessingMessage(assemblyInfo) });
src\Analyzers\CSharp\CodeFixes\ConvertToRecord\ConvertToRecordEngine.cs (1)
424typeDeclaration.TypeParameterList?.WithTrailingTrivia(ElasticMarker),
src\Analyzers\CSharp\CodeFixes\InlineDeclaration\CSharpInlineDeclarationCodeFixProvider.cs (1)
204(t, g) => t.WithTrailingTrivia(ElasticSpace).WithoutAnnotations(Formatter.Annotation));
src\Analyzers\CSharp\CodeFixes\UseCollectionInitializer\CSharpUseCollectionInitializerCodeFixProvider_CollectionInitializer.cs (1)
55.WithTrailingTrivia()
src\Analyzers\CSharp\CodeFixes\UsePatternMatching\CSharpAsAndMemberAccessCodeFixProvider.cs (1)
69CreatePattern(binaryExpression, isPatternExpression).WithTrailingTrivia(Space))],
src\Analyzers\CSharp\CodeFixes\UsePatternMatching\CSharpAsAndNullCheckCodeFixProvider.cs (1)
105GetPatternType().WithoutTrivia().WithTrailingTrivia(ElasticMarker),
UsePatternMatching\CSharpIsAndCastCheckWithoutNameDiagnosticAnalyzer.cs (1)
199SyntaxFactory.DeclarationPattern((TypeSyntax)isExpression.Right.WithTrailingTrivia(SyntaxFactory.Space),
Microsoft.CodeAnalysis.CSharp.Workspaces (6)
CodeGeneration\CSharpSyntaxGenerator.cs (4)
88return docTrivia.WithTrailingTrivia(SyntaxFactory.EndOfLine(endOfLineString)); 982.WithTrailingTrivia(SyntaxFactory.ElasticMarker); 2859newNodes.Add(this.WithSubDeclarationsRemoved(multiPartDeclaration, index, count - index).WithTrailingTrivia(SyntaxFactory.ElasticSpace)); 2962this.WithSubDeclarationsRemoved(multiPartDeclaration, index, count - index).WithTrailingTrivia(SyntaxFactory.ElasticSpace)
Simplification\CSharpSimplificationService.Expander.cs (2)
187var typeSyntax = parameterSymbols[i].Type.GenerateTypeSyntax().WithTrailingTrivia(s_oneWhitespaceSeparator); 226var typeSyntax = parameterSymbol.Type.GenerateTypeSyntax().WithTrailingTrivia(s_oneWhitespaceSeparator);
Microsoft.CodeAnalysis.Features (1)
PullMemberUp\MembersPuller.cs (1)
336.WithTrailingTrivia(originalMemberEditor.Generator.ElasticCarriageReturnLineFeed)
Microsoft.CodeAnalysis.VisualBasic.EditorFeatures (4)
EndConstructGeneration\EndConstructStatementVisitor_IfStatement.vb (1)
40SyntaxFactory.IfStatement(node.IfKeyword, node.Condition, node.ThenKeyword).WithTrailingTrivia(endOfLine),
EndConstructGeneration\EndConstructStatementVisitor_LambdaHeader.vb (2)
52newHeader = newHeader.WithTrailingTrivia(SyntaxFactory.EndOfLineTrivia(_state.NewLineCharacter)) 83Dim newHeader = node.SubOrFunctionHeader.WithTrailingTrivia(SyntaxFactory.EndOfLineTrivia(_state.NewLineCharacter))
NavigationBar\VisualBasicEditorNavigationBarItemService_CodeGeneration.vb (1)
130statement = statement.WithTrailingTrivia(endOfLineTrivia, endOfLineTrivia, SyntaxFactory.CommentTrivia("' " & VBEditorResources.Add_any_initialization_after_the_InitializeComponent_call), endOfLineTrivia, endOfLineTrivia)
Microsoft.CodeAnalysis.VisualBasic.Features (2)
UseAutoProperty\VisualBasicUseAutoPropertyCodeFixProvider.vb (2)
67statement = statement.WithTrailingTrivia(SyntaxFactory.Space) _ 86statement = statement.WithTrailingTrivia(SyntaxFactory.Space).
Microsoft.CodeAnalysis.VisualBasic.Workspaces (4)
CodeGeneration\VisualBasicSyntaxGenerator.vb (4)
66Return node.WithTrailingTrivia(SyntaxFactory.EndOfLine(endOfLineString)) 1503Return node.WithLeadingTrivia(SyntaxFactory.ElasticMarker).WithTrailingTrivia(SyntaxFactory.ElasticMarker) 3516newNodes.Add(Me.WithSubDeclarationsRemoved(multiPartDeclaration, index, count - index).WithTrailingTrivia(SyntaxFactory.ElasticSpace)) 3530newNodes.Add(Me.WithSubDeclarationsRemoved(declaration, index, count - index).WithTrailingTrivia(SyntaxFactory.ElasticSpace))
Microsoft.VisualStudio.LanguageServices.VisualBasic (2)
CodeModel\VisualBasicCodeModelService.vb (2)
4274inheritsStatement = inheritsStatement.WithTrailingTrivia(SyntaxFactory.CarriageReturnLineFeed) 4346implementsStatement = implementsStatement.WithTrailingTrivia(SyntaxFactory.CarriageReturnLineFeed)
System.Windows.Forms.Analyzers.CodeFixes.CSharp (1)
System\Windows\Forms\CSharp\CodeFixes\AddDesignerSerializationVisibility\AddDesignerSerializationVisibilityCodeFixProvider.cs (1)
143.WithTrailingTrivia(SyntaxFactory.CarriageReturnLineFeed)
System.Windows.Forms.Analyzers.CodeFixes.VisualBasic (1)
AddDesignerSerializationVisibility\AddDesignerSerializationVisibilityCodeFixProvider.vb (1)
159WithTrailingTrivia(SyntaxFactory.CarriageReturnLineFeed).