15 references to Enabled
Microsoft.CodeAnalysis.CSharp (6)
Binder\Binder.cs (1)
259
Syntax.NullableContextState.State.
Enabled
=> true,
Compilation\CSharpDiagnosticFilter.cs (1)
163
Syntax.NullableContextState.State.
Enabled
=> true,
Compilation\CSharpSemanticModel.cs (2)
5452
NullableContextState.State.
Enabled
=> NullableContext.AnnotationsEnabled,
5459
NullableContextState.State.
Enabled
=> NullableContext.WarningsEnabled,
Syntax\NullableContextStateMap.cs (2)
114
case NullableContextState.State.
Enabled
:
156
SyntaxKind.EnableKeyword => NullableContextState.State.
Enabled
,
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (9)
Semantics\NullableContextTests.cs (9)
460
new NullableDirectives(new[] { "#nullable enable" }, NullableContextState.State.
Enabled
, NullableContextState.State.
Enabled
),
463
new NullableDirectives(new[] { "#nullable enable warnings", "#nullable disable annotations", }, NullableContextState.State.
Enabled
, NullableContextState.State.Disabled),
465
new NullableDirectives(new[] { "#nullable enable annotations" }, NullableContextState.State.Unknown, NullableContextState.State.
Enabled
),
466
new NullableDirectives(new[] { "#nullable disable warnings", "#nullable enable annotations" }, NullableContextState.State.Disabled, NullableContextState.State.
Enabled
),
467
new NullableDirectives(new[] { "#nullable restore warnings", "#nullable enable annotations" }, NullableContextState.State.ExplicitlyRestored, NullableContextState.State.
Enabled
),
469
new NullableDirectives(new[] { "#nullable enable warnings" , "#nullable restore annotations" }, NullableContextState.State.
Enabled
, NullableContextState.State.ExplicitlyRestored),
472
new NullableDirectives(new[] { "#nullable enable warnings" }, NullableContextState.State.
Enabled
, NullableContextState.State.Unknown),
600
NullableContextState.State.
Enabled
=> true,