2 implementations of NullableAnnotation
Microsoft.CodeAnalysis.CSharp (1)
Symbols\PublicModel\LocalSymbol.cs (1)
38CodeAnalysis.NullableAnnotation ILocalSymbol.NullableAnnotation => _underlying.TypeWithAnnotations.ToPublicAnnotation();
Microsoft.CodeAnalysis.VisualBasic (1)
Symbols\Source\LocalSymbol.vb (1)
401Private ReadOnly Property ILocalSymbol_NullableAnnotation As NullableAnnotation Implements ILocalSymbol.NullableAnnotation
33 references to NullableAnnotation
Microsoft.CodeAnalysis.CSharp (1)
Compilation\CSharpSemanticModel.cs (1)
596return (local.Type, local.NullableAnnotation);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (8)
Semantics\NullableReferenceTypesTests.cs (8)
5173Assert.Equal(CodeAnalysis.NullableAnnotation.Annotated, local.NullableAnnotation); 145379Assert.Equal(CodeAnalysis.NullableAnnotation.Annotated, local.NullableAnnotation); 145420Assert.Equal(CodeAnalysis.NullableAnnotation.Annotated, local.NullableAnnotation); 145460Assert.Equal(CodeAnalysis.NullableAnnotation.Annotated, local.NullableAnnotation); 145498Assert.Equal(CodeAnalysis.NullableAnnotation.Annotated, local.NullableAnnotation); 145536Assert.Equal(CodeAnalysis.NullableAnnotation.Annotated, local.NullableAnnotation); 145640Assert.Equal(CodeAnalysis.NullableAnnotation.Annotated, local.NullableAnnotation); 145679Assert.Equal(CodeAnalysis.NullableAnnotation.Annotated, local.NullableAnnotation);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (23)
Symbols\Source\NullablePublicAPITests.cs (23)
1007Assert.Equal(result, localSymbol.NullableAnnotation); 1178Assert.Equal(declaredSymbol.Type.NullableAnnotation, declaredSymbol.NullableAnnotation); 1179context.ReportDiagnostic(CodeAnalysis.Diagnostic.Create(s_descriptor2, declarator.GetLocation(), declaredSymbol.Name, declaredSymbol.NullableAnnotation)); 1949Assert.Equal(PublicNullableAnnotation.Annotated, symbol.NullableAnnotation); 1996Assert.Equal(expectedAnnotation, symbol.NullableAnnotation); 2057Assert.Equal(expectedAnnotation1, symbols[0].NullableAnnotation); 2059Assert.Equal(expectedAnnotation2, symbols[1].NullableAnnotation); 2100Assert.Equal(expectedAnnotation1, symbols[0].NullableAnnotation); 2102Assert.Equal(expectedAnnotation2, symbols[1].NullableAnnotation); 2139Assert.Equal(PublicNullableAnnotation.Annotated, ((ILocalSymbol)specModel.GetDeclaredSymbol(newDeclarator)).NullableAnnotation); 2143Assert.Equal(PublicNullableAnnotation.Annotated, ((ILocalSymbol)specModel.GetDeclaredSymbol(newDeclarator)).NullableAnnotation); 2188Assert.Equal(expectedAnnotation, symbol.NullableAnnotation); 2220Assert.Equal(PublicNullableAnnotation.Annotated, symbol.NullableAnnotation); 2258Assert.Equal(expectedAnnotation, symbol.NullableAnnotation); 2290Assert.Equal(expectedAnnotation, symbol.NullableAnnotation); 2336Assert.Equal(expectedAnnotation, symbol.NullableAnnotation); 2378Assert.Equal(expectedAnnotation, symbol.NullableAnnotation); 2421Assert.Equal(expectedAnnotation, symbol.NullableAnnotation); 2463Assert.Equal(PublicNullableAnnotation.Annotated, symbol.NullableAnnotation); 2511Assert.Equal(expectedAnnotation, symbol.NullableAnnotation); 2560Assert.Equal(expectedAnnotation, symbol.NullableAnnotation); 3922Assert.Equal(PublicNullableAnnotation.Annotated, o2Symbol.NullableAnnotation); 3936Assert.Equal(PublicNullableAnnotation.Annotated, o4Symbol.NullableAnnotation);
Microsoft.CodeAnalysis.VisualBasic (1)
Symbols\Source\LocalSymbol.vb (1)
401Private ReadOnly Property ILocalSymbol_NullableAnnotation As NullableAnnotation Implements ILocalSymbol.NullableAnnotation