28 references to KeepLeadingTrivia
Microsoft.CodeAnalysis (1)
Syntax\SyntaxRemoveOptions.cs (1)
30KeepExteriorTrivia = KeepLeadingTrivia | KeepTrailingTrivia,
Microsoft.CodeAnalysis.CodeStyle.Fixes (5)
src\Analyzers\Core\CodeFixes\MakeFieldReadonly\AbstractMakeFieldReadonlyCodeFixProvider.cs (1)
98editor.RemoveNode(fieldDeclaration, SyntaxRemoveOptions.KeepLeadingTrivia);
src\Analyzers\Core\CodeFixes\RemoveUnnecessarySuppressions\RemoveUnnecessaryPragmaSuppressionsCodeFixProvider.cs (1)
81options |= SyntaxRemoveOptions.KeepLeadingTrivia;
src\Analyzers\Core\CodeFixes\RemoveUnusedParametersAndValues\AbstractRemoveUnusedValuesCodeFixProvider.cs (2)
661removeOptions |= SyntaxRemoveOptions.KeepLeadingTrivia; 900var rootWithRemovedDeclaration = root.RemoveNode(newDecl, SyntaxGenerator.DefaultRemoveOptions | SyntaxRemoveOptions.KeepLeadingTrivia);
src\Analyzers\Core\CodeFixes\UseConditionalExpression\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 (2)
src\Analyzers\CSharp\CodeFixes\InvokeDelegateWithConditionalAccess\InvokeDelegateWithConditionalAccessCodeFixProvider.cs (1)
152editor.RemoveNode(localDeclarationStatement, SyntaxRemoveOptions.KeepLeadingTrivia | SyntaxRemoveOptions.AddElasticMarker);
src\Analyzers\CSharp\CodeFixes\UseCollectionExpression\CSharpUseCollectionExpressionForBuilderCodeFixProvider.cs (1)
84removalOptions |= SyntaxRemoveOptions.KeepLeadingTrivia;
Microsoft.CodeAnalysis.CSharp.Features (2)
src\Analyzers\CSharp\CodeFixes\InvokeDelegateWithConditionalAccess\InvokeDelegateWithConditionalAccessCodeFixProvider.cs (1)
152editor.RemoveNode(localDeclarationStatement, SyntaxRemoveOptions.KeepLeadingTrivia | SyntaxRemoveOptions.AddElasticMarker);
src\Analyzers\CSharp\CodeFixes\UseCollectionExpression\CSharpUseCollectionExpressionForBuilderCodeFixProvider.cs (1)
84removalOptions |= SyntaxRemoveOptions.KeepLeadingTrivia;
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (1)
Syntax\SyntaxNodeTests.cs (1)
3231var cu2 = cu.RemoveNode(m, SyntaxRemoveOptions.KeepLeadingTrivia);
Microsoft.CodeAnalysis.Features (9)
CodeFixes\Suppression\AbstractSuppressionCodeFixProvider.RemoveSuppressionCodeAction.BatchFixer.cs (1)
143var newRoot = root.RemoveNodes(attributesToRemove, SyntaxRemoveOptions.KeepLeadingTrivia | SyntaxRemoveOptions.AddElasticMarker);
ConvertForToForEach\AbstractConvertForToForEachCodeRefactoringProvider.cs (1)
373SyntaxGenerator.DefaultRemoveOptions | SyntaxRemoveOptions.KeepLeadingTrivia);
RemoveUnusedVariable\AbstractRemoveUnusedVariableCodeFixProvider.cs (1)
139removeOptions |= SyntaxRemoveOptions.KeepLeadingTrivia;
src\Analyzers\Core\CodeFixes\MakeFieldReadonly\AbstractMakeFieldReadonlyCodeFixProvider.cs (1)
98editor.RemoveNode(fieldDeclaration, SyntaxRemoveOptions.KeepLeadingTrivia);
src\Analyzers\Core\CodeFixes\RemoveUnnecessarySuppressions\RemoveUnnecessaryPragmaSuppressionsCodeFixProvider.cs (1)
81options |= SyntaxRemoveOptions.KeepLeadingTrivia;
src\Analyzers\Core\CodeFixes\RemoveUnusedParametersAndValues\AbstractRemoveUnusedValuesCodeFixProvider.cs (2)
661removeOptions |= SyntaxRemoveOptions.KeepLeadingTrivia; 900var rootWithRemovedDeclaration = root.RemoveNode(newDecl, SyntaxGenerator.DefaultRemoveOptions | SyntaxRemoveOptions.KeepLeadingTrivia);
src\Analyzers\Core\CodeFixes\UseConditionalExpression\UseConditionalExpressionHelpers.cs (1)
21removeOptions |= SyntaxRemoveOptions.KeepLeadingTrivia;
UseAutoProperty\AbstractUseAutoPropertyCodeFixProvider.cs (1)
316syntaxRemoveOptions |= 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