16 overrides of TypeKind
Microsoft.CodeAnalysis.VisualBasic (14)
Lowering\StateMachineRewriter\SynthesizedContainer.vb (1)
110Public MustOverride Overrides ReadOnly Property TypeKind As TypeKind
Symbols\AnonymousTypes\PublicSymbols\AnonymousTypeOrDelegatePublicSymbol.vb (1)
63Public MustOverride Overrides ReadOnly Property TypeKind As TYPEKIND
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousTypeOrDelegateTemplateSymbol.vb (1)
120Public MustOverride Overrides ReadOnly Property TypeKind As TypeKind
Symbols\ArrayTypeSymbol.vb (1)
255Public Overrides ReadOnly Property TypeKind As TypeKind
Symbols\ErrorTypeSymbol.vb (1)
109Public NotOverridable Overrides ReadOnly Property TypeKind As TypeKind
Symbols\Metadata\PE\PENamedTypeSymbol.vb (1)
994Public Overrides ReadOnly Property TypeKind As TypeKind
Symbols\Retargeting\RetargetingNamedTypeSymbol.vb (1)
413Public Overrides ReadOnly Property TypeKind As TypeKind
Symbols\Source\SourceMemberContainerTypeSymbol.vb (1)
1268Public Overrides ReadOnly Property TypeKind As TypeKind
Symbols\Source\SourceNamedTypeSymbol_ComClass.vb (1)
956Public Overrides ReadOnly Property TypeKind As TypeKind
Symbols\SubstitutedNamedType.vb (1)
206Public NotOverridable Overrides ReadOnly Property TypeKind As TypeKind
Symbols\SynthesizedSymbols\SynthesizedEventDelegateSymbol.vb (1)
355Public Overrides ReadOnly Property TypeKind As TYPEKIND
Symbols\TypeParameterSymbol.vb (1)
146Public NotOverridable Overrides ReadOnly Property TypeKind As TypeKind
Symbols\UnboundGenericType.vb (1)
203Public Overrides ReadOnly Property TypeKind As TypeKind
Symbols\Wrapped\WrappedNamedTypeSymbol.vb (1)
78Public Overrides ReadOnly Property TypeKind As TypeKind
Microsoft.CodeAnalysis.VisualBasic.ExpressionEvaluator.ExpressionCompiler (1)
Symbols\EENamedTypeSymbol.vb (1)
251Public Overrides ReadOnly Property TypeKind As TypeKind
Microsoft.CodeAnalysis.VisualBasic.Test.Utilities (1)
MockSymbols.vb (1)
347Public Overrides ReadOnly Property TypeKind As TypeKind
425 references to TypeKind
Microsoft.CodeAnalysis.VisualBasic (200)
Analysis\FlowAnalysis\DataFlowPass.vb (2)
457If receiverOpt.Type Is Nothing OrElse receiverOpt.Type.TypeKind <> TypeKind.Structure Then 1273ElseIf type.TypeKind = TypeKind.TypeParameter Then
Binding\Binder.vb (1)
456If type.TypeKind = TypeKind.Error AndAlso TypeOf type Is MissingMetadataTypeSymbol.TopLevel Then
Binding\Binder_Conversions.vb (5)
781Select Case targetGenericDefinition.TypeKind 1218If targetType.TypeKind <> TypeKind.Delegate AndAlso targetType.TypeKind <> TypeKind.Error Then 1370If(targetDelegateType.TypeKind = TypeKind.Delegate AndAlso targetDelegateType.IsFromCompilation(Me.Compilation), 1422If(targetDelegateType.TypeKind = TypeKind.Delegate AndAlso targetDelegateType.IsFromCompilation(Me.Compilation),
Binding\Binder_Delegates.vb (2)
234ElseIf targetType.TypeKind <> TypeKind.Delegate Then 236If targetType.TypeKind <> TypeKind.Error Then
Binding\Binder_Expressions.vb (9)
1049type.TypeKind <> TYPEKIND.Class Then 1187Select Case type.TypeKind 2580If currentType.TypeKind = TYPEKIND.Submission AndAlso Not currentMember.IsShared Then 2581If memberDeclaringType.TypeKind = TYPEKIND.Submission Then 2715If CaseInsensitiveComparison.Equals(leftType.Name, leftName) AndAlso leftType.TypeKind <> TYPEKIND.TypeParameter Then 2792Dim leftTypeKind As TYPEKIND = leftTypeSymbol.TypeKind 2877If type.TypeKind = TYPEKIND.TypeParameter Then 3772Select Case type.TypeKind 3809Select Case type.TypeKind
Binding\Binder_Invocation.vb (1)
288ElseIf targetType.Kind = SymbolKind.NamedType AndAlso targetType.TypeKind = TypeKind.Delegate Then
Binding\Binder_Lookup.vb (10)
579Select Case type.TypeKind 597Throw ExceptionUtilities.UnexpectedValue(type.TypeKind) 605Select Case container.TypeKind 626Throw ExceptionUtilities.UnexpectedValue(container.TypeKind) 930Select Case container.TypeKind 1091Select Case type.TypeKind 1117Throw ExceptionUtilities.UnexpectedValue(type.TypeKind) 1696Select Case constraintType.TypeKind 1964(container.TypeKind = TypeKind.Class OrElse container.TypeKind = TypeKind.Structure) AndAlso
Binding\Binder_ObjectInitializer.vb (5)
79Select Case type0.TypeKind 205Select Case type0.TypeKind 220Select Case coClass.TypeKind 278Throw ExceptionUtilities.UnexpectedValue(coClass.TypeKind) 337Throw ExceptionUtilities.UnexpectedValue(type0.TypeKind)
Binding\Binder_Statements.vb (1)
970If Me.ContainingType IsNot Nothing AndAlso Me.ContainingType.TypeKind = TYPEKIND.Structure Then
Binding\BinderFactory.vb (1)
386containingType.TypeKind = TypeKind.Delegate Then
Binding\DocumentationCommentBinder.vb (1)
44If commentedNamedType IsNot Nothing AndAlso commentedNamedType.TypeKind <> TypeKind.Delegate Then
Binding\DocumentationCommentParamBinder.vb (1)
30If namedType.TypeKind = TypeKind.Delegate Then
Binding\LookupResult.vb (1)
740If symbol1.Kind <> SymbolKind.Field OrElse symbol2.Kind <> SymbolKind.Field OrElse symbol1.ContainingType.TypeKind <> TypeKind.Enum Then
BoundTree\BoundNewT.vb (1)
16Debug.Assert(Type.TypeKind = TypeKind.TypeParameter)
CodeGen\EmitAddress.vb (1)
471If receiverType.TypeKind = TypeKind.TypeParameter Then
CodeGen\EmitExpression.vb (5)
294(receiverType.IsReferenceType AndAlso receiverType.TypeKind = TypeKind.TypeParameter) 493Debug.Assert(thisType.TypeKind <> TypeKind.TypeParameter) 615If elementType.TypeKind = TypeKind.TypeParameter Then 1590If ((type IsNot Nothing) AndAlso (type.TypeKind = TypeKind.TypeParameter) AndAlso constantValue.IsNull) Then 1710Return AllowedToTakeRef(left, AddressKind.Writeable) AndAlso Not (left.Kind = BoundKind.ArrayAccess AndAlso left.Type.TypeKind = TypeKind.TypeParameter)
CodeGen\EmitStatement.vb (2)
367Debug.Assert(receiver.Type.TypeKind <> TypeKind.TypeParameter) 914If (operandType IsNot Nothing) AndAlso (operandType.TypeKind = TypeKind.TypeParameter) Then
Compilation\ClsComplianceChecker.vb (10)
186If symbol.TypeKind = TypeKind.Delegate Then 340ElseIf symbol.TypeKind = TypeKind.Enum Then 439If type.TypeKind = TypeKind.Delegate AndAlso type.IsImplicitlyDeclared AndAlso TryCast(type, NamedTypeSymbol)?.AssociatedSymbol Is symbol Then 590Select Case type.TypeKind 598Throw ExceptionUtilities.UnexpectedValue(type.TypeKind) 616Select Case type.TypeKind 624Throw ExceptionUtilities.UnexpectedValue(type.TypeKind) 636If type.TypeKind = TypeKind.Error Then 892Dim typeKind As TypeKind = xType.TypeKind 893If yType.TypeKind <> typeKind Then
Compilation\DocumentationComments\DocumentationCommentCompiler.Common.vb (3)
736Select Case DirectCast(symbol, NamedTypeSymbol).TypeKind 750Throw ExceptionUtilities.UnexpectedValue(DirectCast(symbol, NamedTypeSymbol).TypeKind) 768If namedType.TypeKind <> TypeKind.Delegate Then
Compilation\DocumentationComments\DocumentationCommentCompiler.Includes.vb (5)
123If namedType.TypeKind = TYPEKIND.Delegate Then 131Me.ParamAndParamRefSupported = namedType.TypeKind = TYPEKIND.Delegate 132Me.TypeParamSupported = namedType.TypeKind <> TYPEKIND.Enum AndAlso namedType.TypeKind <> TYPEKIND.Module 133Me.TypeParamRefSupported = namedType.TypeKind <> TYPEKIND.Module
Compilation\SemanticModel.vb (3)
968If highestExpr.Type IsNot Nothing AndAlso highestExpr.Type.TypeKind <> TypeKind.Error Then 3600Return String.Format("{0}: {1} ({2}) -> {3} {4}", Me.SyntaxTree.FilePath, expression.Kind.ToString(), expression.Position, type.TypeKind.ToString(), type.Name) 3605Return String.Format("{0}: {1} ({2}) -> {3} {4} at {5}", Me.SyntaxTree.FilePath, expression.Kind.ToString(), expression.Position, type.TypeKind.ToString(), type.Name, position)
Compilation\SyntaxTreeSemanticModel.vb (1)
1080Debug.Assert(typeSymbol.TypeKind = TYPEKIND.Delegate)
Emit\EditAndContinue\PEDeltaAssemblyBuilder.vb (1)
190If propertyType.TypeKind = TypeKind.TypeParameter Then
Emit\NamedTypeReference.vb (1)
48Return m_UnderlyingNamedType.TypeKind = TypeKind.Enum
Emit\NamedTypeSymbolAdapter.vb (4)
36Return AdaptedNamedTypeSymbol.TypeKind = TypeKind.Enum 230If AdaptedNamedTypeSymbol.TypeKind = TypeKind.Submission Then 448Select Case AdaptedNamedTypeSymbol.TypeKind 959Select Case Me.TypeKind
Emit\NoPia\EmbeddedType.vb (1)
128Select Case UnderlyingNamedType.AdaptedNamedTypeSymbol.TypeKind
Emit\NoPia\EmbeddedTypesManager.vb (10)
207Select Case type.TypeKind 243Debug.Assert(type.TypeKind = TypeKind.Class OrElse type.TypeKind = TypeKind.Module) 318Debug.Assert(namedType.TypeKind = TypeKind.Structure OrElse 319namedType.TypeKind = TypeKind.Enum OrElse 320namedType.TypeKind = TypeKind.Delegate) 323If namedType.TypeKind = TypeKind.Structure OrElse namedType.TypeKind = TypeKind.Enum Then 366Dim containerKind = field.AdaptedFieldSymbol.ContainingType.TypeKind 402Select Case type.UnderlyingNamedType.AdaptedNamedTypeSymbol.TypeKind
Emit\SymbolTranslator.vb (3)
324If symbol.ContainingType.TypeKind = TypeKind.Submission Then 338If symbol.ContainingType.TypeKind = TypeKind.Submission Then 345Debug.Assert(symbol.ContainingType.TypeKind <> TypeKind.Submission)
Lowering\AsyncRewriter\AsyncRewriter.AsyncMethodToClassRewriter.Spilling.vb (1)
488If type.TypeKind <> TypeKind.Structure Then
Lowering\AsyncRewriter\AsyncRewriter.vb (2)
141If frameType.TypeKind = TypeKind.Class Then 185If Me.F.CurrentType.TypeKind = TypeKind.Class Then
Lowering\ExpressionLambdaRewriter\ExpressionLambdaRewriter.vb (1)
446Debug.Assert(delegateType.TypeKind = TYPEKIND.Delegate)
Semantics\AccessCheck.vb (4)
232If containingType.TypeKind = TypeKind.Submission Then 287If originalContainingType.TypeKind = TypeKind.Submission Then 443Select Case current.TypeKind 505Select Case candidate.TypeKind
Semantics\Conversions.vb (15)
1741If destination.TypeKind = TypeKind.Enum AndAlso 1746If source.TypeKind = TypeKind.Enum AndAlso 1750ElseIf source.TypeKind = TypeKind.Enum AndAlso destination.TypeKind = TypeKind.Enum Then 1992(src.TypeKind <> TypeKind.Class OrElse DirectCast(src, NamedTypeSymbol).IsNotInheritable) AndAlso 2014(dst.TypeKind <> TypeKind.Class OrElse DirectCast(dst, NamedTypeSymbol).IsNotInheritable) AndAlso 2447If Not base.IsErrorType() AndAlso base.TypeKind = TypeKind.Class AndAlso 2859Select Case candidate.TypeKind 2897Dim typeKind = type.TypeKind 2902Dim typeKind = type.TypeKind 2907Return type.TypeKind = TypeKind.Delegate 2911Return type.TypeKind = TypeKind.Array 3360If type.TypeKind = TypeKind.Enum Then 3779ElseIf constraint.TypeKind = TypeKind.Enum AndAlso 3943ElseIf constraint.TypeKind = TypeKind.Enum AndAlso
Semantics\OverloadResolution.vb (4)
2050left.TypeKind = TypeKind.Enum AndAlso right.TypeKind <> TypeKind.Enum Then 2066right.TypeKind = TypeKind.Enum AndAlso left.TypeKind <> TypeKind.Enum Then
Semantics\TypeInference\TypeArgumentInference.vb (1)
1784Dim fixedTypeTypeKind As TypeKind = fixedType.TypeKind
Symbols\ArrayTypeSymbol.vb (1)
355While (current.TypeKind = TypeKind.Array)
Symbols\AssemblySymbol.vb (1)
706If result Is Nothing OrElse result.TypeKind = TypeKind.Error Then
Symbols\BaseTypeAnalysis.vb (1)
233If currentNamedType.TypeKind = TypeKind.Class Then
Symbols\ConstraintsHelper.vb (9)
161Select Case constraintType.TypeKind 259Throw ExceptionUtilities.UnexpectedValue(constraintType.TypeKind) 803Select Case baseType.TypeKind 811Debug.Assert(baseType.TypeKind <> TypeKind.TypeParameter) 835Select Case type.TypeKind 905Select Case typeArgument.TypeKind 922If typeArgument.TypeKind = TypeKind.Class Then 1081If type.TypeKind = TypeKind.TypeParameter Then 1118Debug.Assert(type.TypeKind = TypeKind.Class)
Symbols\EmbeddedSymbols\EmbeddedSymbolManager.SymbolsCollection.vb (2)
333Debug.Assert(type.TypeKind = TypeKind.Module OrElse type.TypeKind = TypeKind.Class AndAlso type.IsNotInheritable)
Symbols\EventSymbol.vb (1)
170If type IsNot Nothing AndAlso type.TypeKind = TypeKind.Delegate Then
Symbols\Metadata\PE\MetadataDecoder.vb (1)
348Select Case candidate.TypeKind
Symbols\Metadata\PE\PENamespaceSymbol.vb (2)
61Dim modules = GetTypeMembers().WhereAsArray(Function(t) t.TypeKind = TYPEKIND.Module) 70Return GetTypeMembers(name).WhereAsArray(Function(t) t.TypeKind = TYPEKIND.Module)
Symbols\Metadata\PE\TupleTypeDecoder.vb (1)
166Throw ExceptionUtilities.UnexpectedValue(type.TypeKind)
Symbols\MethodSymbol.vb (1)
540If firstType.TypeKind <> TYPEKIND.Array Then
Symbols\NamedTypeSymbol.vb (11)
224If TypeKind <> TypeKind.Delegate Then 436Return TypeKind <> TypeKind.Enum AndAlso TypeKind <> TypeKind.Structure AndAlso 437TypeKind <> TypeKind.Error 449Return TypeKind = TypeKind.Enum OrElse TypeKind = TypeKind.Structure 564Return TypeKind = TypeKind.Submission 580Dim name = If(TypeKind = TypeKind.Submission, SynthesizedEntryPointSymbol.FactoryName, SynthesizedEntryPointSymbol.MainName) 812If Me.TypeKind = TypeKind.Interface Then 1078''' Requires less computation than <see cref="TypeSymbol.TypeKind"/>== <see cref="TypeKind.Interface"/>.
Symbols\NamedTypeSymbolExtensions.vb (1)
110Return container.TypeKind = TypeKind.Module OrElse container.IsScriptClass
Symbols\NamespaceSymbol.vb (1)
53Return GetTypeMembers(name).WhereAsArray(Function(t) t.TypeKind = TypeKind.Module)
Symbols\Retargeting\RetargetingNamedTypeSymbol.vb (1)
415Return _underlyingType.TypeKind
Symbols\Source\ImplementsHelper.vb (1)
396ElseIf interfaceType.TypeKind = TypeKind.Error Then
Symbols\Source\SourceComplexParameterSymbol.vb (2)
341If (flags And SourceParameterFlags.ParamArray) <> 0 AndAlso paramType.TypeKind <> TypeKind.Error Then 342If paramType.TypeKind <> TypeKind.Array Then
Symbols\Source\SourceDeclareMethodSymbol.vb (1)
44If ContainingType.TypeKind <> TypeKind.Module Then
Symbols\Source\SourceMemberContainerTypeSymbol.vb (1)
2663propertySymbol.ContainingType.TypeKind = TypeKind.Structure Then
Symbols\Source\SourceMemberMethodSymbol.vb (2)
755Select Case ContainingType.TypeKind 764Throw ExceptionUtilities.UnexpectedValue(ContainingType.TypeKind)
Symbols\Source\SourceNamedTypeSymbol.vb (3)
1109Select Case baseClassType.TypeKind 1180Select Case typeSymbol.TypeKind 1231Select Case typeSymbol.TypeKind
Symbols\Source\SourceNamedTypeSymbol_GroupClass.vb (1)
216If named.TypeKind = TypeKind.Class AndAlso Not named.IsNotInheritable Then
Symbols\Source\SourcePropertyAccessorSymbol.vb (1)
90Select Case propertySymbol.ContainingType.TypeKind
Symbols\Source\SynthesizedSubmissionConstructorSymbol.vb (1)
27Debug.Assert(container.TypeKind = TypeKind.Submission)
Symbols\SubstitutedNamedType.vb (1)
208Return OriginalDefinition.TypeKind
Symbols\Symbol_Attributes.vb (2)
96Select Case namedType.TypeKind 115Throw ExceptionUtilities.UnexpectedValue(namedType.TypeKind)
Symbols\SymbolExtensions.vb (1)
34Select Case DirectCast(target, TypeSymbol).TypeKind
Symbols\TypeParameterSymbol.vb (1)
246If (constraint.TypeKind = TypeKind.TypeParameter) Then
Symbols\TypeSymbol.vb (1)
572Return Me.TypeKind
Symbols\TypeSymbolExtensions.vb (22)
118Return type.TypeKind = TypeKind.Enum 140Return type.TypeKind = TypeKind.Class 146Return type.TypeKind = TypeKind.Structure 152Return type.TypeKind = TypeKind.Module 233Return type.TypeKind = TypeKind.Delegate 409Select Case this.TypeKind 417Throw ExceptionUtilities.UnexpectedValue(this.TypeKind) 634Select Case derivedType.TypeKind 735fieldType.TypeKind = TypeKind.Enum 746If type.TypeKind = TypeKind.TypeParameter Then 761Return (type.TypeKind = TypeKind.TypeParameter) AndAlso 774Return (type.TypeKind = TypeKind.TypeParameter) AndAlso 790Private ReadOnly s_isTypeParameterFunc As Func(Of TypeSymbol, Object, Boolean) = Function(type, arg) (type.TypeKind = TypeKind.TypeParameter) 828Select Case current.TypeKind 853Select Case current.TypeKind 888Throw ExceptionUtilities.UnexpectedValue(current.TypeKind) 1060If type.TypeKind = TypeKind.Class Then 1066If typeArgument.TypeKind = TypeKind.Delegate Then 1082If type.TypeKind = TypeKind.Delegate Then 1096If type.TypeKind = TypeKind.Delegate Then 1131If type.TypeKind = TypeKind.TypeParameter Then 1139If type.TypeKind = TypeKind.TypeParameter Then
Symbols\UnboundGenericType.vb (1)
205Return OriginalDefinition.TypeKind
Symbols\Wrapped\WrappedNamedTypeSymbol.vb (1)
80Return Me._underlyingType.TypeKind
Utilities\TypeUnification.vb (4)
94If t2.Type.TypeKind <> t1.Type.TypeKind OrElse Not t1.CustomModifiers.SequenceEqual(t2.CustomModifiers) Then 107If t2.Type.TypeKind <> t1.Type.TypeKind OrElse Not t1.CustomModifiers.SequenceEqual(t2.CustomModifiers) Then
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (24)
CodeGen\CodeGenAsyncTests.vb (2)
51Assert.Equal(TypeKind.Structure, stateMachine.TypeKind) 61Assert.Equal(TypeKind.Class, stateMachine.TypeKind)
CodeGen\CodeGenScriptTests.vb (1)
249Assert.NotEqual(type.TypeKind, TypeKind.Submission)
CodeGen\CodeGenTuples.vb (5)
5750Assert.Equal(TypeKind.Error, mTuple.TupleUnderlyingType.TypeKind) 5753Assert.Equal(TypeKind.Struct, mTuple.TypeKind) 15035Assert.Equal(TypeKind.Struct, m1Tuple.TypeKind) 16293Assert.Equal(TypeKind.Struct, m1Tuple.TypeKind) 20072Assert.Equal(TypeKind.Class, comp.GetWellKnownType(WellKnownType.System_ValueTuple_T2).TypeKind)
CodeGen\CodeGenVBCore.vb (2)
3264builder.AppendLine(indent + type.TypeKind.ToString() + " " + symbol.ToTestDisplayString) 3282builder.AppendLine(indent + "End " + type.TypeKind.ToString())
Emit\EmitMetadata.vb (5)
388Assert.Equal(TypeKind.Interface, i1.TypeKind) 389Assert.Equal(TypeKind.Interface, i2.TypeKind) 390Assert.Equal(TypeKind.Interface, i3.TypeKind) 391Assert.Equal(TypeKind.Class, classA.TypeKind) 392Assert.Equal(TypeKind.Class, classB.TypeKind)
Emit\NoPiaEmbedTypes.vb (9)
1044Assert.Equal(TypeKind.Interface, itest3.TypeKind) 1057Assert.Equal(TypeKind.Structure, test5.TypeKind) 1075Assert.Equal(TypeKind.Interface, itest6.TypeKind) 1078Assert.Equal(TypeKind.Interface, itest7.TypeKind) 1081Assert.Equal(TypeKind.Interface, itest8.TypeKind) 1141Assert.Equal(TypeKind.Structure, test10.TypeKind) 1244Assert.Equal(TypeKind.Interface, itest13.TypeKind) 1265Assert.Equal(TypeKind.Interface, itest14.TypeKind) 1275Assert.Equal(TypeKind.Interface, itest16.TypeKind)
Microsoft.CodeAnalysis.VisualBasic.ExpressionEvaluator.ExpressionCompiler (4)
EvaluationContext.vb (1)
515If type.TypeKind <> TypeKind.Class Then
Rewriters\CapturedVariableRewriter.vb (2)
95Debug.Assert(meParameter.Type.TypeKind = TypeKind.Class) ' Illegal in structures and modules. 98Debug.Assert(baseType.TypeKind = TypeKind.Class) ' Illegal in structures and modules.
SymbolExtensions.vb (1)
27If type.TypeKind = TypeKind.TypeParameter Then
Microsoft.CodeAnalysis.VisualBasic.ExpressionEvaluator.ExpressionCompiler.UnitTests (2)
ExpressionCompilerTests.vb (1)
2078Assert.Equal(returnType.TypeKind, TypeKind.TypeParameter)
WinMdTests.vb (1)
175Assert.Equal(actualReturnType.TypeKind, TypeKind.Class) ' not error
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (50)
Binding\ForEachTests.vb (1)
4537Assert.NotEqual(TypeKind.Error, localSymbolType.TypeKind)
Compilation\SemanticModelGetDeclaredSymbolAPITests.vb (2)
745Assert.Equal(TypeKind.Delegate, typeSymbol10.TypeKind) 2772Assert.Equal(TypeKind.Enum, local.Type.TypeKind)
DeclaringSyntaxNodeTests.vb (2)
552If nt.TypeKind = TypeKind.Delegate AndAlso nt.Name.EndsWith("EventHandler", StringComparison.Ordinal) Then 588If nt.TypeKind = TypeKind.Delegate AndAlso nt.Name.EndsWith("EventHandler", StringComparison.Ordinal) Then
Semantics\FieldInitializerBindingTests.vb (9)
447Assert.Equal(TypeKind.Array, ary.Type.TypeKind) 452Assert.Equal(TypeKind.Array, ary.Type.TypeKind) 457Assert.Equal(TypeKind.Array, ary.Type.TypeKind) 462Assert.Equal(TypeKind.Class, ary.Type.TypeKind) 506Assert.Equal(TypeKind.Structure, field.Type.TypeKind) 512Assert.Equal(TypeKind.Structure, field.Type.TypeKind) 518Assert.Equal(TypeKind.Structure, field.Type.TypeKind) 523Assert.Equal(TypeKind.Class, field.Type.TypeKind) 528Assert.Equal(TypeKind.Delegate, field.Type.TypeKind)
Semantics\GetExtendedSemanticInfoTests.vb (1)
1430Assert.Equal(TypeKind.Error, paramSym.Type.TypeKind)
Semantics\UseSiteErrorTests.vb (35)
598Assert.Equal(TypeKind.Struct, compilation1.GetTypeByMetadataName("A").TypeKind) 599Assert.Equal(TypeKind.Enum, compilation1.GetTypeByMetadataName("B").TypeKind) 600Assert.Equal(TypeKind.Class, compilation1.GetTypeByMetadataName("C").TypeKind) 601Assert.Equal(TypeKind.Delegate, compilation1.GetTypeByMetadataName("D").TypeKind) 602Assert.Equal(TypeKind.Interface, compilation1.GetTypeByMetadataName("I1").TypeKind) 618Assert.Equal(TypeKind.Struct, compilation2.GetTypeByMetadataName("A").TypeKind) 619Assert.Equal(TypeKind.Enum, compilation2.GetTypeByMetadataName("B").TypeKind) 620Assert.Equal(TypeKind.Class, compilation2.GetTypeByMetadataName("C").TypeKind) 621Assert.Equal(TypeKind.Delegate, compilation2.GetTypeByMetadataName("D").TypeKind) 622Assert.Equal(TypeKind.Interface, compilation2.GetTypeByMetadataName("I1").TypeKind) 629Assert.Equal(TypeKind.Struct, compilation3.GetTypeByMetadataName("A").TypeKind) 630Assert.Equal(TypeKind.Enum, compilation3.GetTypeByMetadataName("B").TypeKind) 631Assert.Equal(TypeKind.Class, compilation3.GetTypeByMetadataName("C").TypeKind) 632Assert.Equal(TypeKind.Delegate, compilation3.GetTypeByMetadataName("D").TypeKind) 633Assert.Equal(TypeKind.Interface, compilation3.GetTypeByMetadataName("I1").TypeKind) 654Assert.Equal(TypeKind.Class, a.TypeKind) 656Assert.Equal(TypeKind.Class, b.TypeKind) 658Assert.Equal(TypeKind.Class, c.TypeKind) 660Assert.Equal(TypeKind.Class, d.TypeKind) 662Assert.Equal(TypeKind.Interface, i1.TypeKind) 671Assert.Equal(TypeKind.Struct, compilation5.GetTypeByMetadataName("A").TypeKind) 672Assert.Equal(TypeKind.Enum, compilation5.GetTypeByMetadataName("B").TypeKind) 673Assert.Equal(TypeKind.Class, compilation5.GetTypeByMetadataName("C").TypeKind) 674Assert.Equal(TypeKind.Delegate, compilation5.GetTypeByMetadataName("D").TypeKind) 675Assert.Equal(TypeKind.Interface, compilation5.GetTypeByMetadataName("I1").TypeKind) 696Assert.Equal(TypeKind.Class, a.TypeKind) 698Assert.Equal(TypeKind.Class, b.TypeKind) 700Assert.Equal(TypeKind.Class, c.TypeKind) 702Assert.Equal(TypeKind.Class, d.TypeKind) 704Assert.Equal(TypeKind.Interface, i1.TypeKind) 712Assert.Equal(TypeKind.Struct, compilation7.GetTypeByMetadataName("A").TypeKind) 713Assert.Equal(TypeKind.Enum, compilation7.GetTypeByMetadataName("B").TypeKind) 714Assert.Equal(TypeKind.Class, compilation7.GetTypeByMetadataName("C").TypeKind) 715Assert.Equal(TypeKind.Delegate, compilation7.GetTypeByMetadataName("D").TypeKind) 716Assert.Equal(TypeKind.Interface, compilation7.GetTypeByMetadataName("I1").TypeKind)
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (142)
SymbolsTests\AssemblyAndNamespaceTests.vb (1)
527Assert.Equal(TypeKind.Class, objectType.TypeKind)
SymbolsTests\CompilationCreationTests.vb (3)
1920Assert.Equal(TypeKind.[Class], type3.TypeKind) 1921Assert.Equal(TypeKind.[Interface], asm5(1).GlobalNamespace.GetTypeMembers("I1").Single().TypeKind) 2036Return (TypeOf current Is TypeSymbol AndAlso DirectCast(current, TypeSymbol).TypeKind = kind)
SymbolsTests\CorLibrary\CorTypes.vb (7)
23Assert.Equal(TypeKind.Error, t.TypeKind) 32Assert.Equal(TypeKind.Error, p.TypeKind) 49Assert.Equal(TypeKind.Error, t.TypeKind) 51Assert.NotEqual(TypeKind.Error, t.TypeKind) 98Assert.NotEqual(TypeKind.Error, t.TypeKind) 100Assert.Equal(TypeKind.Error, t.TypeKind) 132Assert.Equal(TypeKind.Error, t.TypeKind)
SymbolsTests\ExtensionMethods\ExtensionMethodTests.vb (1)
1062Assert.Equal(TypeKind.Module, module2.TypeKind)
SymbolsTests\InstantiatingGenerics.vb (4)
108Assert.Equal(type.OriginalDefinition.TypeKind, type.ConstructedFrom.TypeKind) 109Assert.Equal(type.ConstructedFrom.TypeKind, type.TypeKind)
SymbolsTests\Metadata\MetadataTypeTests.vb (6)
78Assert.Equal(TypeKind.Module, a.TypeKind) 83Assert.Equal(TypeKind.Module, a.TypeKind) 121Assert.Equal(TypeKind.Class, class1.TypeKind) 174Assert.Equal(TypeKind.Class, type1.TypeKind) 229Assert.Equal(TypeKind.Interface, type1.TypeKind) 282Assert.Equal(TypeKind.Structure, type1.TypeKind)
SymbolsTests\Metadata\PE\LoadingEvents.vb (13)
163Assert.Equal(TypeKind.[Interface], [interface].TypeKind) 166Assert.Equal(TypeKind.[Class], [class].TypeKind) 178Assert.Equal(TypeKind.[Interface], [interface].TypeKind) 181Assert.Equal(TypeKind.[Class], [class].TypeKind) 196Assert.Equal(TypeKind.[Interface], [interface].TypeKind) 199Assert.Equal(TypeKind.[Class], [class].TypeKind) 214Assert.Equal(TypeKind.[Interface], defInterface.TypeKind) 217Assert.Equal(TypeKind.[Interface], defInterface.TypeKind) 220Assert.Equal(TypeKind.[Class], [class].TypeKind) 236Assert.Equal(TypeKind.[Interface], outerInterface.TypeKind) 240Assert.Equal(TypeKind.[Class], outerClass.TypeKind) 243Assert.Equal(TypeKind.[Interface], innerInterface.TypeKind) 258Assert.Equal(TypeKind.[Class], innerClass.TypeKind)
SymbolsTests\Metadata\PE\LoadingMethods.vb (18)
384Assert.Equal(TypeKind.Interface, [interface].TypeKind) 389Assert.Equal(TypeKind.Class, [class].TypeKind) 407Assert.Equal(TypeKind.Interface, interface1.TypeKind) 412Assert.Equal(TypeKind.Interface, interface2.TypeKind) 417Assert.Equal(TypeKind.Class, [class].TypeKind) 439Assert.Equal(TypeKind.Interface, [interface].TypeKind) 445Assert.Equal(TypeKind.Class, [class].TypeKind) 471Assert.Equal(TypeKind.Interface, [interface].TypeKind) 477Assert.Equal(TypeKind.Class, [class].TypeKind) 502Assert.Equal(TypeKind.Interface, cyclicInterface.TypeKind) 505Assert.Equal(TypeKind.Interface, implementedInterface.TypeKind) 510Assert.Equal(TypeKind.Class, [class].TypeKind) 534Assert.Equal(TypeKind.Interface, [interface].TypeKind) 537Assert.Equal(TypeKind.Class, [class].TypeKind) 564Assert.Equal(TypeKind.Interface, outerInterface.TypeKind) 570Assert.Equal(TypeKind.Class, outerClass.TypeKind) 574Assert.Equal(TypeKind.Interface, innerInterface.TypeKind) 595Assert.Equal(TypeKind.Class, innerClass.TypeKind)
SymbolsTests\Metadata\PE\NoPia.vb (4)
194Assert.Equal(TypeKind.[Interface], param(0).[Type].TypeKind) 195Assert.Equal(TypeKind.[Interface], param(1).[Type].TypeKind) 468Assert.Equal(TypeKind.[Interface], param(0).[Type].TypeKind) 469Assert.Equal(TypeKind.[Interface], param(1).[Type].TypeKind)
SymbolsTests\Metadata\PE\NoPiaInstantiationOfGenericClassAndStruct.vb (2)
123If m.ReturnType.TypeKind <> TypeKind.Structure Then 374If m.ReturnType.TypeKind <> TypeKind.Structure Then
SymbolsTests\Metadata\PE\TypeForwarders.vb (1)
93Assert.NotEqual(TypeKind.Error, funcType.TypeKind)
SymbolsTests\Metadata\PE\TypeKindTests.vb (7)
35Assert.Equal(TypeKind.Class, obj.TypeKind) 40Assert.Equal(TypeKind.Class, [enum].TypeKind) 45Assert.Equal(TypeKind.Structure, int32.TypeKind) 50Assert.Equal(TypeKind.Delegate, func.TypeKind) 58Assert.Equal(TypeKind.Interface, ienumerable.TypeKind) 64Assert.Equal(TypeKind.Enum, typeCode.TypeKind) 93Assert.Equal(TypeKind.Class, multicastDelegate.TypeKind)
SymbolsTests\MockSymbolTests.vb (1)
111builder.AppendFormat("{0} {1}", DirectCast(sym, NamedTypeSymbol).TypeKind.ToString(), sym.Name)
SymbolsTests\Retargeting\NoPia.vb (2)
478Assert.Equal(TypeKind.[Interface], param(0).[Type].TypeKind) 479Assert.Equal(TypeKind.[Interface], param(1).[Type].TypeKind)
SymbolsTests\Retargeting\RetargetingTests.vb (12)
362Assert.Equal(TypeKind.Error, sourceType.BaseType.TypeKind) 364Assert.Equal(TypeKind.Error, sourceType.EnumUnderlyingType.TypeKind) 371Assert.Equal(TypeKind.Error, retargetingType.BaseType.TypeKind) 373Assert.Equal(TypeKind.Error, retargetingType.EnumUnderlyingType.TypeKind) 400Assert.Equal(TypeKind.Error, sourceType.BaseType.TypeKind) 402Assert.Equal(TypeKind.Error, sourceType.EnumUnderlyingType.TypeKind) 409Assert.Equal(TypeKind.Error, retargetingType.BaseType.TypeKind) 411Assert.Equal(TypeKind.Error, retargetingType.EnumUnderlyingType.TypeKind) 540Assert.Equal(TypeKind.Error, sourceType.BaseType.TypeKind) 546Assert.Equal(TypeKind.Error, retargetingType.BaseType.TypeKind) 674Assert.Equal(TypeKind.Error, sourceTypeParameterConstraint.TypeKind) 681Assert.Equal(TypeKind.Error, retargetingTypeParameterConstraint.TypeKind)
SymbolsTests\Source\BaseClassTests.vb (1)
2230Assert.Equal(TypeKind.Class, derived.TypeKind)
SymbolsTests\Source\BindingsTests.vb (6)
180Assert.Equal(TypeKind.Class, DirectCast(typeContext.ContainingNamespaceOrType, NamedTypeSymbol).TypeKind) 187Assert.Equal(TypeKind.Interface, DirectCast(typeContext.ContainingNamespaceOrType, NamedTypeSymbol).TypeKind) 471Assert.Equal(TypeKind.Error, sysCollectionsType.TypeKind) 508Assert.Equal(TypeKind.Interface, DirectCast(sortedSymbols(0), NamedTypeSymbol).TypeKind) 511Assert.Equal(TypeKind.Interface, DirectCast(sortedSymbols(1), NamedTypeSymbol).TypeKind) 524Assert.Equal(TypeKind.Class, DirectCast(symbols(0), NamedTypeSymbol).TypeKind)
SymbolsTests\Source\DelegateTests.vb (1)
246Assert.Equal(TypeKind.Delegate, funcDel.TypeKind)
SymbolsTests\Source\EnumTests.vb (1)
908Assert.Equal(TypeKind.Enum, member.Type.TypeKind)
SymbolsTests\Source\EventTests.vb (1)
1718Assert.Equal(TypeKind.Delegate, DirectCast(mems(0), NamedTypeSymbol).TypeKind)
SymbolsTests\Source\FieldTests.vb (3)
104Assert.Equal(TypeKind.Class, classD.TypeKind) 149Assert.Equal(TypeKind.Array, fieldU.Type.TypeKind) 158Assert.Equal(TypeKind.Array, fieldV.Type.TypeKind) ' v is a 2d array of a 1d array.
SymbolsTests\Source\MethodTests.vb (5)
60Assert.Equal(TypeKind.Class, classD.TypeKind) 476Assert.Equal(TypeKind.Class, classD.TypeKind) 535Assert.Equal(TypeKind.Array, m2p4.Type.TypeKind) 625Assert.Equal(TypeKind.Class, classD.TypeKind) 995Assert.Equal(TypeKind.Structure, mem4.Type.TypeKind)
SymbolsTests\Source\PropertyTests.vb (4)
5399Assert.Equal(TypeKind.[Interface], [interface].TypeKind) 5404Assert.Equal(TypeKind.[Class], [class].TypeKind) 5442Assert.Equal(TypeKind.[Interface], [interface].TypeKind) 5447Assert.Equal(TypeKind.[Class], [class].TypeKind)
SymbolsTests\Source\TypeBindingTests.vb (4)
44Assert.Equal(TypeKind.Array, typeA.TypeKind) 53Assert.Equal(TypeKind.Array, typeB.TypeKind) 87Assert.Equal(TypeKind.Structure, typeA.TypeKind) 239Assert.Equal(TypeKind.Array, typeH.TypeKind)
SymbolsTests\Source\TypeTests.vb (21)
92Assert.Equal(TypeKind.Interface, ifaceA.TypeKind) 110Assert.Equal(TypeKind.Class, classB.TypeKind) 127Assert.Equal(TypeKind.Delegate, delegateB.TypeKind) 148Assert.Equal(TypeKind.Enum, enumE.TypeKind) 163Assert.Equal(TypeKind.Structure, structI.TypeKind) 178Assert.Equal(TypeKind.Module, moduleM.TypeKind) 240Assert.Equal(TypeKind.Class, outerClass.TypeKind) 256Assert.Equal(TypeKind.Class, i1Class.TypeKind) 266Assert.Equal(TypeKind.Interface, i3Interface.TypeKind) 276Assert.Equal(TypeKind.Enum, i4Enum.TypeKind) 290Assert.Equal(TypeKind.Structure, i2Arity1.TypeKind) 304Assert.Equal(TypeKind.Structure, i2Arity2.TypeKind) 553Assert.Equal(TypeKind.Enum, enumE.TypeKind) 606Assert.Equal(TypeKind.Class, classA.TypeKind) 616Assert.Equal(TypeKind.Interface, igoo.TypeKind) 626Assert.Equal(TypeKind.Structure, structS.TypeKind) 694Assert.Equal(TypeKind.Class, varA.Type.TypeKind) 736Assert.Equal(TypeKind.Structure, mem1.Type.TypeKind) 744Assert.Equal(TypeKind.Array, mem2.ReturnType.TypeKind) 756Assert.Equal(TypeKind.Array, param.Type.TypeKind) 926Assert.Equal(TypeKind.Interface, type2.TypeKind)
SymbolsTests\WellKnownTypeValidationTests.vb (13)
38Assert.Equal(TypeKind.Error, special.TypeKind) 43Assert.Equal(TypeKind.Class, lookup.TypeKind) 122Assert.Equal(TypeKind.Structure, special.TypeKind) 126Assert.Equal(TypeKind.Structure, lookup.TypeKind) 160Assert.Equal(TypeKind.Class, wellKnown.TypeKind) 163Assert.Equal(TypeKind.Error, wellKnown.TypeKind) 168Assert.Equal(TypeKind.Class, lookup.TypeKind) 210Assert.Equal(If(wellKnown.DeclaringCompilation Is comp, TypeKind.Enum, TypeKind.Error), wellKnown.TypeKind) 213Assert.Equal(TypeKind.Enum, lookup.TypeKind) 300Assert.Equal(TypeKind.Class, wellKnown.TypeKind) 303Assert.Equal(TypeKind.Class, lookup.TypeKind) 416Assert.Equal(TypeKind.Class, wellKnown.TypeKind) 441Assert.Equal(TypeKind.Error, wellKnown.TypeKind)
Microsoft.CodeAnalysis.VisualBasic.Test.Utilities (3)
Extensions.vb (1)
224Dim typeSymTypeKind As TypeKind = typeSym.TypeKind
MockSymbols.vb (2)
47Return GetTypeMembers().WhereAsArray(Function(t) t.TypeKind = TypeKind.Module) 51Return GetTypeMembers(name).WhereAsArray(Function(t) t.TypeKind = TypeKind.Module)