26 references to KeepLeadingTrivia
Microsoft.CodeAnalysis (1)
Syntax\SyntaxRemoveOptions.cs (1)
30KeepExteriorTrivia = KeepLeadingTrivia | KeepTrailingTrivia,
Microsoft.CodeAnalysis.CodeStyle.Fixes (5)
AbstractMakeFieldReadonlyCodeFixProvider.cs (1)
98editor.RemoveNode(fieldDeclaration, SyntaxRemoveOptions.KeepLeadingTrivia);
AbstractRemoveUnusedValuesCodeFixProvider.cs (2)
649removeOptions |= SyntaxRemoveOptions.KeepLeadingTrivia; 893var rootWithRemovedDeclaration = root.RemoveNode(newDecl, SyntaxGenerator.DefaultRemoveOptions | SyntaxRemoveOptions.KeepLeadingTrivia);
RemoveUnnecessaryPragmaSuppressionsCodeFixProvider.cs (1)
85options |= SyntaxRemoveOptions.KeepLeadingTrivia;
UseConditionalExpressionHelpers.cs (1)
21removeOptions |= SyntaxRemoveOptions.KeepLeadingTrivia;
Microsoft.CodeAnalysis.CSharp (4)
Syntax\SyntaxNodeRemover.cs (4)
295if ((_options & SyntaxRemoveOptions.KeepLeadingTrivia) != 0) 327if ((_options & SyntaxRemoveOptions.KeepLeadingTrivia) != 0) 367if ((_options & SyntaxRemoveOptions.KeepLeadingTrivia) != 0) 408if ((_options & SyntaxRemoveOptions.KeepLeadingTrivia) != 0)
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
InvokeDelegateWithConditionalAccessCodeFixProvider.cs (1)
155editor.RemoveNode(localDeclarationStatement, SyntaxRemoveOptions.KeepLeadingTrivia | SyntaxRemoveOptions.AddElasticMarker);
Microsoft.CodeAnalysis.CSharp.Features (1)
InvokeDelegateWithConditionalAccessCodeFixProvider.cs (1)
155editor.RemoveNode(localDeclarationStatement, SyntaxRemoveOptions.KeepLeadingTrivia | SyntaxRemoveOptions.AddElasticMarker);
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (1)
Syntax\SyntaxNodeTests.cs (1)
3220var cu2 = cu.RemoveNode(m, SyntaxRemoveOptions.KeepLeadingTrivia);
Microsoft.CodeAnalysis.Features (9)
AbstractMakeFieldReadonlyCodeFixProvider.cs (1)
98editor.RemoveNode(fieldDeclaration, SyntaxRemoveOptions.KeepLeadingTrivia);
AbstractRemoveUnusedValuesCodeFixProvider.cs (2)
649removeOptions |= SyntaxRemoveOptions.KeepLeadingTrivia; 893var rootWithRemovedDeclaration = root.RemoveNode(newDecl, SyntaxGenerator.DefaultRemoveOptions | SyntaxRemoveOptions.KeepLeadingTrivia);
CodeFixes\Suppression\AbstractSuppressionCodeFixProvider.RemoveSuppressionCodeAction.BatchFixer.cs (1)
144var newRoot = root.RemoveNodes(attributesToRemove, SyntaxRemoveOptions.KeepLeadingTrivia | SyntaxRemoveOptions.AddElasticMarker);
ConvertForToForEach\AbstractConvertForToForEachCodeRefactoringProvider.cs (1)
373SyntaxGenerator.DefaultRemoveOptions | SyntaxRemoveOptions.KeepLeadingTrivia);
J\s\src\Analyzers\Core\CodeFixes\UseConditionalExpression\UseConditionalExpressionHelpers.cs\UseConditionalExpressionHelpers.cs (1)
21removeOptions |= SyntaxRemoveOptions.KeepLeadingTrivia;
RemoveUnnecessaryPragmaSuppressionsCodeFixProvider.cs (1)
85options |= SyntaxRemoveOptions.KeepLeadingTrivia;
RemoveUnusedVariable\AbstractRemoveUnusedVariableCodeFixProvider.cs (1)
139removeOptions |= SyntaxRemoveOptions.KeepLeadingTrivia;
UseAutoProperty\AbstractUseAutoPropertyCodeFixProvider.cs (1)
245syntaxRemoveOptions |= SyntaxRemoveOptions.KeepLeadingTrivia;
Microsoft.CodeAnalysis.VisualBasic (4)
Syntax\SyntaxNodeRemover.vb (4)
212If (Me._options And SyntaxRemoveOptions.KeepLeadingTrivia) <> 0 Then 234If (Me._options And SyntaxRemoveOptions.KeepLeadingTrivia) <> 0 Then 261If (Me._options And SyntaxRemoveOptions.KeepLeadingTrivia) <> 0 Then 289If (Me._options And SyntaxRemoveOptions.KeepLeadingTrivia) <> 0 Then