72 references to IsInterfaceType
Microsoft.CodeAnalysis.VisualBasic (72)
Binding\Binder_Conversions.vb (4)
713
If targetGenericDefinition.
IsInterfaceType
() Then
1697
If sourceType.
IsInterfaceType
() Then
1702
ElseIf sourceType.IsClassType() AndAlso targetType.
IsInterfaceType
() Then
1785
ElseIf sourceType.
IsInterfaceType
() AndAlso targetType.IsValueType() AndAlso IsIEnumerableOfXElement(sourceType, CompoundUseSiteInfo(Of AssemblySymbol).Discarded) Then
Binding\Binder_Expressions.vb (2)
2926
If type.
IsInterfaceType
() Then
3745
If type.
IsInterfaceType
Then
Binding\Binder_Imports.vb (1)
173
If type Is Nothing OrElse type.IsDelegateType OrElse type.
IsInterfaceType
Then
Binding\Binder_Latebound.vb (1)
115
If receiver IsNot Nothing AndAlso receiver.Type IsNot Nothing AndAlso receiver.Type.
IsInterfaceType
Then
Binding\Binder_Lookup.vb (2)
990
Debug.Assert([interface].
IsInterfaceType
)
1048
Debug.Assert(type.
IsInterfaceType
)
Binding\Binder_ObjectInitializer.vb (1)
471
If type0.
IsInterfaceType
() Then
Binding\Binder_Statements.vb (1)
2671
Return Not type.IsErrorType() AndAlso type.
IsInterfaceType
() AndAlso
CodeGen\EmitConversion.vb (5)
206
typeFrom.
IsInterfaceType
)
371
If typeTo.
IsInterfaceType
() Then
405
typeTo.
IsInterfaceType
() Then
429
typeFrom.
IsInterfaceType
)
512
typeTo.
IsInterfaceType
())
CodeGen\EmitExpression.vb (5)
1301
ElseIf (expr.Type.
IsInterfaceType
() AndAlso Not TypeSymbol.Equals(expr.Type, mergeTypeOfAlternative, TypeCompareKind.ConsiderEverything) AndAlso Not TypeSymbol.Equals(expr.Type, mergeTypeOfConsequence, TypeCompareKind.ConsiderEverything)) Then
1356
ElseIf (expr.Type.
IsInterfaceType
() AndAlso Not TypeSymbol.Equals(expr.Type, mergeTypeOfLeftValue, TypeCompareKind.ConsiderEverything) AndAlso Not TypeSymbol.Equals(expr.Type, mergeTypeOfRightValue, TypeCompareKind.ConsiderEverything)) Then
1381
If (Not (expr.Type.IsArrayType OrElse expr.Type.
IsInterfaceType
OrElse expr.Type.IsDelegateType)) Then
1456
(toType.
IsInterfaceType
() AndAlso fromType.
IsInterfaceType
() AndAlso
Emit\NoPia\EmbeddedType.vb (2)
34
Debug.Assert(UnderlyingNamedType.AdaptedNamedTypeSymbol.
IsInterfaceType
())
146
Return UnderlyingNamedType.AdaptedNamedTypeSymbol.
IsInterfaceType
()
Lowering\ExpressionLambdaRewriter\ExpressionLambdaRewriter_Conversion.vb (1)
101
ElseIf typeTo.
IsInterfaceType
AndAlso typeFrom.IsValueType Then
Lowering\LocalRewriter\LocalRewriter_AddRemoveHandler.vb (1)
213
[event].ContainingType.
IsInterfaceType
() Then
Lowering\LocalRewriter\LocalRewriter_ObjectCreation.vb (1)
39
If node.Type.
IsInterfaceType
() Then
Semantics\AccessCheck.vb (4)
419
Dim baseTypeIsInterface = baseType.
IsInterfaceType
()
430
If baseTypeIsInterface = current.
IsInterfaceType
() AndAlso current.Equals(baseType) Then
952
If containerOfType.
IsInterfaceType
() Then
1036
Debug.Assert(base.IsClassType() OrElse base.
IsInterfaceType
(), "Expected class or interface!!!")
Semantics\Conversions.vb (1)
2915
Return type.
IsInterfaceType
()
Semantics\Operators.vb (4)
415
ElseIf sourceType.
IsInterfaceType
() Then
422
ElseIf targetType.
IsInterfaceType
() Then
2866
If type1 IsNot Nothing AndAlso type1.Kind = SymbolKind.NamedType AndAlso Not type1.
IsInterfaceType
() Then
2885
If type2 IsNot Nothing AndAlso type2.Kind = SymbolKind.NamedType AndAlso Not type2.
IsInterfaceType
() Then
Symbols\BaseTypeAnalysis.vb (1)
95
Debug.Assert(this.IsInterface OrElse Not base.
IsInterfaceType
())
Symbols\ConstraintsHelper.vb (5)
744
If Not constraint.
IsInterfaceType
() Then
777
If constraint.
IsInterfaceType
() Then
810
Debug.Assert(Not baseType.
IsInterfaceType
())
1009
If (constraintType1 IsNot Nothing) AndAlso (constraintType1.
IsInterfaceType
()) Then
1013
If (constraintType2 IsNot Nothing) AndAlso (constraintType2.
IsInterfaceType
()) Then
Symbols\Metadata\PE\PENamedTypeSymbol.vb (2)
532
If Not Me.
IsInterfaceType
() Then
1480
If Me.
IsInterfaceType
() Then
Symbols\MethodSymbol.vb (1)
230
(containingType Is Nothing OrElse Not containingType.
IsInterfaceType
) Then
Symbols\Retargeting\RetargetingNamedTypeSymbol.vb (1)
308
Dim isInterface = _underlyingType.
IsInterfaceType
()
Symbols\Source\ImplementsHelper.vb (1)
179
If interfaceType.
IsInterfaceType
() Then
Symbols\Source\OverrideHidingHelper.vb (1)
329
If container.
IsInterfaceType
() Then
Symbols\Source\SourceEventSymbol.vb (2)
146
If Not containingType.
IsInterfaceType
Then
256
If _containingType.
IsInterfaceType
Then
Symbols\Source\SourceMemberContainerTypeSymbol.vb (6)
376
If Not container.
IsInterfaceType
() Then
394
Debug.Assert(container.
IsInterfaceType
() AndAlso container.HasVariance())
504
Return GetInheritsOrImplementsLocation(directInterface, Me.
IsInterfaceType
())
2310
If namedType.
IsInterfaceType
() Then
3371
If Me.IsClassType() OrElse Me.IsStructureType() OrElse Me.
IsInterfaceType
() Then
3898
Dim isInterface As Boolean = Me.
IsInterfaceType
()
Symbols\Source\SourceMemberMethodSymbol.vb (1)
222
Not methodImpl.ContainingType.
IsInterfaceType
() Then
Symbols\Source\SourceMethodSymbol.vb (2)
1735
If methodImpl IsNot Nothing AndAlso (methodImpl.IsAsync OrElse methodImpl.IsIterator) AndAlso Not methodImpl.ContainingType.
IsInterfaceType
() Then
1807
Not methodImpl.ContainingType.
IsInterfaceType
() Then
Symbols\Source\SourceNamedTypeSymbol.vb (3)
1454
Dim isInterface As Boolean = Me.
IsInterfaceType
()
1886
If Me.
IsInterfaceType
() Then
2069
If Me.
IsInterfaceType
() Then
Symbols\SymbolExtensions.vb (1)
212
Return sym.ContainingType.
IsInterfaceType
() AndAlso
Symbols\SynthesizedSymbols\SynthesizedEventDelegateSymbol.vb (1)
395
If Not container.
IsInterfaceType
() Then
Symbols\TypeParameterSymbol.vb (1)
250
If (constraint.
IsInterfaceType
()) Then
Symbols\TypeSymbol.vb (1)
641
Me.
IsInterfaceType
() OrElse ' In VB interfaces do not implement anything
Symbols\TypeSymbolExtensions.vb (4)
128
Return type.IsClassType OrElse type.
IsInterfaceType
631
Debug.Assert(Not baseType.
IsInterfaceType
()) ' Not checking interfaces below.
717
If superType.
IsInterfaceType
() Then
1116
Return type.
IsInterfaceType
() AndAlso DirectCast(type, NamedTypeSymbol).IsExtensibleInterfaceNoUseSiteDiagnostics
Utilities\VarianceAmbiguity.vb (2)
53
Debug.Assert(i1.
IsInterfaceType
() AndAlso i2.
IsInterfaceType
())