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