20 references to EnsureCSharpSymbolOrNull
Microsoft.CodeAnalysis.CSharp (20)
Compilation\CSharpCompilation.cs (13)
2304TypeSymbol? cssource = source.EnsureCSharpSymbolOrNull(nameof(source)); 2305TypeSymbol? csdest = destination.EnsureCSharpSymbolOrNull(nameof(destination)); 2398TypeSymbol? throughType0 = throughType.EnsureCSharpSymbolOrNull(nameof(throughType)); 4006return CreateArrayTypeSymbol(elementType.EnsureCSharpSymbolOrNull(nameof(elementType)), rank, elementNullableAnnotation.ToInternalAnnotation()).GetPublicSymbol(); 4011return CreatePointerTypeSymbol(elementType.EnsureCSharpSymbolOrNull(nameof(elementType)), elementType.NullableAnnotation.ToInternalAnnotation()).GetPublicSymbol(); 4067var returnTypeWithAnnotations = TypeWithAnnotations.Create(returnType.EnsureCSharpSymbolOrNull(nameof(returnType)), returnType.NullableAnnotation.ToInternalAnnotation()); 4121var elementType = typeSymbol.EnsureCSharpSymbolOrNull($"{nameof(elementTypes)}[{i}]"); 4175memberTypes[i].EnsureCSharpSymbolOrNull($"{nameof(memberTypes)}[{i}]"); 4205var csharpReturnType = returnType.EnsureCSharpSymbolOrNull(nameof(returnType)); 4206var csharpLeftType = leftType.EnsureCSharpSymbolOrNull(nameof(leftType)); 4207var csharpRightType = rightType.EnsureCSharpSymbolOrNull(nameof(rightType)); 4430var csharpReturnType = returnType.EnsureCSharpSymbolOrNull(nameof(returnType)); 4431var 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));