27 references to State
Microsoft.CodeAnalysis.CSharp (27)
Binder\Binder.cs (4)
259
Syntax.NullableContextState.
State
.Enabled => true,
260
Syntax.NullableContextState.
State
.Disabled => false,
261
Syntax.NullableContextState.
State
.ExplicitlyRestored => GetGlobalAnnotationState(),
262
Syntax.NullableContextState.
State
.Unknown =>
Compilation\CSharpDiagnosticFilter.cs (5)
160
Syntax.NullableContextState.
State
? warningsState = tree?.GetNullableContextState(position).WarningsState;
163
Syntax.NullableContextState.
State
.Enabled => true,
164
Syntax.NullableContextState.
State
.Disabled => false,
165
Syntax.NullableContextState.
State
.ExplicitlyRestored => nullableOption.WarningsEnabled(),
166
Syntax.NullableContextState.
State
.Unknown =>
Compilation\CSharpSemanticModel.cs (4)
5448
NullableContextState.
State
.Enabled => NullableContext.AnnotationsEnabled,
5449
NullableContextState.
State
.Disabled => NullableContext.Disabled,
5455
NullableContextState.
State
.Enabled => NullableContext.WarningsEnabled,
5456
NullableContextState.
State
.Disabled => NullableContext.Disabled,
Syntax\NullableContextStateMap.cs (14)
21
internal
State
WarningsState { get; }
22
internal
State
AnnotationsState { get; }
24
internal NullableContextState(int position,
State
warningsState,
State
annotationsState)
64
warningsState: NullableContextState.
State
.Unknown,
65
annotationsState: NullableContextState.
State
.Unknown);
70
var searchContext = new NullableContextState(position, warningsState: NullableContextState.
State
.Unknown, annotationsState: NullableContextState.
State
.Unknown);
114
case NullableContextState.
State
.Enabled:
116
case NullableContextState.
State
.Unknown:
117
case NullableContextState.
State
.ExplicitlyRestored:
156
SyntaxKind.EnableKeyword => NullableContextState.
State
.Enabled,
157
SyntaxKind.DisableKeyword => NullableContextState.
State
.Disabled,
158
SyntaxKind.RestoreKeyword => NullableContextState.
State
.ExplicitlyRestored,