20 references to EnsureCSharpSymbolOrNull
Microsoft.CodeAnalysis.CSharp (20)
Compilation\CSharpCompilation.cs (13)
2304
TypeSymbol? cssource = source.
EnsureCSharpSymbolOrNull
(nameof(source));
2305
TypeSymbol? csdest = destination.
EnsureCSharpSymbolOrNull
(nameof(destination));
2398
TypeSymbol? throughType0 = throughType.
EnsureCSharpSymbolOrNull
(nameof(throughType));
4006
return CreateArrayTypeSymbol(elementType.
EnsureCSharpSymbolOrNull
(nameof(elementType)), rank, elementNullableAnnotation.ToInternalAnnotation()).GetPublicSymbol();
4011
return CreatePointerTypeSymbol(elementType.
EnsureCSharpSymbolOrNull
(nameof(elementType)), elementType.NullableAnnotation.ToInternalAnnotation()).GetPublicSymbol();
4067
var returnTypeWithAnnotations = TypeWithAnnotations.Create(returnType.
EnsureCSharpSymbolOrNull
(nameof(returnType)), returnType.NullableAnnotation.ToInternalAnnotation());
4121
var elementType = typeSymbol.
EnsureCSharpSymbolOrNull
($"{nameof(elementTypes)}[{i}]");
4175
memberTypes[i].
EnsureCSharpSymbolOrNull
($"{nameof(memberTypes)}[{i}]");
4205
var csharpReturnType = returnType.
EnsureCSharpSymbolOrNull
(nameof(returnType));
4206
var csharpLeftType = leftType.
EnsureCSharpSymbolOrNull
(nameof(leftType));
4207
var csharpRightType = rightType.
EnsureCSharpSymbolOrNull
(nameof(rightType));
4430
var csharpReturnType = returnType.
EnsureCSharpSymbolOrNull
(nameof(returnType));
4431
var csharpOperandType = operandType.
EnsureCSharpSymbolOrNull
(nameof(operandType));
Compilation\CSharpSemanticModel.cs (1)
2833
TypeSymbol cdestination = destination.
EnsureCSharpSymbolOrNull
(nameof(destination));
Compilation\MemberSemanticModel.cs (1)
439
TypeSymbol csdestination = destination.
EnsureCSharpSymbolOrNull
(nameof(destination));
Compilation\SyntaxTreeSemanticModel.cs (1)
522
TypeSymbol csdestination = destination.
EnsureCSharpSymbolOrNull
(nameof(destination));
Symbols\Compilation_WellKnownMembers.cs (1)
203
return IsAttributeType(type.
EnsureCSharpSymbolOrNull
(nameof(type)));
Symbols\PublicModel\MethodSymbol.cs (1)
206
receiverType.
EnsureCSharpSymbolOrNull
(nameof(receiverType)), compilation: null).
Symbols\PublicModel\Symbol.cs (2)
24
var type = typeArg.
EnsureCSharpSymbolOrNull
(nameof(typeArguments));
47
var type = typeArguments[i].
EnsureCSharpSymbolOrNull
(nameof(typeArguments));