20 references to EnsureCSharpSymbolOrNull
Microsoft.CodeAnalysis.CSharp (20)
Compilation\CSharpCompilation.cs (13)
2309TypeSymbol? cssource = source.EnsureCSharpSymbolOrNull(nameof(source)); 2310TypeSymbol? csdest = destination.EnsureCSharpSymbolOrNull(nameof(destination)); 2403TypeSymbol? throughType0 = throughType.EnsureCSharpSymbolOrNull(nameof(throughType)); 4031return CreateArrayTypeSymbol(elementType.EnsureCSharpSymbolOrNull(nameof(elementType)), rank, elementNullableAnnotation.ToInternalAnnotation()).GetPublicSymbol(); 4036return CreatePointerTypeSymbol(elementType.EnsureCSharpSymbolOrNull(nameof(elementType)), elementType.NullableAnnotation.ToInternalAnnotation()).GetPublicSymbol(); 4092var returnTypeWithAnnotations = TypeWithAnnotations.Create(returnType.EnsureCSharpSymbolOrNull(nameof(returnType)), returnType.NullableAnnotation.ToInternalAnnotation()); 4146var elementType = typeSymbol.EnsureCSharpSymbolOrNull($"{nameof(elementTypes)}[{i}]"); 4200memberTypes[i].EnsureCSharpSymbolOrNull($"{nameof(memberTypes)}[{i}]"); 4230var csharpReturnType = returnType.EnsureCSharpSymbolOrNull(nameof(returnType)); 4231var csharpLeftType = leftType.EnsureCSharpSymbolOrNull(nameof(leftType)); 4232var csharpRightType = rightType.EnsureCSharpSymbolOrNull(nameof(rightType)); 4455var csharpReturnType = returnType.EnsureCSharpSymbolOrNull(nameof(returnType)); 4456var csharpOperandType = operandType.EnsureCSharpSymbolOrNull(nameof(operandType));
Compilation\CSharpSemanticModel.cs (1)
2833TypeSymbol cdestination = destination.EnsureCSharpSymbolOrNull(nameof(destination));
Compilation\MemberSemanticModel.cs (1)
439TypeSymbol csdestination = destination.EnsureCSharpSymbolOrNull(nameof(destination));
Compilation\SyntaxTreeSemanticModel.cs (1)
522TypeSymbol csdestination = destination.EnsureCSharpSymbolOrNull(nameof(destination));
Symbols\Compilation_WellKnownMembers.cs (1)
203return IsAttributeType(type.EnsureCSharpSymbolOrNull(nameof(type)));
Symbols\PublicModel\MethodSymbol.cs (1)
206receiverType.EnsureCSharpSymbolOrNull(nameof(receiverType)), compilation: null).
Symbols\PublicModel\Symbol.cs (2)
24var type = typeArg.EnsureCSharpSymbolOrNull(nameof(typeArguments)); 47var type = typeArguments[i].EnsureCSharpSymbolOrNull(nameof(typeArguments));