9 references to ToInternalAnnotation
Microsoft.CodeAnalysis.CSharp (9)
BoundTree\BoundDiscardExpression.cs (1)
33
return new DiscardSymbol(TypeWithAnnotations.Create(this.Type, this.TopLevelNullability.Annotation.
ToInternalAnnotation
()));
Compilation\CSharpCompilation.cs (5)
4031
return CreateArrayTypeSymbol(elementType.EnsureCSharpSymbolOrNull(nameof(elementType)), rank, elementNullableAnnotation.
ToInternalAnnotation
()).GetPublicSymbol();
4036
return CreatePointerTypeSymbol(elementType.EnsureCSharpSymbolOrNull(nameof(elementType)), elementType.NullableAnnotation.
ToInternalAnnotation
()).GetPublicSymbol();
4092
var returnTypeWithAnnotations = TypeWithAnnotations.Create(returnType.EnsureCSharpSymbolOrNull(nameof(returnType)), returnType.NullableAnnotation.
ToInternalAnnotation
());
4147
var annotation = (elementNullableAnnotations.IsDefault ? typeSymbol.NullableAnnotation : elementNullableAnnotations[i]).
ToInternalAnnotation
();
4215
var nullableAnnotation = memberNullableAnnotations.IsDefault ? NullableAnnotation.Oblivious : memberNullableAnnotations[i].
ToInternalAnnotation
();
Symbols\NullableAnnotationExtensions.cs (1)
98
CSharp.NullableAnnotation internalAnnotation = annotation.
ToInternalAnnotation
();
Symbols\PublicModel\Symbol.cs (2)
25
builder.Add(TypeWithAnnotations.Create(type, (typeArg?.NullableAnnotation.
ToInternalAnnotation
() ?? NullableAnnotation.NotAnnotated)));
48
var annotation = typeArgumentNullableAnnotations.IsDefault ? NullableAnnotation.Oblivious : typeArgumentNullableAnnotations[i].
ToInternalAnnotation
();