69 references to IsInterfaceType
Microsoft.CodeAnalysis.VisualBasic (69)
Binding\Binder_Conversions.vb (4)
721
If targetGenericDefinition.
IsInterfaceType
() Then
1712
If sourceType.
IsInterfaceType
() Then
1717
ElseIf sourceType.IsClassType() AndAlso targetType.
IsInterfaceType
() Then
1806
ElseIf sourceType.
IsInterfaceType
() AndAlso targetType.IsValueType() AndAlso IsIEnumerableOfXElement(sourceType, CompoundUseSiteInfo(Of AssemblySymbol).Discarded) Then
Binding\Binder_Expressions.vb (2)
2957
If type.
IsInterfaceType
() Then
3776
If type.
IsInterfaceType
Then
Binding\Binder_Imports.vb (1)
172
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)
476
If type0.
IsInterfaceType
() Then
Binding\Binder_Statements.vb (1)
2700
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)
1445
ElseIf (expr.Type.
IsInterfaceType
() AndAlso Not TypeSymbol.Equals(expr.Type, mergeTypeOfAlternative, TypeCompareKind.ConsiderEverything) AndAlso Not TypeSymbol.Equals(expr.Type, mergeTypeOfConsequence, TypeCompareKind.ConsiderEverything)) Then
1500
ElseIf (expr.Type.
IsInterfaceType
() AndAlso Not TypeSymbol.Equals(expr.Type, mergeTypeOfLeftValue, TypeCompareKind.ConsiderEverything) AndAlso Not TypeSymbol.Equals(expr.Type, mergeTypeOfRightValue, TypeCompareKind.ConsiderEverything)) Then
1525
If (Not (expr.Type.IsArrayType OrElse expr.Type.
IsInterfaceType
OrElse expr.Type.IsDelegateType)) Then
1600
(toType.
IsInterfaceType
() AndAlso fromType.
IsInterfaceType
() AndAlso
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)
2920
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 (4)
810
If constraint.
IsInterfaceType
() Then
843
Debug.Assert(Not baseType.
IsInterfaceType
())
1050
If (constraintType1 IsNot Nothing) AndAlso (constraintType1.
IsInterfaceType
()) Then
1054
If (constraintType2 IsNot Nothing) AndAlso (constraintType2.
IsInterfaceType
()) Then
Symbols\Metadata\PE\PENamedTypeSymbol.vb (2)
532
If Not Me.
IsInterfaceType
() Then
1513
If Me.
IsInterfaceType
() Then
Symbols\MethodSymbol.vb (1)
231
(containingType Is Nothing OrElse Not containingType.
IsInterfaceType
) Then
Symbols\Retargeting\RetargetingNamedTypeSymbol.vb (1)
314
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)
148
If Not containingType.
IsInterfaceType
Then
259
If _containingType.
IsInterfaceType
Then
Symbols\Source\SourceMemberContainerTypeSymbol.vb (6)
376
If Not container.
IsInterfaceType
() Then
394
Debug.Assert(container.
IsInterfaceType
() AndAlso container.HasVariance())
501
Return GetInheritsOrImplementsLocation(directInterface, Me.
IsInterfaceType
())
2322
If namedType.
IsInterfaceType
() Then
3383
If Me.IsClassType() OrElse Me.IsStructureType() OrElse Me.
IsInterfaceType
() Then
3910
Dim isInterface As Boolean = Me.
IsInterfaceType
()
Symbols\Source\SourceMemberMethodSymbol.vb (1)
223
Not methodImpl.ContainingType.
IsInterfaceType
() Then
Symbols\Source\SourceMethodSymbol.vb (2)
1769
If methodImpl IsNot Nothing AndAlso (methodImpl.IsAsync OrElse methodImpl.IsIterator) AndAlso Not methodImpl.ContainingType.
IsInterfaceType
() Then
1841
Not methodImpl.ContainingType.
IsInterfaceType
() Then
Symbols\Source\SourceNamedTypeSymbol.vb (3)
1466
Dim isInterface As Boolean = Me.
IsInterfaceType
()
1974
If Me.
IsInterfaceType
() Then
2158
If Me.
IsInterfaceType
() Then
Symbols\SymbolExtensions.vb (1)
212
Return sym.ContainingType.
IsInterfaceType
() AndAlso
Symbols\SynthesizedSymbols\SynthesizedEventDelegateSymbol.vb (1)
407
If Not container.
IsInterfaceType
() Then
Symbols\TypeParameterSymbol.vb (1)
250
If (constraint.
IsInterfaceType
()) Then
Symbols\TypeSymbol.vb (1)
675
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
())