13 references to WarningsContextInherited
Microsoft.CodeAnalysis (2)
Compilation\NullableContext.cs (2)
69ContextInherited = WarningsContextInherited | AnnotationsContextInherited 93IsFlagSet(context, NullableContext.WarningsContextInherited);
Microsoft.CodeAnalysis.CSharp (2)
Compilation\CSharpSemanticModel.cs (2)
5450_ when getDefaultState().WarningsEnabled() => NullableContext.WarningsContextInherited | NullableContext.WarningsEnabled, 5451_ => NullableContext.WarningsContextInherited,
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (9)
Semantics\NullableContextTests.cs (9)
33[InlineData("#nullable enable annotations", NullableContextOptions.Disable, NullableContext.AnnotationsEnabled | NullableContext.WarningsContextInherited)] 34[InlineData("#nullable enable annotations", NullableContextOptions.Warnings, NullableContext.Enabled | NullableContext.WarningsContextInherited)] 35[InlineData("#nullable enable annotations", NullableContextOptions.Annotations, NullableContext.AnnotationsEnabled | NullableContext.WarningsContextInherited)] 36[InlineData("#nullable enable annotations", NullableContextOptions.Enable, NullableContext.Enabled | NullableContext.WarningsContextInherited)] 48[InlineData("#nullable disable annotations", NullableContextOptions.Disable, NullableContext.Disabled | NullableContext.WarningsContextInherited)] 49[InlineData("#nullable disable annotations", NullableContextOptions.Warnings, NullableContext.WarningsEnabled | NullableContext.WarningsContextInherited)] 50[InlineData("#nullable disable annotations", NullableContextOptions.Annotations, NullableContext.Disabled | NullableContext.WarningsContextInherited)] 51[InlineData("#nullable disable annotations", NullableContextOptions.Enable, NullableContext.WarningsEnabled | NullableContext.WarningsContextInherited)] 140var warningsInherited = context | NullableContext.WarningsContextInherited;