22 references to GetInternalDelegateType
Microsoft.CodeAnalysis.CSharp (22)
Binder\Binder_Invocation.cs (1)
2027functionType.GetInternalDelegateType() is { } delegateType)
Binder\Binder_Statements.cs (1)
2043functionType.GetInternalDelegateType() is null)
Binder\Semantics\BestTypeInferrer.cs (3)
82return function.GetInternalDelegateType(); 103result = functionType.GetInternalDelegateType(); 251type is FunctionTypeSymbol functionType && functionType.GetInternalDelegateType() is null ?
Binder\Semantics\Conversions\ConversionsBase.cs (3)
2805source.GetInternalDelegateType() is { }; 2832var sourceDelegate = sourceType.GetInternalDelegateType(); 2838var destinationDelegate = destinationType.GetInternalDelegateType();
Binder\Semantics\OverloadResolution\MethodTypeInference.cs (2)
2866lowerPredicate = static type => !isFunctionType(type, out var functionType) || functionType.GetInternalDelegateType() is not null; 2961var resultType = functionType.GetInternalDelegateType();
BoundTree\BoundExpressionExtensions.cs (1)
139var delegateType = expr.GetFunctionType()?.GetInternalDelegateType();
BoundTree\UnboundLambda.cs (1)
271bestType = functionType.GetInternalDelegateType();
Symbols\FunctionTypeSymbol.cs (9)
32/// The actual delegate signature is calculated on demand in <see cref="GetInternalDelegateType()"/>. 164var thisDelegateType = GetInternalDelegateType(); 166var otherDelegateType = otherType.GetInternalDelegateType(); 181var thisDelegateType = GetInternalDelegateType(); 191var thisDelegateType = GetInternalDelegateType(); 214var thisDelegateType = GetInternalDelegateType(); 215var otherDelegateType = otherType.GetInternalDelegateType(); 230return GetInternalDelegateType()?.GetHashCode() ?? 0; 235return $"FunctionTypeSymbol: {GetInternalDelegateType()?.GetDebuggerDisplay()}";
Symbols\TypeSymbolExtensions.cs (1)
841if (((FunctionTypeSymbol)current).GetInternalDelegateType() is not { } delegateType)