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