10 references to AnnotationsEnabled
Microsoft.CodeAnalysis (2)
Compilation\NullableContext.cs (2)
36Enabled = WarningsEnabled | AnnotationsEnabled, 87IsFlagSet(context, NullableContext.AnnotationsEnabled);
Microsoft.CodeAnalysis.CSharp (2)
Compilation\CSharpSemanticModel.cs (2)
5448NullableContextState.State.Enabled => NullableContext.AnnotationsEnabled, 5450_ when getDefaultState().AnnotationsEnabled() => NullableContext.AnnotationsContextInherited | NullableContext.AnnotationsEnabled,
Microsoft.CodeAnalysis.CSharp.Features (1)
ConvertCast\CSharpConvertTryCastToDirectCastCodeRefactoringProvider.cs (1)
59if (expression.IsKind(SyntaxKind.NullLiteralExpression) && nullableContext.HasFlag(NullableContext.AnnotationsEnabled) && isReferenceType)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (5)
Semantics\NullableContextTests.cs (5)
33[InlineData("#nullable enable annotations", NullableContextOptions.Disable, NullableContext.AnnotationsEnabled | NullableContext.WarningsContextInherited)] 35[InlineData("#nullable enable annotations", NullableContextOptions.Annotations, NullableContext.AnnotationsEnabled | NullableContext.WarningsContextInherited)] 45[InlineData("#nullable disable warnings", NullableContextOptions.Annotations, NullableContext.AnnotationsEnabled | NullableContext.AnnotationsContextInherited)] 46[InlineData("#nullable disable warnings", NullableContextOptions.Enable, NullableContext.AnnotationsEnabled | NullableContext.AnnotationsContextInherited)] 130AssertEnabledForInheritance(NullableContext.AnnotationsEnabled, warningsEnabled: false, annotationsEnabled: true);