9 references to WarningsEnabled
Microsoft.CodeAnalysis (2)
Compilation\NullableContext.cs (2)
36Enabled = WarningsEnabled | AnnotationsEnabled, 81IsFlagSet(context, NullableContext.WarningsEnabled);
Microsoft.CodeAnalysis.CSharp (2)
Compilation\CSharpSemanticModel.cs (2)
5448NullableContextState.State.Enabled => NullableContext.WarningsEnabled, 5450_ when getDefaultState().WarningsEnabled() => NullableContext.WarningsContextInherited | NullableContext.WarningsEnabled,
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (5)
Semantics\NullableContextTests.cs (5)
28[InlineData("#nullable enable warnings", NullableContextOptions.Disable, NullableContext.WarningsEnabled | NullableContext.AnnotationsContextInherited)] 29[InlineData("#nullable enable warnings", NullableContextOptions.Warnings, NullableContext.WarningsEnabled | NullableContext.AnnotationsContextInherited)] 49[InlineData("#nullable disable annotations", NullableContextOptions.Warnings, NullableContext.WarningsEnabled | NullableContext.WarningsContextInherited)] 51[InlineData("#nullable disable annotations", NullableContextOptions.Enable, NullableContext.WarningsEnabled | NullableContext.WarningsContextInherited)] 129AssertEnabledForInheritance(NullableContext.WarningsEnabled, warningsEnabled: true, annotationsEnabled: false);