24 references to GetDelegateType
Microsoft.CodeAnalysis.CSharp (24)
Binder\Binder_Conversions.cs (2)
2264
if (targetType.
GetDelegateType
() is { } delegateType)
2311
var delegateType = targetType.
GetDelegateType
();
Binder\Binder_Invocation.cs (1)
2039
(object)parameterType.
GetDelegateType
() != null)
Binder\Binder_Statements.cs (1)
2106
var delegateType = targetType.
GetDelegateType
();
Binder\Semantics\Conversions\Conversions.cs (1)
280
var delegateType = type.
GetDelegateType
();
Binder\Semantics\OverloadResolution\MethodTypeInference.cs (4)
609
if (argument.Kind == BoundKind.UnboundLambda && target.Type.
GetDelegateType
() is { })
1382
var delegateType = target.Type.
GetDelegateType
();
1541
var delegateType = target.Type.
GetDelegateType
();
1594
var delegateInvokeMethod = target.Type.
GetDelegateType
()?.DelegateInvokeMethod();
Binder\Semantics\OverloadResolution\OverloadResolution.cs (6)
3253
(object)(d = t.
GetDelegateType
()) != null &&
3506
if ((object)(d1 = type1.
GetDelegateType
()) != null)
3510
if ((object)(d2 = type2.
GetDelegateType
()) != null)
3571
else if ((object)type2.
GetDelegateType
() != null)
3621
if ((object)(d1 = type1.
GetDelegateType
()) != null)
3625
if ((object)(d2 = type2.
GetDelegateType
()) != null)
BoundTree\UnboundLambda.cs (3)
146
var delegateType = Type.
GetDelegateType
();
304
var delegateReturnType = delegateType?.
GetDelegateType
()?.DelegateInvokeMethod?.ReturnType as NamedTypeSymbol;
635
return delegateType.
GetDelegateType
()?.DelegateInvokeMethod;
FlowAnalysis\NullableWalker.cs (2)
1846
lambdaIsExactMatch = updatedSymbol.Equals(boundLambda.Type!.
GetDelegateType
(), TypeCompareKind.ConsiderEverything);
8872
var delegateType = targetType.
GetDelegateType
();
Lowering\ClosureConversion\ExpressionLambdaRewriter.cs (1)
852
var underlyingDelegateType = node.Type.
GetDelegateType
();
Lowering\LocalRewriter\LocalRewriter.cs (1)
330
var delegateType = node.Type.
GetDelegateType
();
Symbols\TypeSymbolExtensions.cs (2)
450
return (TypeSymbol?)
GetDelegateType
(type) ?? type as FunctionPointerTypeSymbol;
613
return type.
GetDelegateType
()!.DelegateInvokeMethod;