13 references to AnnotationsContextInherited
Microsoft.CodeAnalysis (2)
Compilation\NullableContext.cs (2)
69
ContextInherited = WarningsContextInherited |
AnnotationsContextInherited
99
IsFlagSet(context, NullableContext.
AnnotationsContextInherited
);
Microsoft.CodeAnalysis.CSharp (2)
Compilation\CSharpSemanticModel.cs (2)
5443
_ when getDefaultState().AnnotationsEnabled() => NullableContext.
AnnotationsContextInherited
| NullableContext.AnnotationsEnabled,
5444
_ => NullableContext.
AnnotationsContextInherited
,
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (9)
Semantics\NullableContextTests.cs (9)
28
[InlineData("#nullable enable warnings", NullableContextOptions.Disable, NullableContext.WarningsEnabled | NullableContext.
AnnotationsContextInherited
)]
29
[InlineData("#nullable enable warnings", NullableContextOptions.Warnings, NullableContext.WarningsEnabled | NullableContext.
AnnotationsContextInherited
)]
30
[InlineData("#nullable enable warnings", NullableContextOptions.Annotations, NullableContext.Enabled | NullableContext.
AnnotationsContextInherited
)]
31
[InlineData("#nullable enable warnings", NullableContextOptions.Enable, NullableContext.Enabled | NullableContext.
AnnotationsContextInherited
)]
43
[InlineData("#nullable disable warnings", NullableContextOptions.Disable, NullableContext.Disabled | NullableContext.
AnnotationsContextInherited
)]
44
[InlineData("#nullable disable warnings", NullableContextOptions.Warnings, NullableContext.Disabled | NullableContext.
AnnotationsContextInherited
)]
45
[InlineData("#nullable disable warnings", NullableContextOptions.Annotations, NullableContext.AnnotationsEnabled | NullableContext.
AnnotationsContextInherited
)]
46
[InlineData("#nullable disable warnings", NullableContextOptions.Enable, NullableContext.AnnotationsEnabled | NullableContext.
AnnotationsContextInherited
)]
146
var annotationsInherited = context | NullableContext.
AnnotationsContextInherited
;