18 references to KeepDirectives
Microsoft.CodeAnalysis.CSharp (4)
Syntax\SyntaxNodeRemover.cs (4)
304
if ((_options & (SyntaxRemoveOptions.
KeepDirectives
| SyntaxRemoveOptions.KeepUnbalancedDirectives)) != 0)
342
if ((_options & (SyntaxRemoveOptions.
KeepDirectives
| SyntaxRemoveOptions.KeepUnbalancedDirectives)) != 0)
376
if ((_options & (SyntaxRemoveOptions.
KeepDirectives
| SyntaxRemoveOptions.KeepUnbalancedDirectives)) != 0)
440
if ((_options & SyntaxRemoveOptions.
KeepDirectives
) != 0)
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
src\Analyzers\CSharp\CodeFixes\ConvertToRecord\ConvertToRecordEngine.cs (1)
30
SyntaxRemoveOptions.
KeepDirectives
|
Microsoft.CodeAnalysis.CSharp.Features (1)
src\Analyzers\CSharp\CodeFixes\ConvertToRecord\ConvertToRecordEngine.cs (1)
30
SyntaxRemoveOptions.
KeepDirectives
|
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (5)
Syntax\SyntaxNodeTests.cs (3)
2814
var cu2 = cu.RemoveNode(m, SyntaxRemoveOptions.
KeepDirectives
);
2879
var cu2 = cu.RemoveNode(m, SyntaxRemoveOptions.KeepEndOfLine | SyntaxRemoveOptions.
KeepDirectives
);
3255
var cu2 = cu.RemoveNode(m, SyntaxRemoveOptions.KeepEndOfLine | SyntaxRemoveOptions.
KeepDirectives
);
Syntax\SyntaxRewriterTests.cs (2)
516
var newRoot = root.RemoveNode(root.DescendantNodes().First(), SyntaxRemoveOptions.
KeepDirectives
);
652
var newRoot = oldRoot.RemoveNode(xmlNode, SyntaxRemoveOptions.
KeepDirectives
);
Microsoft.CodeAnalysis.VisualBasic (4)
Syntax\SyntaxNodeRemover.vb (4)
218
If (Me._options And (SyntaxRemoveOptions.
KeepDirectives
Or SyntaxRemoveOptions.KeepUnbalancedDirectives)) <> 0 Then
243
If (Me._options And (SyntaxRemoveOptions.
KeepDirectives
Or SyntaxRemoveOptions.KeepUnbalancedDirectives)) <> 0 Then
267
If (Me._options And (SyntaxRemoveOptions.
KeepDirectives
Or SyntaxRemoveOptions.KeepUnbalancedDirectives)) <> 0 Then
311
If (Me._options And SyntaxRemoveOptions.
KeepDirectives
) <> 0 Then
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (3)
Syntax\SyntaxRewriterTests.vb (2)
500
Dim newRoot = oldRoot.RemoveNode(xmlNode, SyntaxRemoveOptions.
KeepDirectives
)
686
Dim newRoot = root.RemoveNode(root.DescendantNodes().First(), SyntaxRemoveOptions.
KeepDirectives
)
TestSyntaxNodes.vb (1)
2805
Dim cu2 = cu.RemoveNode(n, SyntaxRemoveOptions.
KeepDirectives
)