24 references to GetDelegateType
Microsoft.CodeAnalysis.CSharp (24)
Binder\Binder_Conversions.cs (2)
2269if (targetType.GetDelegateType() is { } delegateType) 2316var delegateType = targetType.GetDelegateType();
Binder\Binder_Invocation.cs (1)
2182(object)parameterType.GetDelegateType() != null)
Binder\Binder_Statements.cs (1)
2147var delegateType = targetType.GetDelegateType();
Binder\Semantics\Conversions\Conversions.cs (1)
285var delegateType = type.GetDelegateType();
Binder\Semantics\OverloadResolution\MethodTypeInference.cs (4)
637if (argument.Kind == BoundKind.UnboundLambda && target.Type.GetDelegateType() is { }) 1410var delegateType = target.Type.GetDelegateType(); 1571var delegateType = target.Type.GetDelegateType(); 1624var delegateInvokeMethod = target.Type.GetDelegateType()?.DelegateInvokeMethod();
Binder\Semantics\OverloadResolution\OverloadResolution.cs (6)
3291(object)(d = t.GetDelegateType()) != null && 3565if ((object)(d1 = type1.GetDelegateType()) != null) 3569if ((object)(d2 = type2.GetDelegateType()) != null) 3630else if ((object)type2.GetDelegateType() != null) 3696if ((object)(d1 = type1.GetDelegateType()) != null) 3700if ((object)(d2 = type2.GetDelegateType()) != null)
BoundTree\UnboundLambda.cs (3)
155var delegateType = Type.GetDelegateType(); 319var delegateReturnType = delegateType?.GetDelegateType()?.DelegateInvokeMethod?.ReturnType as NamedTypeSymbol; 674return delegateType.GetDelegateType()?.DelegateInvokeMethod;
FlowAnalysis\NullableWalker.cs (2)
1968lambdaIsExactMatch = updatedSymbol.Equals(boundLambda.Type!.GetDelegateType(), TypeCompareKind.ConsiderEverything); 9509var delegateType = targetType.GetDelegateType();
Lowering\ClosureConversion\ExpressionLambdaRewriter.cs (1)
869var underlyingDelegateType = node.Type.GetDelegateType();
Lowering\LocalRewriter\LocalRewriter.cs (1)
334var delegateType = node.Type.GetDelegateType();
Symbols\TypeSymbolExtensions.cs (2)
456return (TypeSymbol?)GetDelegateType(type) ?? type as FunctionPointerTypeSymbol; 619return type.GetDelegateType()!.DelegateInvokeMethod;