13 references to ExplicitlyRestored
Microsoft.CodeAnalysis.CSharp (4)
Binder\Binder.cs (1)
261
Syntax.NullableContextState.State.
ExplicitlyRestored
=> GetGlobalAnnotationState(),
Compilation\CSharpDiagnosticFilter.cs (1)
165
Syntax.NullableContextState.State.
ExplicitlyRestored
=> nullableOption.WarningsEnabled(),
Syntax\NullableContextStateMap.cs (2)
117
case NullableContextState.State.
ExplicitlyRestored
:
158
SyntaxKind.RestoreKeyword => NullableContextState.State.
ExplicitlyRestored
,
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (9)
Semantics\NullableContextTests.cs (9)
461
new NullableDirectives(new[] { "#nullable restore" }, NullableContextState.State.
ExplicitlyRestored
, NullableContextState.State.
ExplicitlyRestored
),
464
new NullableDirectives(new[] { "#nullable restore warnings", "#nullable disable annotations" }, NullableContextState.State.
ExplicitlyRestored
, NullableContextState.State.Disabled),
467
new NullableDirectives(new[] { "#nullable restore warnings", "#nullable enable annotations" }, NullableContextState.State.
ExplicitlyRestored
, NullableContextState.State.Enabled),
468
new NullableDirectives(new[] { "#nullable restore annotations" }, NullableContextState.State.Unknown, NullableContextState.State.
ExplicitlyRestored
),
469
new NullableDirectives(new[] { "#nullable enable warnings" , "#nullable restore annotations" }, NullableContextState.State.Enabled, NullableContextState.State.
ExplicitlyRestored
),
470
new NullableDirectives(new[] { "#nullable disable warnings", "#nullable restore annotations" }, NullableContextState.State.Disabled, NullableContextState.State.
ExplicitlyRestored
),
473
new NullableDirectives(new[] { "#nullable restore warnings" }, NullableContextState.State.
ExplicitlyRestored
, NullableContextState.State.Unknown),
2196
if (speculativeDirectives.ExpectedWarningsState == NullableContextState.State.
ExplicitlyRestored
) return;