78 references to Annotations
Microsoft.CodeAnalysis (2)
Microsoft.CodeAnalysis.CSharp (3)
Microsoft.CodeAnalysis.CSharp.CodeStyle (2)
Microsoft.CodeAnalysis.CSharp.CodeStyle.UnitTests (21)
src\Analyzers\CSharp\Tests\RemoveUnnecessaryNullableDirective\CSharpRemoveRedundantNullableDirectiveTests.cs (16)
24[InlineData(NullableContextOptions.Disable, NullableContextOptions.Annotations)]
27[InlineData(NullableContextOptions.Annotations, NullableContextOptions.Warnings)]
28[InlineData(NullableContextOptions.Annotations, NullableContextOptions.Enable)]
29[InlineData(NullableContextOptions.Warnings, NullableContextOptions.Annotations)]
51[InlineData(NullableContextOptions.Annotations, NullableContextOptions.Annotations)]
53[InlineData(NullableContextOptions.Enable, NullableContextOptions.Annotations)]
75[InlineData(NullableContextOptions.Annotations, NullableContextOptions.Annotations)]
76[InlineData(NullableContextOptions.Annotations, NullableContextOptions.Enable)]
79[InlineData(NullableContextOptions.Enable, NullableContextOptions.Annotations)]
102[InlineData(NullableContextOptions.Disable, NullableContextOptions.Annotations)]
105[InlineData(NullableContextOptions.Annotations, NullableContextOptions.Warnings)]
106[InlineData(NullableContextOptions.Warnings, NullableContextOptions.Annotations)]
458NullableContextOptions.Annotations => "disable annotations",
469NullableContextOptions.Annotations => "enable annotations",
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (8)
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (1)
Microsoft.CodeAnalysis.CSharp.Features (2)
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (22)
src\Analyzers\CSharp\Tests\RemoveUnnecessaryNullableDirective\CSharpRemoveRedundantNullableDirectiveTests.cs (16)
24[InlineData(NullableContextOptions.Disable, NullableContextOptions.Annotations)]
27[InlineData(NullableContextOptions.Annotations, NullableContextOptions.Warnings)]
28[InlineData(NullableContextOptions.Annotations, NullableContextOptions.Enable)]
29[InlineData(NullableContextOptions.Warnings, NullableContextOptions.Annotations)]
51[InlineData(NullableContextOptions.Annotations, NullableContextOptions.Annotations)]
53[InlineData(NullableContextOptions.Enable, NullableContextOptions.Annotations)]
75[InlineData(NullableContextOptions.Annotations, NullableContextOptions.Annotations)]
76[InlineData(NullableContextOptions.Annotations, NullableContextOptions.Enable)]
79[InlineData(NullableContextOptions.Enable, NullableContextOptions.Annotations)]
102[InlineData(NullableContextOptions.Disable, NullableContextOptions.Annotations)]
105[InlineData(NullableContextOptions.Annotations, NullableContextOptions.Warnings)]
106[InlineData(NullableContextOptions.Warnings, NullableContextOptions.Annotations)]
458NullableContextOptions.Annotations => "disable annotations",
469NullableContextOptions.Annotations => "enable annotations",
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (15)
Semantics\NullableContextTests.cs (9)
24[InlineData("#nullable enable", NullableContextOptions.Annotations, NullableContext.Enabled)]
30[InlineData("#nullable enable warnings", NullableContextOptions.Annotations, NullableContext.Enabled | NullableContext.AnnotationsContextInherited)]
35[InlineData("#nullable enable annotations", NullableContextOptions.Annotations, NullableContext.AnnotationsEnabled | NullableContext.WarningsContextInherited)]
39[InlineData("#nullable disable", NullableContextOptions.Annotations, NullableContext.Disabled)]
45[InlineData("#nullable disable warnings", NullableContextOptions.Annotations, NullableContext.AnnotationsEnabled | NullableContext.AnnotationsContextInherited)]
50[InlineData("#nullable disable annotations", NullableContextOptions.Annotations, NullableContext.Disabled | NullableContext.WarningsContextInherited)]
115Assert.True(NullableContextOptions.Annotations.AnnotationsEnabled());
116Assert.False(NullableContextOptions.Annotations.WarningsEnabled());
502NullableContextOptions.Annotations,
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (1)
Microsoft.VisualStudio.LanguageServices.CSharp (1)