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