37 references to IsDelegateType
Microsoft.CodeAnalysis.VisualBasic (37)
Binding\Binder_Conversions.vb (5)
863
If (targetNamedType.
IsDelegateType
AndAlso destinationArg.IsReferenceType AndAlso sourceArg.IsReferenceType) OrElse
900
If oneVariantDifference.TypeParameter.ContainingType.
IsDelegateType
Then
946
If oneInvariantDifference.ContainingType.
IsDelegateType
Then
995
Debug.Assert(sourceType.
IsDelegateType
() AndAlso DirectCast(sourceType, NamedTypeSymbol).IsAnonymousType AndAlso targetType.
IsDelegateType
() AndAlso
Binding\Binder_Delegates.vb (1)
1246
receiver.Type.
IsDelegateType
() AndAlso
Binding\Binder_Imports.vb (2)
89
If type Is Nothing OrElse type.
IsDelegateType
Then
172
If type Is Nothing OrElse type.
IsDelegateType
OrElse type.IsInterfaceType Then
Binding\Binder_Lookup.vb (1)
955
Debug.Assert(type.IsClassType OrElse type.IsModuleType OrElse type.IsStructureType OrElse type.
IsDelegateType
)
Binding\Binder_Statements.vb (2)
2330
If Not targetType.
IsDelegateType
() Then
2513
If eventType IsNot Nothing AndAlso eventType.
IsDelegateType
Then
CodeGen\EmitExpression.vb (3)
493
If Not method.IsShared AndAlso method.IsMetadataVirtual AndAlso Not method.ContainingType.
IsDelegateType
() AndAlso Not receiver.SuppressVirtualCalls Then
1525
If (Not (expr.Type.IsArrayType OrElse expr.Type.IsInterfaceType OrElse expr.Type.
IsDelegateType
)) Then
1599
Return (toType.
IsDelegateType
() AndAlso Not TypeSymbol.Equals(toType, fromType, TypeCompareKind.ConsiderEverything)) OrElse
Emit\NamedTypeSymbolAdapter.vb (1)
561
Return AdaptedNamedTypeSymbol.
IsDelegateType
()
Lowering\LocalRewriter\LocalRewriter_Conversion.vb (2)
315
Debug.Assert(node.Operand.Type.
IsDelegateType
() AndAlso
317
node.Type.
IsDelegateType
() AndAlso
Operations\VisualBasicOperationFactory_Methods.vb (1)
589
If Not targetType.
IsDelegateType
() Then
Semantics\AccessCheck.vb (1)
1180
Dim nameToReportInError As String = If(membersContainer.
IsDelegateType
(), membersContainer.Name, member.Name)
Semantics\Conversions.vb (4)
2272
If source.
IsDelegateType
() Then
2280
ElseIf Not destination.
IsDelegateType
() OrElse destination.IsStrictSupertypeOfConcreteDelegate() Then
2951
If source.IsAnonymousType AndAlso source.
IsDelegateType
() AndAlso destination.
IsDelegateType
() Then
Semantics\OverloadResolution.vb (1)
3681
targetType.
IsDelegateType
Then
Semantics\TypeInference\TypeArgumentInference.vb (7)
438
If Expression.Kind = BoundKind.UnboundLambda AndAlso ParameterType.
IsDelegateType
() Then
1154
ElseIf parameterType.
IsDelegateType
() Then
1188
ElseIf parameterType.
IsDelegateType
() Then
1650
If argumentType IsNot Nothing AndAlso argumentType.
IsDelegateType
() AndAlso parameterType.
IsDelegateType
() AndAlso
1913
If parameterType.
IsDelegateType
() Then
2031
ElseIf parameterType.
IsDelegateType
() Then
Symbols\Source\SourceEventSymbol.vb (1)
173
If Not type.
IsDelegateType
Then
Symbols\Source\SourceMemberContainerTypeSymbol.vb (2)
377
Debug.Assert(Not container.
IsDelegateType
())
1112
If Not type.
IsDelegateType
() Then
Symbols\Source\SourceNamedTypeSymbol_ComClass.vb (1)
684
If member.Type.
IsDelegateType
() Then
Symbols\Source\SynthesizedEventAccessorSymbol.vb (1)
273
If Not eventSymbol.Type.
IsDelegateType
() Then
Symbols\SynthesizedSymbols\SynthesizedEventDelegateSymbol.vb (1)
408
Debug.Assert(Not container.
IsDelegateType
())