1 instantiation of SyntaxTreeState
Microsoft.CodeAnalysis.CSharp.Features (1)
CSharpRemoveUnnecessaryNullableDirectiveDiagnosticAnalyzer.cs (1)
214
return new
SyntaxTreeState
(completed: defaultCompleted || positionOfFirstReducingNullableDirective is null, positionOfFirstReducingNullableDirective);
6 references to SyntaxTreeState
Microsoft.CodeAnalysis.CSharp.Features (6)
CSharpRemoveUnnecessaryNullableDirectiveDiagnosticAnalyzer.cs (6)
188
public static
SyntaxTreeState
Create(bool defaultCompleted, NullableContextOptions compilationOptions, SyntaxTree tree, CancellationToken cancellationToken)
268
private readonly ConcurrentDictionary<SyntaxTree,
SyntaxTreeState
> _codeBlockIntervals
279
var
syntaxTreeState = GetOrCreateSyntaxTreeState(context.CodeBlock.SyntaxTree, defaultCompleted: false, context.SemanticModel, context.CancellationToken);
295
var
syntaxTreeState = GetOrCreateSyntaxTreeState(context.SemanticModel.SyntaxTree, defaultCompleted: true, context.SemanticModel, context.CancellationToken);
311
private
SyntaxTreeState
GetOrCreateSyntaxTreeState(SyntaxTree tree, bool defaultCompleted, SemanticModel semanticModel, CancellationToken cancellationToken)
315
static (tree, arg) =>
SyntaxTreeState
.Create(arg.defaultCompleted, arg.options, tree, arg.cancellationToken),