24 references to GetDelegateType
Microsoft.CodeAnalysis.CSharp (24)
Binder\Binder_Conversions.cs (2)
2004if (targetType.GetDelegateType() is { } delegateType) 2051var delegateType = targetType.GetDelegateType();
Binder\Binder_Invocation.cs (1)
2091(object)parameterType.GetDelegateType() != null)
Binder\Binder_Statements.cs (1)
2071var delegateType = targetType.GetDelegateType();
Binder\Semantics\Conversions\Conversions.cs (1)
280var delegateType = type.GetDelegateType();
Binder\Semantics\OverloadResolution\MethodTypeInference.cs (4)
609if (argument.Kind == BoundKind.UnboundLambda && target.Type.GetDelegateType() is { }) 1382var delegateType = target.Type.GetDelegateType(); 1541var delegateType = target.Type.GetDelegateType(); 1594var delegateInvokeMethod = target.Type.GetDelegateType()?.DelegateInvokeMethod();
Binder\Semantics\OverloadResolution\OverloadResolution.cs (6)
2970(object)(d = t.GetDelegateType()) != null && 3223if ((object)(d1 = type1.GetDelegateType()) != null) 3227if ((object)(d2 = type2.GetDelegateType()) != null) 3288else if ((object)type2.GetDelegateType() != null) 3338if ((object)(d1 = type1.GetDelegateType()) != null) 3342if ((object)(d2 = type2.GetDelegateType()) != null)
BoundTree\UnboundLambda.cs (3)
146var delegateType = Type.GetDelegateType(); 304var delegateReturnType = delegateType?.GetDelegateType()?.DelegateInvokeMethod?.ReturnType as NamedTypeSymbol; 635return delegateType.GetDelegateType()?.DelegateInvokeMethod;
FlowAnalysis\NullableWalker.cs (2)
1833lambdaIsExactMatch = updatedSymbol.Equals(boundLambda.Type!.GetDelegateType(), TypeCompareKind.ConsiderEverything); 8717var delegateType = targetType.GetDelegateType();
Lowering\ClosureConversion\ExpressionLambdaRewriter.cs (1)
780var underlyingDelegateType = node.Type.GetDelegateType();
Lowering\LocalRewriter\LocalRewriter.cs (1)
330var delegateType = node.Type.GetDelegateType();
Symbols\TypeSymbolExtensions.cs (2)
441return (TypeSymbol?)GetDelegateType(type) ?? type as FunctionPointerTypeSymbol; 604return type.GetDelegateType()!.DelegateInvokeMethod;