8 references to WarningsEnabled
Microsoft.CodeAnalysis.CSharp (4)
Compilation\CSharpDiagnosticFilter.cs (3)
165Syntax.NullableContextState.State.ExplicitlyRestored => nullableOption.WarningsEnabled(), 168nullableOption.WarningsEnabled() && tree?.IsGeneratedCode(syntaxTreeOptions, cancellationToken) != true, 169null => nullableOption.WarningsEnabled(),
Compilation\CSharpSemanticModel.cs (1)
5457_ when getDefaultState().WarningsEnabled() => NullableContext.WarningsContextInherited | NullableContext.WarningsEnabled,
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (4)
Semantics\NullableContextTests.cs (4)
113Assert.True(NullableContextOptions.Enable.WarningsEnabled()); 116Assert.False(NullableContextOptions.Annotations.WarningsEnabled()); 119Assert.True(NullableContextOptions.Warnings.WarningsEnabled()); 122Assert.False(NullableContextOptions.Disable.WarningsEnabled());