2 implementations of ElementNullableAnnotation
Microsoft.CodeAnalysis.CSharp (1)
Symbols\PublicModel\ArrayTypeSymbol.cs (1)
56CodeAnalysis.NullableAnnotation IArrayTypeSymbol.ElementNullableAnnotation
Microsoft.CodeAnalysis.VisualBasic (1)
Symbols\ArrayTypeSymbol.vb (1)
412Private ReadOnly Property IArrayTypeSymbol_ElementNullableAnnotation As NullableAnnotation Implements IArrayTypeSymbol.ElementNullableAnnotation
22 references to ElementNullableAnnotation
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (16)
Compilation\CompilationAPITests.cs (8)
2465Assert.Equal(CodeAnalysis.NullableAnnotation.None, arrayType.ElementNullableAnnotation); 2473Assert.Equal(CodeAnalysis.NullableAnnotation.None, arrayType.ElementNullableAnnotation); 2481Assert.Equal(CodeAnalysis.NullableAnnotation.None, arrayType.ElementNullableAnnotation); 2492Assert.Equal(CodeAnalysis.NullableAnnotation.None, comp.CreateArrayTypeSymbol(elementType).ElementNullableAnnotation); 2494Assert.Equal(CodeAnalysis.NullableAnnotation.None, comp.CreateArrayTypeSymbol(elementType, elementNullableAnnotation: CodeAnalysis.NullableAnnotation.None).ElementNullableAnnotation); 2496Assert.Equal(CodeAnalysis.NullableAnnotation.None, comp.CreateArrayTypeSymbol(elementType, elementNullableAnnotation: CodeAnalysis.NullableAnnotation.None).ElementNullableAnnotation); 2498Assert.Equal(CodeAnalysis.NullableAnnotation.NotAnnotated, comp.CreateArrayTypeSymbol(elementType, elementNullableAnnotation: CodeAnalysis.NullableAnnotation.NotAnnotated).ElementNullableAnnotation); 2500Assert.Equal(CodeAnalysis.NullableAnnotation.Annotated, comp.CreateArrayTypeSymbol(elementType, elementNullableAnnotation: CodeAnalysis.NullableAnnotation.Annotated).ElementNullableAnnotation);
Symbols\Source\NullablePublicAPITests.cs (8)
698Assert.Equal(result, array.ElementNullableAnnotation); 5260Assert.Equal(PublicNullableAnnotation.NotAnnotated, type.ElementNullableAnnotation); 5283Assert.Equal(PublicNullableAnnotation.NotAnnotated, type.ElementNullableAnnotation); 5315Assert.Equal(PublicNullableAnnotation.NotAnnotated, type.ElementNullableAnnotation); 5338Assert.Equal(PublicNullableAnnotation.NotAnnotated, type.ElementNullableAnnotation); 5360Assert.Equal(PublicNullableAnnotation.NotAnnotated, type.ElementNullableAnnotation); 5408Assert.Equal(PublicNullableAnnotation.NotAnnotated, type.ElementNullableAnnotation); 5468Assert.Equal(PublicNullableAnnotation.None, type.ElementNullableAnnotation);
Microsoft.CodeAnalysis.VisualBasic (1)
Symbols\ArrayTypeSymbol.vb (1)
412Private ReadOnly Property IArrayTypeSymbol_ElementNullableAnnotation As NullableAnnotation Implements IArrayTypeSymbol.ElementNullableAnnotation
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (5)
Compilation\CompilationAPITests.vb (5)
1515Assert.Equal(CodeAnalysis.NullableAnnotation.None, arrayType.ElementNullableAnnotation) 1522Assert.Equal(CodeAnalysis.NullableAnnotation.None, arrayType.ElementNullableAnnotation) 1529Assert.Equal(CodeAnalysis.NullableAnnotation.None, arrayType.ElementNullableAnnotation) 1538Assert.Equal(CodeAnalysis.NullableAnnotation.None, comp.CreateArrayTypeSymbol(elementType).ElementNullableAnnotation) 1539Assert.Equal(CodeAnalysis.NullableAnnotation.None, comp.CreateArrayTypeSymbol(elementType, elementNullableAnnotation:=Nothing).ElementNullableAnnotation)