45 references to IsDelegateType
Microsoft.CodeAnalysis.VisualBasic (38)
Binding\Binder_Conversions.vb (5)
855
If (targetNamedType.
IsDelegateType
AndAlso destinationArg.IsReferenceType AndAlso sourceArg.IsReferenceType) OrElse
892
If oneVariantDifference.TypeParameter.ContainingType.
IsDelegateType
Then
938
If oneInvariantDifference.ContainingType.
IsDelegateType
Then
987
Debug.Assert(sourceType.
IsDelegateType
() AndAlso DirectCast(sourceType, NamedTypeSymbol).IsAnonymousType AndAlso targetType.
IsDelegateType
() AndAlso
Binding\Binder_Delegates.vb (1)
1249
receiver.Type.
IsDelegateType
() AndAlso
Binding\Binder_Imports.vb (2)
90
If type Is Nothing OrElse type.
IsDelegateType
Then
173
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)
2301
If Not targetType.
IsDelegateType
() Then
2484
If eventType IsNot Nothing AndAlso eventType.
IsDelegateType
Then
CodeGen\EmitExpression.vb (3)
467
If method.IsMetadataVirtual AndAlso Not method.ContainingType.
IsDelegateType
() AndAlso Not receiver.SuppressVirtualCalls Then
1381
If (Not (expr.Type.IsArrayType OrElse expr.Type.IsInterfaceType OrElse expr.Type.
IsDelegateType
)) Then
1455
Return (toType.
IsDelegateType
() AndAlso Not TypeSymbol.Equals(toType, fromType, TypeCompareKind.ConsiderEverything)) OrElse
Emit\NamedTypeSymbolAdapter.vb (1)
548
Return AdaptedNamedTypeSymbol.
IsDelegateType
()
Emit\NoPia\EmbeddedType.vb (1)
152
Return UnderlyingNamedType.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)
2267
If source.
IsDelegateType
() Then
2275
ElseIf Not destination.
IsDelegateType
() OrElse destination.IsStrictSupertypeOfConcreteDelegate() Then
2946
If source.IsAnonymousType AndAlso source.
IsDelegateType
() AndAlso destination.
IsDelegateType
() Then
Semantics\OverloadResolution.vb (1)
3320
targetType.
IsDelegateType
Then
Semantics\TypeInference\TypeArgumentInference.vb (7)
439
If Expression.Kind = BoundKind.UnboundLambda AndAlso ParameterType.
IsDelegateType
() Then
1159
ElseIf parameterType.
IsDelegateType
() Then
1193
ElseIf parameterType.
IsDelegateType
() Then
1655
If argumentType IsNot Nothing AndAlso argumentType.
IsDelegateType
() AndAlso parameterType.
IsDelegateType
() AndAlso
1918
If parameterType.
IsDelegateType
() Then
2036
ElseIf parameterType.
IsDelegateType
() Then
Symbols\Source\SourceEventSymbol.vb (1)
170
If Not type.
IsDelegateType
Then
Symbols\Source\SourceMemberContainerTypeSymbol.vb (2)
377
Debug.Assert(Not container.
IsDelegateType
())
1119
If Not type.
IsDelegateType
() Then
Symbols\Source\SourceNamedTypeSymbol_ComClass.vb (1)
682
If member.Type.
IsDelegateType
() Then
Symbols\Source\SynthesizedEventAccessorSymbol.vb (1)
273
If Not eventSymbol.Type.
IsDelegateType
() Then
Symbols\SynthesizedSymbols\SynthesizedEventDelegateSymbol.vb (1)
396
Debug.Assert(Not container.
IsDelegateType
())
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (2)
Attributes\AttributeTests_Tuples.vb (1)
315
Assert.True(delegate1.
IsDelegateType
())
CodeGen\CodeGenWinMdDelegates.vb (1)
253
If Not fieldType.
IsDelegateType
() Then
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (2)
Semantics\AnonymousTypesTests.vb (2)
1506
Assert.True(associatedDelegate.
IsDelegateType
)
1551
Assert.True(associatedDelegate.
IsDelegateType
)
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (3)
SymbolsTests\Source\ComClassTests.vb (1)
30
Not DirectCast(m, NamedTypeSymbol).
IsDelegateType
())
SymbolsTests\Source\EventTests.vb (2)
2498
Assert.True(e1.Type.
IsDelegateType
())
2552
Assert.True(e1.Type.
IsDelegateType
())