995 references to Class
ILLink.RoslynAnalyzer (1)
TrimAnalysis\SingleValueExtensions.cs (1)
24 TypeKind.Class or TypeKind.Enum or TypeKind.Interface or TypeKind.Struct =>
Microsoft.AspNetCore.App.Analyzers (1)
src\Shared\Roslyn\MvcFacts.cs (1)
17if (type.TypeKind != TypeKind.Class)
Microsoft.AspNetCore.App.SourceGenerators (1)
PublicTopLevelProgramGenerator.cs (1)
29.Select(static (symbol, _) => symbol is INamedTypeSymbol { TypeKind: TypeKind.Class } ? symbol : null)
Microsoft.AspNetCore.Mvc.Analyzers (2)
AttributesShouldNotBeAppliedToPageModelAnalyzer.cs (1)
77return type.TypeKind == TypeKind.Class &&
src\Shared\Roslyn\MvcFacts.cs (1)
17if (type.TypeKind != TypeKind.Class)
Microsoft.AspNetCore.Mvc.Api.Analyzers (1)
src\Shared\Roslyn\MvcFacts.cs (1)
17if (type.TypeKind != TypeKind.Class)
Microsoft.CodeAnalysis.CodeStyle (10)
src\Analyzers\Core\Analyzers\UseAutoProperty\AbstractUseAutoPropertyAnalyzer.cs (1)
184if (namedType.TypeKind is not TypeKind.Class and not TypeKind.Struct and not TypeKind.Module)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\INamedTypeSymbolExtensions.cs (2)
337if (classOrStructType.TypeKind is not TypeKind.Class and not TypeKind.Struct) 543TypeKind: TypeKind.Class or TypeKind.Struct
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ISymbolExtensions.cs (1)
177return symbol is { ContainingType.TypeKind: TypeKind.Class, IsSealed: false } &&
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ITypeSymbolExtensions.cs (1)
56=> symbol?.TypeKind == TypeKind.Class && symbol.IsAbstract;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\EditorConfig\EditorConfigNamingStyleParser_SymbolSpec.cs (2)
125private static readonly SymbolKindOrTypeKind _class = new(TypeKind.Class); 380case TypeKind.Class:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingStyleRules.cs (1)
68if (containingType.TypeKind is not TypeKind.Class and not TypeKind.Struct)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\SymbolSpecification.cs (1)
67new SymbolKindOrTypeKind(TypeKind.Class),
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SymbolEquivalenceComparer.cs (1)
245TypeKind.Module => TypeKind.Class,
Microsoft.CodeAnalysis.CodeStyle.Fixes (7)
src\Analyzers\Core\CodeFixes\GenerateConstructor\AbstractGenerateConstructorService.State.cs (1)
409return TypeToGenerateIn?.TypeKind is (TypeKind?)TypeKind.Class or (TypeKind?)TypeKind.Struct;
src\Analyzers\Core\CodeFixes\GenerateMember\AbstractGenerateMemberService.cs (1)
26TypeKind.Class,
src\Analyzers\Core\CodeFixes\GenerateParameterizedMember\AbstractGenerateParameterizedMemberService.AbstractInvocationInfo.cs (2)
61var classTypes = constraints.Where(ts => ts.TypeKind == TypeKind.Class).ToList(); 62var nonClassTypes = constraints.Where(ts => ts.TypeKind != TypeKind.Class).ToList();
src\Analyzers\Core\CodeFixes\ImplementInterface\ImplementHelpers.cs (1)
229if (state.ClassOrStructType.TypeKind != TypeKind.Class)
src\Analyzers\Core\CodeFixes\ImplementInterface\ImplementInterfaceGenerator.cs (1)
277var condition1 = typeParameter.ConstraintTypes.Count(t => t.TypeKind == TypeKind.Class) >= 2;
src\Analyzers\Core\CodeFixes\UnsealClass\AbstractUnsealClassCodeFixProvider.cs (1)
40type.TypeKind == TypeKind.Class && type.IsSealed && !type.IsStatic)
Microsoft.CodeAnalysis.CodeStyle.UnitTestUtilities (1)
src\Features\DiagnosticsTestUtilities\NamingStyles\NamingStylesTestOptionSets.cs (1)
133ImmutableArray.Create(new SymbolSpecification.SymbolKindOrTypeKind(TypeKind.Class)),
Microsoft.CodeAnalysis.CSharp (94)
Binder\Binder_Constraints.cs (2)
504type.TypeKind == TypeKind.Class) 596case TypeKind.Class:
Binder\Binder_Crefs.cs (1)
577case TypeKind.Class:
Binder\Binder_Expressions.cs (6)
5154case TypeKind.Class: 5176goto case TypeKind.Class; 5184goto case TypeKind.Class; 5500Debug.Assert(type.TypeKind is TypeKind.Class or TypeKind.Struct); 6909Debug.Assert(coClassType.TypeKind == TypeKind.Class || coClassType.TypeKind == TypeKind.Error); 9294case TypeKind.Class:
Binder\Binder_Lookup.cs (2)
192case TypeKind.Class: 1875case TypeKind.Class:
Binder\ForEachLoopBinder.cs (1)
1601case TypeKind.Class:
Binder\Semantics\Conversions\ConversionsBase.cs (1)
2652case TypeKind.Class:
Binder\Semantics\Operators\OperatorFacts.cs (1)
22case TypeKind.Class:
Binder\Semantics\OverloadResolution\MethodTypeInference.cs (6)
2233if (target.TypeKind != TypeKind.Class) 2252if (source.TypeKind == TypeKind.Class) 2295case TypeKind.Class: 2630if (source.TypeKind != TypeKind.Class || target.TypeKind != TypeKind.Class) 2672case TypeKind.Class:
Compilation\CSharpCompilation.cs (1)
1951if (mainType is null || mainType.IsGenericType || (mainType.TypeKind != TypeKind.Class && mainType.TypeKind != TypeKind.Struct && !mainType.IsInterface))
Compiler\ClsComplianceChecker.cs (1)
1000case TypeKind.Class:
Compiler\MethodCompiler.cs (1)
618containingType is { IsImplicitlyDeclared: false, TypeKind: TypeKind.Class or TypeKind.Struct or TypeKind.Interface } &&
FlowAnalysis\DefiniteAssignment.cs (1)
2638case TypeKind.Class:
Lowering\AsyncRewriter\AsyncMethodToStateMachineRewriter.cs (2)
557LocalSymbol thisTemp = (F.CurrentType.TypeKind == TypeKind.Class) ? F.SynthesizedLocal(F.CurrentType) : null; 618LocalSymbol thisTemp = (F.CurrentType.TypeKind == TypeKind.Class) ? F.SynthesizedLocal(F.CurrentType) : null;
Lowering\AsyncRewriter\AsyncRewriter.cs (4)
74var typeKind = (compilationState.Compilation.Options.EnableEditAndContinue || method.IsIterator) ? TypeKind.Class : TypeKind.Struct; 172if (F.CurrentType.TypeKind == TypeKind.Class) 195if (stateMachineType.TypeKind == TypeKind.Class) 204if (frameType.TypeKind == TypeKind.Class)
Lowering\ClosureConversion\SynthesizedClosureEnvironment.cs (1)
55TypeKind = isStruct ? TypeKind.Struct : TypeKind.Class;
Lowering\IteratorRewriter\IteratorStateMachine.cs (1)
48get { return TypeKind.Class; }
Lowering\LocalRewriter\DelegateCacheContainer.cs (1)
44public override TypeKind TypeKind => TypeKind.Class;
Lowering\LocalRewriter\DynamicSiteContainer.cs (1)
31get { return TypeKind.Class; }
SymbolDisplay\SymbolDisplayVisitor.Types.cs (4)
598case TypeKind.Class when symbol.IsRecord: 604case TypeKind.Class: 698case TypeKind.Class when symbol.IsRecord: 720case TypeKind.Class:
Symbols\AnonymousTypes\PublicSymbols\AnonymousType.TypePublicSymbol.cs (1)
80get { return TypeKind.Class; }
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.TemplateSymbol.cs (1)
103get { return TypeKind.Class; }
Symbols\AssemblySymbol.cs (2)
501return GetSpecialType(SpecialType.System_Runtime_CompilerServices_RuntimeFeature) is { TypeKind: TypeKind.Class, IsStatic: true } && 524GetSpecialType(SpecialType.System_Runtime_CompilerServices_PreserveBaseOverridesAttribute) is { TypeKind: TypeKind.Class };
Symbols\Compilation_WellKnownMembers.cs (1)
221if (type.Kind != SymbolKind.NamedType || type.TypeKind != TypeKind.Class)
Symbols\ConstraintsHelper.cs (4)
220case TypeKind.Class: 1463case TypeKind.Class: 1488Debug.Assert(type.TypeKind is TypeKind.Class or TypeKind.Struct); 1539case TypeKind.Class:
Symbols\EnumConversions.cs (1)
21return TypeKind.Class;
Symbols\Metadata\PE\NativeIntegerTypeDecoder.cs (1)
95case TypeKind.Class:
Symbols\Metadata\PE\PEMethodSymbol.cs (1)
1264if ((this.ContainingType.TypeKind == TypeKind.Class && this.IsRuntimeFinalizer(skipFirstMethodKindCheck: true)) ||
Symbols\Metadata\PE\PENamedTypeSymbol.cs (4)
1729case TypeKind.Class: 1772result = TypeKind.Class; 2131else if (TypeKind == TypeKind.Class && SpecialType != SpecialType.System_Enum) 2362var coClassType = ((object)type != null && (type.TypeKind == TypeKind.Class || type.IsErrorType())) ? (NamedTypeSymbol)type : null;
Symbols\Source\ExplicitInterfaceHelpers.cs (1)
193case TypeKind.Class:
Symbols\Source\SourceEventSymbol.cs (1)
603else if (IsAbstract && !ContainingType.IsAbstract && (ContainingType.TypeKind == TypeKind.Class || ContainingType.TypeKind == TypeKind.Submission))
Symbols\Source\SourceMemberContainerSymbol.cs (7)
260Debug.Assert(typeKind is TypeKind.Struct or TypeKind.Class || !HasPrimaryConstructor); 317case TypeKind.Class: 1381case TypeKind.Class: 1391goto case TypeKind.Class; 3269case TypeKind.Class: 3493if (TypeKind is TypeKind.Class) 3502case TypeKind.Class:
Symbols\Source\SourceMemberContainerSymbol_ImplementationChecks.cs (1)
517case TypeKind.Class:
Symbols\Source\SourceMethodSymbolWithAttributes.cs (1)
1475if (ContainingSymbol is NamedTypeSymbol { IsComImport: true, TypeKind: TypeKind.Class or TypeKind.Interface })
Symbols\Source\SourceNamedTypeSymbol.cs (4)
820case TypeKind.Class: 1232return builderType is NamedTypeSymbol { TypeKind: TypeKind.Class or TypeKind.Struct, IsGenericType: false }; 1339if ((object)coClassType != null && coClassType.TypeKind == TypeKind.Class) 1585if (this.TypeKind == TypeKind.Class)
Symbols\Source\SourceNamedTypeSymbol_Bases.cs (6)
469if (i == 0 && TypeKind == TypeKind.Class) // allow class in the first position 520if ((baseType.TypeKind == TypeKind.Class || 583case TypeKind.Class: 584if (TypeKind == TypeKind.Class) 633(TypeKind != TypeKind.Class || baseType.TypeKind == TypeKind.Interface || ((TypeDeclarationSyntax)decl.SyntaxReference.GetSyntax()).ParameterList is null)) 728case TypeKind.Class:
Symbols\Source\SourceOrdinaryMethodSymbol.cs (1)
874else if (IsAbstract && !ContainingType.IsAbstract && (ContainingType.TypeKind == TypeKind.Class || ContainingType.TypeKind == TypeKind.Submission))
Symbols\Source\SourcePropertyAccessorSymbol.cs (1)
529if (IsAbstract && !ContainingType.IsAbstract && (ContainingType.TypeKind == TypeKind.Class || ContainingType.TypeKind == TypeKind.Submission))
Symbols\Symbol_Attributes.cs (1)
70case TypeKind.Class:
Symbols\Synthesized\ReadOnlyListType\SynthesizedReadOnlyListEnumeratorTypeSymbol.cs (1)
138public override TypeKind TypeKind => TypeKind.Class;
Symbols\Synthesized\ReadOnlyListType\SynthesizedReadOnlyListTypeSymbol.cs (1)
815public override TypeKind TypeKind => TypeKind.Class;
Symbols\Synthesized\SynthesizedEmbeddedAttributeSymbol.cs (1)
74public override TypeKind TypeKind => TypeKind.Class;
Symbols\Synthesized\SynthesizedHotReloadExceptionSymbol.cs (1)
92public override TypeKind TypeKind => TypeKind.Class;
Symbols\Synthesized\SynthesizedInstanceConstructor.cs (1)
84Debug.Assert(_containingType.TypeKind == TypeKind.Class);
Symbols\Synthesized\SynthesizedPrivateImplementationDetailsType.cs (1)
56public override TypeKind TypeKind => TypeKind.Class;
Symbols\TypeSymbolExtensions.cs (6)
335return type.TypeKind == TypeKind.Class; 420case TypeKind.Class: 701case TypeKind.Class: 776case TypeKind.Class: 850case TypeKind.Class: 1513case TypeKind.Class:
Symbols\VarianceSafety.cs (2)
75case TypeKind.Class: 370case TypeKind.Class:
Utilities\TypeSymbolExtensions.cs (2)
186case TypeKind.Class: 277case TypeKind.Class:
Microsoft.CodeAnalysis.CSharp.CodeStyle (3)
src\Analyzers\CSharp\Analyzers\UsePrimaryConstructor\CSharpUsePrimaryConstructorDiagnosticAnalyzer.cs (1)
274if (namedType.TypeKind is not (TypeKind.Class or TypeKind.Struct))
src\Analyzers\CSharp\Analyzers\UseSystemThreadingLock\CSharpUseSystemThreadingLockDiagnosticAnalyzer.cs (1)
80if (namedType is not { TypeKind: TypeKind.Class or TypeKind.Struct })
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ITypeSymbolExtensions.cs (1)
42if (typeSymbol.TypeKind is TypeKind.Class or TypeKind.Struct)
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (11)
src\Analyzers\CSharp\CodeFixes\ConvertToRecord\ConvertToRecordEngine.cs (4)
44TypeKind: TypeKind.Class or TypeKind.Struct, 268recordKeyword = type.TypeKind == TypeKind.Class 413type.TypeKind == TypeKind.Class 419type.TypeKind == TypeKind.Class
src\Analyzers\CSharp\CodeFixes\GenerateDefaultConstructors\CSharpGenerateDefaultConstructorsService.cs (1)
39return classType?.TypeKind is TypeKind.Class or TypeKind.Struct;
src\Analyzers\CSharp\CodeFixes\UsePrimaryConstructor\CSharpUsePrimaryConstructorCodeFixProvider.cs (1)
392semanticModel.GetSymbolInfo(baseType.Type, cancellationToken).GetAnySymbol() is INamedTypeSymbol { TypeKind: TypeKind.Class })
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\NamedTypeGenerator.cs (3)
198var isRecordClass = namedType.TypeKind is TypeKind.Class; 291if (namedType.TypeKind == TypeKind.Class) 319if (namedType.TypeKind == TypeKind.Class && namedType.BaseType != null && namedType.BaseType.SpecialType != Microsoft.CodeAnalysis.SpecialType.System_Object)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ITypeParameterSymbolExtensions.cs (2)
60typeParameter.ConstraintTypes.Where(t => t.TypeKind == TypeKind.Class).Concat( 62typeParameter.ConstraintTypes.Where(t => t.TypeKind is not TypeKind.Class and not TypeKind.Interface)));
Microsoft.CodeAnalysis.CSharp.CodeStyle.UnitTests (3)
src\Analyzers\CSharp\Tests\NamingStyles\NamingStylesTests.cs (3)
234[InlineData("class [|c2|] { }", "class C2 { }", TypeKind.Class, Accessibility.Private)] 256var alternateSymbolKind = TypeKind.Class.Equals(symbolKind) ? TypeKind.Interface : TypeKind.Class;
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (28)
CodeActions\GenerateType\GenerateTypeTests_Dialog.cs (25)
1471typeKind: TypeKind.Class, 1515typeKind: TypeKind.Class, 1553typeKind: TypeKind.Class, 1598typeKind: TypeKind.Class, 1637typeKind: TypeKind.Class, 1682typeKind: TypeKind.Class, 1719typeKind: TypeKind.Class, 1759typeKind: TypeKind.Class, 1804typeKind: TypeKind.Class, 1848typeKind: TypeKind.Class, 1899typeKind: TypeKind.Class, 2039typeKind: TypeKind.Class, 2076typeKind: TypeKind.Class, 2114typeKind: TypeKind.Class, 2152typeKind: TypeKind.Class, 2189typeKind: TypeKind.Class, 2219typeKind: TypeKind.Class, 2298typeKind: TypeKind.Class, 3111typeKind: TypeKind.Class, 3148typeKind: TypeKind.Class, 3185typeKind: TypeKind.Class, 3228typeKind: TypeKind.Class, 3277typeKind: TypeKind.Class, 3531typeKind: TypeKind.Class, 3564typeKind: TypeKind.Class,
Diagnostics\NamingStyles\EditorConfigNamingStyleParserTests.cs (2)
341[InlineData("*", new object[] { SymbolKind.Namespace, TypeKind.Class, TypeKind.Struct, TypeKind.Interface, TypeKind.Enum, SymbolKind.Property, MethodKind.Ordinary, MethodKind.LocalFunction, SymbolKind.Field, SymbolKind.Event, TypeKind.Delegate, SymbolKind.Parameter, SymbolKind.TypeParameter, SymbolKind.Local })] 342[InlineData(null, new object[] { SymbolKind.Namespace, TypeKind.Class, TypeKind.Struct, TypeKind.Interface, TypeKind.Enum, SymbolKind.Property, MethodKind.Ordinary, MethodKind.LocalFunction, SymbolKind.Field, SymbolKind.Event, TypeKind.Delegate, SymbolKind.Parameter, SymbolKind.TypeParameter, SymbolKind.Local })]
Workspaces\WorkspaceTests_EditorFeatures.cs (1)
526Assert.Equal(TypeKind.Class, classCz.TypeKind);
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (4)
CodeGen\CodeGenAsyncTests.cs (1)
89Assert.Equal(TypeKind.Class, stateMachine.TypeKind);
CodeGen\CodeGenTupleTest.cs (1)
23928Assert.Equal(TypeKind.Class, compilation.GetWellKnownType(WellKnownType.System_ValueTuple_T2).TypeKind);
Emit\EmitMetadataTests.cs (2)
320Assert.Equal(TypeKind.Class, classA.TypeKind); 321Assert.Equal(TypeKind.Class, classB.TypeKind);
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (7)
Semantics\OutVarTests.cs (2)
33263Assert.Equal(TypeKind.Class, model.GetTypeInfo(declaration2).Type.TypeKind); 33270Assert.Equal(TypeKind.Class, typeInfo.Type.TypeKind);
Semantics\PrimaryConstructorTests.cs (4)
826case TypeKind.Class: 865case TypeKind.Class: 901case TypeKind.Class: 933case TypeKind.Class:
Semantics\RecordTests.cs (1)
119Assert.Equal(TypeKind.Class, point.TypeKind);
Microsoft.CodeAnalysis.CSharp.Features (13)
Completion\CompletionProviders\EnumAndCompletionListTagCompletionProvider.cs (1)
349if (type.TypeKind is TypeKind.Struct or TypeKind.Class)
Completion\CompletionProviders\ExplicitInterfaceMemberCompletionProvider.ItemGetter.cs (1)
109if (containingType is not INamedTypeSymbol { TypeKind: TypeKind.Class or TypeKind.Struct or TypeKind.Interface })
Completion\CompletionProviders\NamedParameterCompletionProvider.cs (1)
213if (within is { TypeKind: TypeKind.Struct or TypeKind.Class })
EditAndContinue\CSharpEditAndContinueAnalyzer.cs (1)
1971TypeKind.Class => symbol.IsRecord ? CSharpFeaturesResources.record_ : FeaturesResources.class_,
SignatureHelp\ConstructorInitializerSignatureHelpProvider.cs (1)
81if (within.TypeKind is not TypeKind.Struct and not TypeKind.Class)
src\Analyzers\CSharp\Analyzers\UsePrimaryConstructor\CSharpUsePrimaryConstructorDiagnosticAnalyzer.cs (1)
274if (namedType.TypeKind is not (TypeKind.Class or TypeKind.Struct))
src\Analyzers\CSharp\Analyzers\UseSystemThreadingLock\CSharpUseSystemThreadingLockDiagnosticAnalyzer.cs (1)
80if (namedType is not { TypeKind: TypeKind.Class or TypeKind.Struct })
src\Analyzers\CSharp\CodeFixes\ConvertToRecord\ConvertToRecordEngine.cs (4)
44TypeKind: TypeKind.Class or TypeKind.Struct, 268recordKeyword = type.TypeKind == TypeKind.Class 413type.TypeKind == TypeKind.Class 419type.TypeKind == TypeKind.Class
src\Analyzers\CSharp\CodeFixes\GenerateDefaultConstructors\CSharpGenerateDefaultConstructorsService.cs (1)
39return classType?.TypeKind is TypeKind.Class or TypeKind.Struct;
src\Analyzers\CSharp\CodeFixes\UsePrimaryConstructor\CSharpUsePrimaryConstructorCodeFixProvider.cs (1)
392semanticModel.GetSymbolInfo(baseType.Type, cancellationToken).GetAnySymbol() is INamedTypeSymbol { TypeKind: TypeKind.Class })
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (3)
src\Analyzers\CSharp\Tests\NamingStyles\NamingStylesTests.cs (3)
234[InlineData("class [|c2|] { }", "class C2 { }", TypeKind.Class, Accessibility.Private)] 256var alternateSymbolKind = TypeKind.Class.Equals(symbolKind) ? TypeKind.Interface : TypeKind.Class;
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (44)
Semantics\InteractiveSemanticModelTests.cs (4)
158Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind); 160Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.TypeKind); 209Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind); 211Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.TypeKind);
Semantics\LambdaTests.cs (12)
2125Assert.Equal(TypeKind.Class, typeInfo.Type.TypeKind); 2170Assert.Equal(TypeKind.Class, typeInfo.Type.TypeKind); 2216Assert.Equal(TypeKind.Class, typeInfo.Type.TypeKind); 2262Assert.Equal(TypeKind.Class, typeInfo.Type.TypeKind); 2308Assert.Equal(TypeKind.Class, typeInfo.Type.TypeKind); 2365Assert.Equal(TypeKind.Class, typeInfo.Type.TypeKind); 2420Assert.Equal(TypeKind.Class, typeInfo.Type.TypeKind); 2466Assert.Equal(TypeKind.Class, typeInfo.Type.TypeKind); 2512Assert.Equal(TypeKind.Class, typeInfo.Type.TypeKind); 2545Assert.Equal(TypeKind.Class, typeInfo.Type.TypeKind); 2578Assert.Equal(TypeKind.Class, typeInfo.Type.TypeKind); 2615Assert.Equal(TypeKind.Class, typeInfo.Type.TypeKind);
Semantics\NullableReferenceTypesTests.cs (13)
3339Assert.Equal(TypeKind.Class, typeInfo.Type.TypeKind); 116621Assert.Equal(TypeKind.Class, compilation1.GetTypeByMetadataName("C").TypeKind); 116641Assert.Equal(TypeKind.Class, compilation2.GetTypeByMetadataName("C").TypeKind); 116652Assert.Equal(TypeKind.Class, compilation3.GetTypeByMetadataName("C").TypeKind); 116675Assert.Equal(TypeKind.Class, a.TypeKind); 116677Assert.Equal(TypeKind.Class, b.TypeKind); 116679Assert.Equal(TypeKind.Class, c.TypeKind); 116681Assert.Equal(TypeKind.Class, d.TypeKind); 116743Assert.Equal(TypeKind.Class, a.TypeKind); 116745Assert.Equal(TypeKind.Class, b.TypeKind); 116747Assert.Equal(TypeKind.Class, c.TypeKind); 116749Assert.Equal(TypeKind.Class, d.TypeKind); 116761Assert.Equal(TypeKind.Class, compilation7.GetTypeByMetadataName("C").TypeKind);
Semantics\ScriptSemanticsTests.cs (2)
454Assert.Equal(TypeKind.Class, members[0].TypeKind); 459Assert.Equal(TypeKind.Class, members[0].TypeKind);
Semantics\UseSiteErrorTests.cs (13)
2311Assert.Equal(TypeKind.Class, compilation1.GetTypeByMetadataName("C").TypeKind); 2329Assert.Equal(TypeKind.Class, compilation2.GetTypeByMetadataName("C").TypeKind); 2340Assert.Equal(TypeKind.Class, compilation3.GetTypeByMetadataName("C").TypeKind); 2363Assert.Equal(TypeKind.Class, a.TypeKind); 2365Assert.Equal(TypeKind.Class, b.TypeKind); 2367Assert.Equal(TypeKind.Class, c.TypeKind); 2369Assert.Equal(TypeKind.Class, d.TypeKind); 2385Assert.Equal(TypeKind.Class, compilation5.GetTypeByMetadataName("C").TypeKind); 2408Assert.Equal(TypeKind.Class, a.TypeKind); 2410Assert.Equal(TypeKind.Class, b.TypeKind); 2412Assert.Equal(TypeKind.Class, c.TypeKind); 2414Assert.Equal(TypeKind.Class, d.TypeKind); 2426Assert.Equal(TypeKind.Class, compilation7.GetTypeByMetadataName("C").TypeKind);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (261)
Compilation\GetSemanticInfoTests.cs (2)
4685Assert.Equal(TypeKind.Class, paramType1.TypeKind); 4730Assert.Equal(TypeKind.Class, paramType1.TypeKind);
Compilation\SemanticModelAPITests.cs (3)
4566Assert.Equal(TypeKind.Class, type.TypeKind); 4582Assert.Equal(TypeKind.Class, type.TupleElements[0].Type.TypeKind); 4583Assert.Equal(TypeKind.Class, type.TupleElements[1].Type.TypeKind);
Compilation\SemanticModelGetDeclaredSymbolAPITests.cs (1)
1012Assert.Equal(TypeKind.Class, symbol.TypeKind);
Compilation\SemanticModelGetSemanticInfoTests.cs (188)
85Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind); 87Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.TypeKind); 116Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind); 118Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.TypeKind); 150Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind); 152Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.TypeKind); 191Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind); 193Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.TypeKind); 232Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind); 234Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.TypeKind); 462Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind); 464Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.TypeKind); 725Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind); 727Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.TypeKind); 761Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind); 763Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.TypeKind); 1643Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind); 1645Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.TypeKind); 1750Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.TypeKind); 1898Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind); 1900Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.TypeKind); 1927Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind); 1929Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.TypeKind); 1957Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind); 1959Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.TypeKind); 2118Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind); 2120Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.TypeKind); 2263Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind); 2265Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.TypeKind); 2298Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind); 2300Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.TypeKind); 2576Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind); 2578Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.TypeKind); 2649Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind); 2651Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.TypeKind); 2982Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind); 2984Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.TypeKind); 3072Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind); 3074Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.TypeKind); 3117Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind); 3119Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.TypeKind); 3427Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.TypeKind); 3589Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind); 3591Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.TypeKind); 3627Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind); 3629Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.TypeKind); 3671Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind); 3673Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.TypeKind); 3705Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind); 3707Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.TypeKind); 3739Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind); 3741Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.TypeKind); 3773Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind); 3775Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.TypeKind); 3864Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind); 3866Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.TypeKind); 3899Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind); 3901Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.TypeKind); 3938Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.TypeKind); 4007Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind); 4009Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.TypeKind); 4069Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind); 4071Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.TypeKind); 4246Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind); 4248Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.TypeKind); 4443Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind); 4445Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.TypeKind); 4474Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind); 4476Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.TypeKind); 4851Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind); 4853Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.TypeKind); 4964Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind); 4966Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.TypeKind); 5016Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind); 5018Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.TypeKind); 5106Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind); 5108Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.TypeKind); 5153Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind); 5155Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.TypeKind); 5199Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind); 5201Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.TypeKind); 5278Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind); 5280Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.TypeKind); 5320Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind); 5322Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.TypeKind); 5694Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.TypeKind); 5728Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind); 5730Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.TypeKind); 6329Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind); 6331Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.TypeKind); 6519Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind); 6521Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.TypeKind); 6554Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind); 6556Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.TypeKind); 6591Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind); 6593Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.TypeKind); 6675Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind); 6677Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.TypeKind); 6875Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind); 6877Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.TypeKind); 7106Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind); 7108Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.TypeKind); 7137Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind); 7139Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.TypeKind); 7698Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind); 7700Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.TypeKind); 7729Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.TypeKind); 8369Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind); 8371Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.TypeKind); 8403Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind); 8405Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.TypeKind); 8560Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind); 8562Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.TypeKind); 8605Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind); 8607Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.TypeKind); 8770Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.TypeKind); 9064Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.TypeKind); 9123Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind); 9125Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.TypeKind); 9456Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind); 9458Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.TypeKind); 9669Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind); 9671Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.TypeKind); 9720Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind); 9722Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.TypeKind); 9831Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind); 9833Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.TypeKind); 9917Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind); 9919Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.TypeKind); 9951Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind); 9953Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.TypeKind); 9987Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind); 9989Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.TypeKind); 10023Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind); 10025Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.TypeKind); 10059Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind); 10061Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.TypeKind); 10103Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind); 10105Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.TypeKind); 10140Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind); 10142Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.TypeKind); 10177Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind); 10179Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.TypeKind); 10216Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind); 10218Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.TypeKind); 10247Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind); 10249Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.TypeKind); 10282Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind); 10284Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.TypeKind); 10494Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind); 10523Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind); 10798Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind); 10800Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.TypeKind); 10835Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind); 10837Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.TypeKind); 11144Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind); 11146Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.TypeKind); 11222Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind); 11224Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.TypeKind); 12186Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind); 12188Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.TypeKind); 12258Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.TypeKind); 12324Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.TypeKind); 12426Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind); 12428Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.TypeKind); 12486Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.TypeKind); 12676Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind); 12678Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.TypeKind); 13037Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind); 13039Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.TypeKind); 13129Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind); 13131Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.TypeKind); 13163Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind); 13165Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.TypeKind); 13197Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind); 13199Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.TypeKind); 13323Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind); 13325Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.TypeKind); 13873Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind); 13875Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.TypeKind); 13912Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind); 13914Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.TypeKind); 13951Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind); 13953Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.TypeKind); 15152Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind); 15154Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.TypeKind); 15405Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind); 15407Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.TypeKind);
Symbols\AccessorOverriddenOrHiddenMembersTests.cs (1)
1025Assert.Equal(TypeKind.Class, classDisposable.TypeKind);
Symbols\AssemblyAndNamespaceTests.cs (2)
382Assert.Equal(TypeKind.Class, objectType.TypeKind); 434Assert.Equal(TypeKind.Class, taskType.TypeKind);
Symbols\CompilationCreationTests.cs (7)
2460Assert.Equal(TypeKind.Class, type3.TypeKind); 2622Assert.False(HasSingleTypeOfKind(c, TypeKind.Class, "System.Linq.Enumerable")); 2624Assert.True(HasSingleTypeOfKind(c, TypeKind.Class, "System.Linq.Enumerable")); 2625Assert.False(HasSingleTypeOfKind(c, TypeKind.Class, "System.Uri")); 2627Assert.False(HasSingleTypeOfKind(c, TypeKind.Class, "System.Linq.Enumerable")); 2628Assert.True(HasSingleTypeOfKind(c, TypeKind.Class, "System.Uri")); 2630Assert.False(HasSingleTypeOfKind(c, TypeKind.Class, "System.Uri"));
Symbols\Metadata\MetadataTypeTests.cs (2)
89Assert.Equal(TypeKind.Class, class1.TypeKind); 139Assert.Equal(TypeKind.Class, type1.TypeKind);
Symbols\Metadata\PE\LoadingEvents.cs (6)
201Assert.Equal(TypeKind.Class, @class.TypeKind); 228Assert.Equal(TypeKind.Class, @class.TypeKind); 260Assert.Equal(TypeKind.Class, @class.TypeKind); 300Assert.Equal(TypeKind.Class, @class.TypeKind); 338Assert.Equal(TypeKind.Class, outerClass.TypeKind); 364Assert.Equal(TypeKind.Class, innerClass.TypeKind);
Symbols\Metadata\PE\LoadingMethods.cs (13)
394Assert.Equal(TypeKind.Class, @class.TypeKind); 423Assert.Equal(TypeKind.Class, @class.TypeKind); 455Assert.Equal(TypeKind.Class, @class.TypeKind); 491Assert.Equal(TypeKind.Class, @class.TypeKind); 525Assert.Equal(TypeKind.Class, @class.TypeKind); 548Assert.Equal(TypeKind.Class, @class.TypeKind); 585Assert.Equal(TypeKind.Class, @class.TypeKind); 612Assert.Equal(TypeKind.Class, baseClass.TypeKind); 615Assert.Equal(TypeKind.Class, derivedClass.TypeKind); 640Assert.Equal(TypeKind.Class, @class.TypeKind); 673Assert.Equal(TypeKind.Class, @class.TypeKind); 710Assert.Equal(TypeKind.Class, outerClass.TypeKind); 736Assert.Equal(TypeKind.Class, innerClass.TypeKind);
Symbols\Metadata\PE\LoadingProperties.cs (7)
36Assert.Equal(TypeKind.Class, @class.TypeKind); 63Assert.Equal(TypeKind.Class, @class.TypeKind); 95Assert.Equal(TypeKind.Class, @class.TypeKind); 135Assert.Equal(TypeKind.Class, @class.TypeKind); 173Assert.Equal(TypeKind.Class, outerClass.TypeKind); 199Assert.Equal(TypeKind.Class, innerClass.TypeKind); 253Assert.Equal(TypeKind.Class, @class.TypeKind);
Symbols\Metadata\PE\TypeKindTests.cs (2)
40Assert.Equal(TypeKind.Class, obj.TypeKind); 46Assert.Equal(TypeKind.Class, @enum.TypeKind);
Symbols\MissingSpecialMember.cs (6)
163Assert.Equal(TypeKind.Class, lookupType.TypeKind); 272Assert.Equal(TypeKind.Class, wellKnownType.TypeKind); 276Assert.Equal(TypeKind.Class, lookupType.TypeKind); 382Assert.Equal(TypeKind.Class, wellKnownType.TypeKind); 385Assert.Equal(TypeKind.Class, lookupType.TypeKind); 499Assert.Equal(TypeKind.Class, wellKnown.TypeKind);
Symbols\MockNamedTypeSymbol.cs (1)
173public MockNamedTypeSymbol(string name, IEnumerable<Symbol> children, TypeKind kind = TypeKind.Class)
Symbols\MockSymbolTests.cs (2)
69NamedTypeSymbol container = new MockNamedTypeSymbol("TestClass", Enumerable.Empty<Symbol>(), TypeKind.Class); 117result = new MockNamedTypeSymbol(name, childSymbols, TypeKind.Class);
Symbols\Source\BaseClassTests.cs (1)
1898Assert.Equal(TypeKind.Class, derived.TypeKind);
Symbols\Source\FieldTests.cs (3)
65Assert.Equal(TypeKind.Class, sym.Type.TypeKind); 92Assert.Equal(TypeKind.Class, f.Type.TypeKind); 209Assert.Equal(TypeKind.Class, sym.Type.TypeKind);
Symbols\Source\MethodTests.cs (5)
367Assert.Equal(TypeKind.Class, refP.TypeKind); 1672Assert.Equal(TypeKind.Class, @class.TypeKind); 1716Assert.Equal(TypeKind.Class, @class.TypeKind); 1762Assert.Equal(TypeKind.Class, @class.TypeKind); 1812Assert.Equal(TypeKind.Class, @class.TypeKind);
Symbols\Source\PropertyTests.cs (4)
1755Assert.Equal(TypeKind.Class, @class.TypeKind); 1789Assert.Equal(TypeKind.Class, @class.TypeKind); 1827Assert.Equal(TypeKind.Class, @class.TypeKind); 1957Assert.Equal(TypeKind.Class, @class.TypeKind);
Symbols\SymbolErrorTests.cs (1)
19376Assert.Equal(TypeKind.Class, Base.TypeKind);
Symbols\TypeTests.cs (4)
308Assert.Equal(TypeKind.Class, type4.TypeKind); 869Assert.Equal(TypeKind.Class, classA.TypeKind); 908Assert.Equal(TypeKind.Class, varA.Type.TypeKind); 1311Assert.Equal(TypeKind.Class, baseType.TypeKind);
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (1)
Parsing\ReadOnlyStructs.cs (1)
122Assert.Equal(TypeKind.Class, s1.TypeKind);
Microsoft.CodeAnalysis.CSharp.Test.Utilities (3)
Extensions.cs (1)
473if ((typeSym.TypeKind == TypeKind.Interface || typeSym.TypeKind == TypeKind.Class || typeSym.TypeKind == TypeKind.Struct || typeSym.TypeKind == TypeKind.Delegate))
UsesIsNullableVisitor.cs (2)
170case TypeKind.Class: 185case TypeKind.Class:
Microsoft.CodeAnalysis.CSharp.Workspaces (6)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ITypeSymbolExtensions.cs (1)
42if (typeSymbol.TypeKind is TypeKind.Class or TypeKind.Struct)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\NamedTypeGenerator.cs (3)
198var isRecordClass = namedType.TypeKind is TypeKind.Class; 291if (namedType.TypeKind == TypeKind.Class) 319if (namedType.TypeKind == TypeKind.Class && namedType.BaseType != null && namedType.BaseType.SpecialType != Microsoft.CodeAnalysis.SpecialType.System_Object)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ITypeParameterSymbolExtensions.cs (2)
60typeParameter.ConstraintTypes.Where(t => t.TypeKind == TypeKind.Class).Concat( 62typeParameter.ConstraintTypes.Where(t => t.TypeKind is not TypeKind.Class and not TypeKind.Interface)));
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (2)
Diagnostics\GenerateType\TestGenerateTypeOptionsService.cs (2)
22public TypeKind TypeKind = TypeKind.Class; 74TypeKind typeKind = TypeKind.Class,
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (2)
CodeGeneration\AbstractCodeGenerationTests.cs (1)
125attributes: default, accessibility: default, modifiers: default, TypeKind.Class, name);
CodeGeneration\CodeGenerationTests.cs (1)
506TypeKind typeKind = TypeKind.Class,
Microsoft.CodeAnalysis.Features (24)
AddDebuggerDisplay\AbstractAddDebuggerDisplayCodeRefactoringProvider.cs (1)
106=> typeSymbol.TypeKind is TypeKind.Class or TypeKind.Struct;
Completion\Providers\AbstractPartialMethodCompletionProvider.cs (1)
91if (enclosingSymbol.TypeKind is not (TypeKind.Struct or TypeKind.Class))
ConvertAnonymousType\AbstractConvertAnonymousTypeToClassCodeRefactoringProvider.cs (1)
317isRecord, TypeKind.Class, className, capturedTypeParameters, members: members);
EditAndContinue\AbstractEditAndContinueAnalyzer.cs (1)
342TypeKind.Class => FeaturesResources.class_,
ExtractClass\ExtractClassWithDialogCodeAction.cs (1)
86TypeKind.Class,
FindUsages\AbstractFindUsagesService_FindImplementations.cs (1)
198else if (symbol is INamedTypeSymbol { TypeKind: TypeKind.Class } namedType)
GenerateEqualsAndGetHashCodeFromMembers\GenerateEqualsAndGetHashCodeFromMembersCodeRefactoringProvider.cs (1)
90if (containingType?.TypeKind is not TypeKind.Class and not TypeKind.Struct)
GenerateType\AbstractGenerateTypeService.GenerateNamedType.cs (1)
317: TypeKind.Class;
GenerateType\AbstractGenerateTypeService.State.cs (2)
240if (baseType.TypeKind is not TypeKind.Class and not TypeKind.Interface) 288if (TypeToGenerateInOpt.TypeKind is not TypeKind.Class and
GoToBase\FindBaseHelpers.cs (1)
20TypeKind: TypeKind.Class or TypeKind.Interface or TypeKind.Struct,
InheritanceMargin\AbstractInheritanceMarginService.cs (1)
72return !symbol.IsStatic && namedType.TypeKind is TypeKind.Interface or TypeKind.Class or TypeKind.Struct;
InheritanceMargin\AbstractInheritanceMarginService_Helpers.cs (1)
328Debug.Assert(memberSymbol.TypeKind is TypeKind.Class or TypeKind.Struct);
PullMemberUp\MemberAndDestinationValidator.cs (1)
16if (destination.TypeKind is not TypeKind.Interface and not TypeKind.Class)
PullMemberUp\MembersPuller.cs (1)
67TypeKind.Class or TypeKind.Module => PullMembersIntoClassAsync(document, pullMembersUpOptions, cancellationToken),
Shared\Extensions\ISymbolExtensions_2.cs (1)
60case TypeKind.Class:
src\Analyzers\Core\Analyzers\UseAutoProperty\AbstractUseAutoPropertyAnalyzer.cs (1)
184if (namedType.TypeKind is not TypeKind.Class and not TypeKind.Struct and not TypeKind.Module)
src\Analyzers\Core\CodeFixes\GenerateConstructor\AbstractGenerateConstructorService.State.cs (1)
409return TypeToGenerateIn?.TypeKind is (TypeKind?)TypeKind.Class or (TypeKind?)TypeKind.Struct;
src\Analyzers\Core\CodeFixes\GenerateMember\AbstractGenerateMemberService.cs (1)
26TypeKind.Class,
src\Analyzers\Core\CodeFixes\GenerateParameterizedMember\AbstractGenerateParameterizedMemberService.AbstractInvocationInfo.cs (2)
61var classTypes = constraints.Where(ts => ts.TypeKind == TypeKind.Class).ToList(); 62var nonClassTypes = constraints.Where(ts => ts.TypeKind != TypeKind.Class).ToList();
src\Analyzers\Core\CodeFixes\ImplementInterface\ImplementHelpers.cs (1)
229if (state.ClassOrStructType.TypeKind != TypeKind.Class)
src\Analyzers\Core\CodeFixes\ImplementInterface\ImplementInterfaceGenerator.cs (1)
277var condition1 = typeParameter.ConstraintTypes.Count(t => t.TypeKind == TypeKind.Class) >= 2;
src\Analyzers\Core\CodeFixes\UnsealClass\AbstractUnsealClassCodeFixProvider.cs (1)
40type.TypeKind == TypeKind.Class && type.IsSealed && !type.IsStatic)
Microsoft.CodeAnalysis.Test.Utilities (4)
Diagnostics\CouldHaveMoreSpecificTypeAnalyzer.cs (4)
205if (derivedType.TypeKind == TypeKind.Class || derivedType.TypeKind == TypeKind.Structure) 226return baseType.TypeKind == TypeKind.Class && baseType.SpecialType == SpecialType.System_Object; 265if ((targetTypeKind == sourceTypeKind && (targetTypeKind == TypeKind.Class || targetTypeKind == TypeKind.Interface)) || 266(targetTypeKind == TypeKind.Class && (sourceTypeKind == TypeKind.Structure || sourceTypeKind == TypeKind.Interface) && targetType.SpecialType == SpecialType.System_Object))
Microsoft.CodeAnalysis.VisualBasic (74)
Binding\Binder_Expressions.vb (5)
1070type.TypeKind <> TYPEKIND.Class Then 1210Case TYPEKIND.Class 2821If leftTypeKind = TYPEKIND.Class OrElse leftTypeKind = TYPEKIND.Structure OrElse leftTypeKind = TYPEKIND.Module Then 3802Case TYPEKIND.Class 3837Case TYPEKIND.Class
Binding\Binder_Lookup.vb (5)
580Case TypeKind.Class, TypeKind.Module, TypeKind.Structure, TypeKind.Delegate, TypeKind.Array, TypeKind.Enum 606Case TypeKind.Class, TypeKind.Structure, TypeKind.Delegate, TypeKind.Array, TypeKind.Enum 931Case TypeKind.Class, TypeKind.Module, TypeKind.Structure 1092Case TypeKind.Class, TypeKind.Module, TypeKind.Structure 1964(container.TypeKind = TypeKind.Class OrElse container.TypeKind = TypeKind.Structure) AndAlso
Binding\Binder_ObjectInitializer.vb (2)
211Case TypeKind.Class 239Case TypeKind.Class,
Compilation\ClsComplianceChecker.vb (2)
595Case TypeKind.Class, TypeKind.Structure, TypeKind.Interface, TypeKind.Delegate, TypeKind.Enum, TypeKind.Submission, TypeKind.Module 621Case TypeKind.Class, TypeKind.Structure, TypeKind.Interface, TypeKind.Delegate, TypeKind.Enum, TypeKind.Submission, TypeKind.Module
Compilation\DocumentationComments\DocumentationCommentCompiler.Common.vb (1)
737Case TypeKind.Class
Compilation\MethodCompiler.vb (1)
862If sourceTypeSymbol.TypeKind = TypeKind.Class AndAlso sourceTypeSymbol.GetAttributes().IndexOfAttribute(AttributeDescription.DesignerGeneratedAttribute) > -1 Then
Compilation\VisualBasicCompilation.vb (1)
1543If mainType Is Nothing OrElse (mainType.TypeKind <> TYPEKIND.Class AndAlso mainType.TypeKind <> TYPEKIND.Structure AndAlso mainType.TypeKind <> TYPEKIND.Module) Then
Emit\NoPia\EmbeddedTypesManager.vb (1)
257Debug.Assert(type.TypeKind = TypeKind.Class OrElse type.TypeKind = TypeKind.Module)
Lowering\AsyncRewriter\AsyncRewriter.vb (4)
91Dim kind = If(compilationState.Compilation.Options.EnableEditAndContinue, TypeKind.Class, TypeKind.Struct) 141If frameType.TypeKind = TypeKind.Class Then 185If Me.F.CurrentType.TypeKind = TypeKind.Class Then 200If StateMachineType.TypeKind = TypeKind.Class Then
Lowering\IteratorRewriter\IteratorStateMachine.vb (1)
64Return TypeKind.Class
Lowering\LambdaRewriter\LambdaFrame.vb (1)
215Return TypeKind.Class
Semantics\Conversions.vb (4)
1996(src.TypeKind <> TypeKind.Class OrElse DirectCast(src, NamedTypeSymbol).IsNotInheritable) AndAlso 2018(dst.TypeKind <> TypeKind.Class OrElse DirectCast(dst, NamedTypeSymbol).IsNotInheritable) AndAlso 2452If Not base.IsErrorType() AndAlso base.TypeKind = TypeKind.Class AndAlso 2865Case TypeKind.Class,
Semantics\TypeInference\TypeArgumentInference.vb (2)
1782If fixedTypeTypeKind <> TypeKind.Class AndAlso fixedTypeTypeKind <> TypeKind.Interface Then 1806If fixedTypeTypeKind = TypeKind.Class Then
SymbolDisplay\SymbolDisplayVisitor.Types.vb (3)
254Case TypeKind.Class, 324Case TypeKind.Class 453Case TypeKind.Class
Symbols\AnonymousTypes\AnonymousType_SymbolCollection.vb (1)
94Case TypeKind.Class
Symbols\AnonymousTypes\AnonymousTypeManager_Templates.vb (1)
222Case TypeKind.Class
Symbols\AnonymousTypes\PublicSymbols\AnonymousType_TypePublicSymbol.vb (1)
149Return TypeKind.Class
Symbols\AnonymousTypes\PublicSymbols\AnonymousTypeOrDelegatePublicSymbol.vb (1)
20Debug.Assert((TypeKind = TypeKind.Class AndAlso TypeOf Me Is AnonymousTypePublicSymbol) OrElse
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType_TemplateSymbol.vb (1)
136Return TypeKind.Class
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousTypeOrDelegateTemplateSymbol.vb (1)
53Debug.Assert(TypeKind = TypeKind.Class OrElse TypeKind = TypeKind.Delegate)
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousTypeOrDelegateTypeParameterSymbol.vb (1)
72Debug.Assert(_container.TypeKind = TypeKind.Class)
Symbols\BaseTypeAnalysis.vb (2)
124If this.TypeKind = TypeKind.Class Then 233If currentNamedType.TypeKind = TypeKind.Class Then
Symbols\ConstraintsHelper.vb (4)
162Case TypeKind.Class 958If typeArgument.TypeKind = TypeKind.Class OrElse isStructure Then 1166Debug.Assert(type.TypeKind = TypeKind.Class OrElse type.TypeKind = TypeKind.Structure) 1168Dim sourceClass = If(type.TypeKind = TypeKind.Class, TryCast(type, SourceNamedTypeSymbol), Nothing)
Symbols\EmbeddedSymbols\EmbeddedSymbolManager.SymbolsCollection.vb (1)
333Debug.Assert(type.TypeKind = TypeKind.Module OrElse type.TypeKind = TypeKind.Class AndAlso type.IsNotInheritable)
Symbols\Metadata\PE\PENamedTypeSymbol.vb (2)
1007result = TypeKind.Class 1315If (typeKind = TypeKind.Class OrElse typeKind = TypeKind.Module) AndAlso
Symbols\Source\OverrideHidingHelper.vb (1)
27Case TypeKind.Class, TypeKind.Interface, TypeKind.Structure
Symbols\Source\SourceMemberContainerTypeSymbol.vb (5)
35[Class] = CUShort(TypeKind.Class) << TypeKindShift 343Case TypeKind.Class, TypeKind.Enum, TypeKind.Structure 2737ElseIf TypeKind = TypeKind.Class OrElse 2806ElseIf TypeKind = TypeKind.Class OrElse TypeKind = TypeKind.Module Then 3502If myTypeKind = TypeKind.Class OrElse myTypeKind = TypeKind.Interface OrElse myTypeKind = TypeKind.Structure OrElse myTypeKind = TypeKind.Module Then
Symbols\Source\SourceMemberMethodSymbol.vb (1)
760Case TypeKind.Class, TypeKind.Module
Symbols\Source\SourceNamedTypeSymbol.vb (4)
1121Case TypeKind.Class 1381Case TypeKind.Class 2188Case TypeKind.Class 2619If Me.TypeKind = TypeKind.Class AndAlso Not Me.IsGenericType Then
Symbols\Source\SourceNamedTypeSymbol_GroupClass.vb (6)
17If Me.TypeKind = TypeKind.Class AndAlso Not Me.IsGenericType Then 216If named.TypeKind = TypeKind.Class AndAlso Not named.IsNotInheritable Then 250named.TypeKind = TypeKind.Class AndAlso 292Debug.Assert(candidate.TypeKind = TypeKind.Class) 302If Me.TypeKind = TypeKind.Class Then 315Debug.Assert(Me.TypeKind = TypeKind.Class)
Symbols\Symbol_Attributes.vb (1)
97Case TypeKind.Class,
Symbols\SymbolExtensions.vb (1)
35Case TypeKind.Class
Symbols\SynthesizedSymbols\SynthesizedHotReloadExceptionSymbol.vb (1)
267Return TypeKind.Class
Symbols\TypeSymbolExtensions.vb (5)
140Return type.TypeKind = TypeKind.Class 414Case TypeKind.Error, TypeKind.Class, TypeKind.Submission 830Case TypeKind.Class, 863Case TypeKind.Class, 1060If type.TypeKind = TypeKind.Class Then
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (2)
src\Analyzers\VisualBasic\CodeFixes\GenerateDefaultConstructors\VisualBasicGenerateDefaultConstructorsService.vb (1)
35Return classType IsNot Nothing AndAlso classType.TypeKind = TypeKind.Class
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\CodeGeneration\NamedTypeGenerator.vb (1)
187If namedType.TypeKind = TypeKind.Class Then
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (4)
CodeGen\CodeGenAsyncTests.vb (1)
62Assert.Equal(TypeKind.Class, stateMachine.TypeKind)
CodeGen\CodeGenTuples.vb (1)
20071Assert.Equal(TypeKind.Class, comp.GetWellKnownType(WellKnownType.System_ValueTuple_T2).TypeKind)
Emit\EmitMetadata.vb (2)
391Assert.Equal(TypeKind.Class, classA.TypeKind) 392Assert.Equal(TypeKind.Class, classB.TypeKind)
Microsoft.CodeAnalysis.VisualBasic.ExpressionCompiler (3)
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.
Microsoft.CodeAnalysis.VisualBasic.Features (7)
CodeFixes\GenerateEvent\GenerateEventCodeFixProvider.vb (3)
189Not (targetType.TypeKind = TypeKind.Class OrElse targetType.TypeKind = TypeKind.Interface) OrElse 260If targetType Is Nothing OrElse (targetType.TypeKind <> TypeKind.Interface AndAlso targetType.TypeKind <> TypeKind.Class) Then 356Not (targetType.TypeKind = TypeKind.Class OrElse targetType.TypeKind = TypeKind.Interface) OrElse
InitializeParameter\VisualBasicInitializeMemberFromParameterCodeRefactoringProvider.vb (1)
38Return If(containingType.TypeKind = TypeKind.Class Or containingType.TypeKind = TypeKind.Module, Accessibility.Private, Accessibility.Public)
NavigationBar\VisualBasicNavigationBarItemService.vb (2)
215If workspaceSupportsDocumentChanges AndAlso type.TypeKind = TypeKind.Class Then 228If workspaceSupportsDocumentChanges AndAlso type.TypeKind = TypeKind.Class Then
src\Analyzers\VisualBasic\CodeFixes\GenerateDefaultConstructors\VisualBasicGenerateDefaultConstructorsService.vb (1)
35Return classType IsNot Nothing AndAlso classType.TypeKind = TypeKind.Class
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (247)
Compilation\MyTemplateTests.vb (2)
238Assert.Equal(TypeKind.Class, semanticSummary.Type.TypeKind) 240Assert.Equal(TypeKind.Class, semanticSummary.ConvertedType.TypeKind)
Compilation\SemanticModelGetDeclaredSymbolAPITests.vb (7)
685Assert.Equal(TypeKind.Class, typeSymbol.TypeKind) 690Assert.Equal(TypeKind.Class, typeSymbol2.TypeKind) 714Assert.Equal(TypeKind.Class, typeSymbol5.TypeKind) 724Assert.Equal(TypeKind.Class, typeSymbol6.TypeKind) 730Assert.Equal(TypeKind.Class, typeSymbol7.TypeKind) 735Assert.Equal(TypeKind.Class, typeSymbol8.TypeKind) 2954Assert.Equal(TypeKind.Class, symbol.TypeKind)
Semantics\ArrayLiteralTests.vb (2)
1689Assert.Equal(TypeKind.Class, semanticSummary.ConvertedType.TypeKind) 1723Assert.Equal(TypeKind.Class, semanticSummary.ConvertedType.TypeKind)
Semantics\FieldInitializerBindingTests.vb (2)
462Assert.Equal(TypeKind.Class, ary.Type.TypeKind) 523Assert.Equal(TypeKind.Class, field.Type.TypeKind)
Semantics\GetExtendedSemanticInfoTests.vb (154)
115Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind) 117Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.TypeKind) 150Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind) 152Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.TypeKind) 227Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind) 229Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.TypeKind) 270Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind) 272Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.TypeKind) 313Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind) 315Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.TypeKind) 695Assert.Equal(TypeKind.Class, semanticSummary.Type.TypeKind) 697Assert.Equal(TypeKind.Class, semanticSummary.ConvertedType.TypeKind) 793Assert.Equal(TypeKind.[Class], semanticSummary.Type.TypeKind) 851Assert.Equal(TypeKind.Class, semanticSummary.Type.TypeKind) 853Assert.Equal(TypeKind.Class, semanticSummary.ConvertedType.TypeKind) 908Assert.Equal(TypeKind.Class, semanticSummary.Type.TypeKind) 910Assert.Equal(TypeKind.Class, semanticSummary.ConvertedType.TypeKind) 1002Assert.Equal(TypeKind.Class, semanticSummary.Type.TypeKind) 1004Assert.Equal(TypeKind.Class, semanticSummary.ConvertedType.TypeKind) 1053Assert.Equal(TypeKind.Class, semanticSummary.Type.TypeKind) 1055Assert.Equal(TypeKind.Class, semanticSummary.ConvertedType.TypeKind) 1104Assert.Equal(TypeKind.Class, semanticSummary.Type.TypeKind) 1106Assert.Equal(TypeKind.Class, semanticSummary.ConvertedType.TypeKind) 1151Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind) 1153Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.TypeKind) 1197Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind) 1199Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.TypeKind) 1243Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind) 1245Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.TypeKind) 1291Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind) 1293Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.TypeKind) 1336Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind) 1338Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.TypeKind) 1416Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind) 1418Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.TypeKind) 2147Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.TypeKind) 2207Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind) 2209Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.TypeKind) 2362Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind) 2364Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.TypeKind) 2710Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.TypeKind) 2779Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind) 2781Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.TypeKind) 2882Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind) 2884Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.TypeKind) 3143Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind) 3145Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.TypeKind) 3179Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind) 3181Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.TypeKind) 3663Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind) 3665Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.TypeKind) 3716Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind) 3718Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.TypeKind) 3793Assert.Equal(TypeKind.Class, semanticSummary.Type.TypeKind) 3795Assert.Equal(TypeKind.Class, semanticSummary.ConvertedType.TypeKind) 4095Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind) 4097Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.TypeKind) 4193Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind) 4195Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.TypeKind) 4234Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind) 4236Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.TypeKind) 4272Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind) 4274Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.TypeKind) 4311Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind) 4313Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.TypeKind) 4498Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind) 4500Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.TypeKind) 4575Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind) 4577Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.TypeKind) 4619Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.TypeKind) 4654Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.TypeKind) 4709Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind) 4752Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind) 4754Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.TypeKind) 4792Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.TypeKind) 4833Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind) 4835Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.TypeKind) 4868Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind) 4870Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.TypeKind) 4899Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind) 4901Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.TypeKind) 4931Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind) 4933Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.TypeKind) 5096Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind) 5098Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.TypeKind) 5127Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind) 5129Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.TypeKind) 5280Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.TypeKind) 5504Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.TypeKind) 5534Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.TypeKind) 5772Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind) 5774Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.TypeKind) 6097Assert.Equal(TypeKind.Class, semanticSummary.Type.TypeKind) 6099Assert.Equal(TypeKind.Class, semanticSummary.ConvertedType.TypeKind) 6179Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind) 6181Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.TypeKind) 7118Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind) 7120Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.TypeKind) 7202Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind) 7204Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.TypeKind) 7318Assert.Equal(TypeKind.Class, semanticSummary.Type.TypeKind) 7320Assert.Equal(TypeKind.Class, semanticSummary.ConvertedType.TypeKind) 7452Assert.Equal(TypeKind.Class, semanticInfo1.Type.TypeKind) 7454Assert.Equal(TypeKind.Class, semanticInfo1.ConvertedType.TypeKind) 7463Assert.Equal(TypeKind.Class, semanticInfo2.Type.TypeKind) 7465Assert.Equal(TypeKind.Class, semanticInfo2.ConvertedType.TypeKind) 7507Assert.Equal(TypeKind.Class, semanticInfo1.Type.TypeKind) 7509Assert.Equal(TypeKind.Class, semanticInfo1.ConvertedType.TypeKind) 7518Assert.Equal(TypeKind.Class, semanticInfo2.Type.TypeKind) 7520Assert.Equal(TypeKind.Class, semanticInfo2.ConvertedType.TypeKind) 7776Assert.Equal(TypeKind.Class, semanticSummary.ConvertedType.TypeKind) 7810Assert.Equal(TypeKind.Class, semanticSummary.Type.TypeKind) 7812Assert.Equal(TypeKind.Class, semanticSummary.ConvertedType.TypeKind) 7849Assert.Equal(TypeKind.Class, semanticSummary.Type.TypeKind) 7851Assert.Equal(TypeKind.Class, semanticSummary.ConvertedType.TypeKind) 7888Assert.Equal(TypeKind.Class, semanticSummary.Type.TypeKind) 7890Assert.Equal(TypeKind.Class, semanticSummary.ConvertedType.TypeKind) 7927Assert.Equal(TypeKind.Class, semanticSummary.Type.TypeKind) 7929Assert.Equal(TypeKind.Class, semanticSummary.ConvertedType.TypeKind) 7966Assert.Equal(TypeKind.Class, semanticSummary.Type.TypeKind) 7968Assert.Equal(TypeKind.Class, semanticSummary.ConvertedType.TypeKind) 8004Assert.Equal(TypeKind.Class, semanticSummary.Type.TypeKind) 8006Assert.Equal(TypeKind.Class, semanticSummary.ConvertedType.TypeKind) 8336Assert.Equal(TypeKind.Class, semanticSummary.Type.TypeKind) 8338Assert.Equal(TypeKind.Class, semanticSummary.ConvertedType.TypeKind) 8702Assert.Equal(TypeKind.Class, semanticSummary.Type.TypeKind) 8851Assert.Equal(TypeKind.Class, semanticSummary.ConvertedType.TypeKind) 8924Assert.Equal(TypeKind.Class, semanticSummary.ConvertedType.TypeKind) 8999Assert.Equal(TypeKind.Class, semanticSummary.Type.TypeKind) 9001Assert.Equal(TypeKind.Class, semanticSummary.ConvertedType.TypeKind) 9505Assert.Equal(TypeKind.[Class], semanticInfo.Type.TypeKind) 9507Assert.Equal(TypeKind.[Class], semanticInfo.ConvertedType.TypeKind) 9538Assert.Equal(TypeKind.[Class], semanticInfo.Type.TypeKind) 9540Assert.Equal(TypeKind.[Class], semanticInfo.ConvertedType.TypeKind) 9573Assert.Equal(TypeKind.[Class], semanticInfo.Type.TypeKind) 9575Assert.Equal(TypeKind.[Class], semanticInfo.ConvertedType.TypeKind) 9608Assert.Equal(TypeKind.[Class], semanticInfo.Type.TypeKind) 9610Assert.Equal(TypeKind.[Class], semanticInfo.ConvertedType.TypeKind) 9643Assert.Equal(TypeKind.[Class], semanticInfo.Type.TypeKind) 9645Assert.Equal(TypeKind.[Class], semanticInfo.ConvertedType.TypeKind) 9691Assert.Equal(TypeKind.[Class], semanticInfo.Type.TypeKind) 9693Assert.Equal(TypeKind.[Class], semanticInfo.ConvertedType.TypeKind) 9731Assert.Equal(TypeKind.[Class], semanticInfo.Type.TypeKind) 9733Assert.Equal(TypeKind.[Class], semanticInfo.ConvertedType.TypeKind) 9771Assert.Equal(TypeKind.[Class], semanticInfo.Type.TypeKind) 9773Assert.Equal(TypeKind.[Class], semanticInfo.ConvertedType.TypeKind) 9814Assert.Equal(TypeKind.[Class], semanticInfo.Type.TypeKind) 9816Assert.Equal(TypeKind.[Class], semanticInfo.ConvertedType.TypeKind) 9846Assert.Equal(TypeKind.[Class], semanticInfo.Type.TypeKind) 9848Assert.Equal(TypeKind.[Class], semanticInfo.ConvertedType.TypeKind) 9880Assert.Equal(TypeKind.[Class], semanticInfo.Type.TypeKind) 9882Assert.Equal(TypeKind.[Class], semanticInfo.ConvertedType.TypeKind) 9926Assert.Equal(TypeKind.Class, semanticSummary.Type.TypeKind) 9928Assert.Equal(TypeKind.Class, semanticSummary.ConvertedType.TypeKind)
Semantics\GetSemanticInfoTests.vb (25)
762Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind) 764Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.TypeKind) 1498Assert.Equal(TypeKind.Class, semanticSummary.Type.TypeKind) 1500Assert.Equal(TypeKind.Class, semanticSummary.ConvertedType.TypeKind) 2088Assert.Equal(TypeKind.Class, semanticSummary.Type.TypeKind) 2090Assert.Equal(TypeKind.Class, semanticSummary.ConvertedType.TypeKind) 2143Assert.Equal(TypeKind.Class, semanticSummary.Type.TypeKind) 2145Assert.Equal(TypeKind.Class, semanticSummary.ConvertedType.TypeKind) 2163Assert.Equal(TypeKind.Class, semanticSummary.Type.TypeKind) 2165Assert.Equal(TypeKind.Class, semanticSummary.ConvertedType.TypeKind) 2416Assert.Equal(TypeKind.Class, semanticSummary.Type.TypeKind) 2418Assert.Equal(TypeKind.Class, semanticSummary.ConvertedType.TypeKind) 3379Assert.Equal(TypeKind.Class, semanticSummary.Type.TypeKind) 3426Assert.Equal(TypeKind.Class, semanticSummary.Type.TypeKind) 3428Assert.Equal(TypeKind.Class, semanticSummary.ConvertedType.TypeKind) 3479Assert.Equal(TypeKind.Class, semanticSummary.Type.TypeKind) 3481Assert.Equal(TypeKind.Class, semanticSummary.ConvertedType.TypeKind) 3533Assert.Equal(TypeKind.Class, semanticSummary.Type.TypeKind) 3535Assert.Equal(TypeKind.Class, semanticSummary.ConvertedType.TypeKind) 3586Assert.Equal(TypeKind.Class, semanticSummary.Type.TypeKind) 3588Assert.Equal(TypeKind.Class, semanticSummary.ConvertedType.TypeKind) 3638Assert.Equal(TypeKind.Class, semanticSummary.Type.TypeKind) 3640Assert.Equal(TypeKind.Class, semanticSummary.ConvertedType.TypeKind) 3683Assert.Equal(TypeKind.Class, semanticSummary.Type.TypeKind) 3685Assert.Equal(TypeKind.Class, semanticSummary.ConvertedType.TypeKind)
Semantics\LambdaSemanticInfoTests.vb (22)
37Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind) 39Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.TypeKind) 69Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind) 71Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.TypeKind) 103Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind) 105Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.TypeKind) 135Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind) 137Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.TypeKind) 210Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind) 212Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.TypeKind) 245Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind) 247Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.TypeKind) 280Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind) 282Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.TypeKind) 318Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind) 320Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.TypeKind) 353Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind) 355Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.TypeKind) 394Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.TypeKind) 434Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.TypeKind) 718Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind) 720Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.TypeKind)
Semantics\OptionalArgumentTests.vb (2)
1057Assert.Equal(TypeKind.Class, semanticSummary.Type.TypeKind) 1059Assert.Equal(TypeKind.Class, semanticSummary.ConvertedType.TypeKind)
Semantics\QueryExpressions_SemanticModel.vb (10)
1297Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind) 1299Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.TypeKind) 1323Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind) 1325Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.TypeKind) 2101Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind) 2103Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.TypeKind) 2775Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind) 2777Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.TypeKind) 3360Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind) 3362Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.TypeKind)
Semantics\SelectCaseTests.vb (1)
30Assert.Equal(TypeKind.Class, semanticSummary.ConvertedType.TypeKind)
Semantics\SyncLockTests.vb (7)
346Assert.Equal(TypeKind.Class, semanticSummary.Type.TypeKind) 349Assert.Equal(TypeKind.Class, semanticSummary.Type.TypeKind) 375Assert.Equal(TypeKind.Class, semanticSummary.Type.TypeKind) 380Assert.Equal(TypeKind.Class, semanticSummary.Type.TypeKind) 408Assert.Equal(TypeKind.Class, semanticSummary.ConvertedType.TypeKind) 468Assert.Equal(TypeKind.Class, semanticSummary.Type.TypeKind) 473Assert.Equal(TypeKind.Class, semanticSummary.Type.TypeKind)
Semantics\UseSiteErrorTests.vb (13)
600Assert.Equal(TypeKind.Class, compilation1.GetTypeByMetadataName("C").TypeKind) 620Assert.Equal(TypeKind.Class, compilation2.GetTypeByMetadataName("C").TypeKind) 631Assert.Equal(TypeKind.Class, compilation3.GetTypeByMetadataName("C").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) 673Assert.Equal(TypeKind.Class, compilation5.GetTypeByMetadataName("C").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) 714Assert.Equal(TypeKind.Class, compilation7.GetTypeByMetadataName("C").TypeKind)
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (57)
SymbolsTests\AssemblyAndNamespaceTests.vb (1)
527Assert.Equal(TypeKind.Class, objectType.TypeKind)
SymbolsTests\CompilationCreationTests.vb (7)
1921Assert.Equal(TypeKind.[Class], type3.TypeKind) 2050Assert.False(HasSingleTypeOfKind(c, TypeKind.Class, "System.Linq.Enumerable")) 2052Assert.True(HasSingleTypeOfKind(c, TypeKind.Class, "System.Linq.Enumerable")) 2053Assert.False(HasSingleTypeOfKind(c, TypeKind.Class, "System.Uri")) 2055Assert.False(HasSingleTypeOfKind(c, TypeKind.Class, "System.Linq.Enumerable")) 2056Assert.True(HasSingleTypeOfKind(c, TypeKind.Class, "System.Uri")) 2058Assert.False(HasSingleTypeOfKind(c, TypeKind.Class, "System.Uri"))
SymbolsTests\Metadata\MetadataTypeTests.vb (2)
121Assert.Equal(TypeKind.Class, class1.TypeKind) 174Assert.Equal(TypeKind.Class, type1.TypeKind)
SymbolsTests\Metadata\PE\LoadingEvents.vb (6)
165Assert.Equal(TypeKind.[Class], [class].TypeKind) 180Assert.Equal(TypeKind.[Class], [class].TypeKind) 198Assert.Equal(TypeKind.[Class], [class].TypeKind) 219Assert.Equal(TypeKind.[Class], [class].TypeKind) 239Assert.Equal(TypeKind.[Class], outerClass.TypeKind) 257Assert.Equal(TypeKind.[Class], innerClass.TypeKind)
SymbolsTests\Metadata\PE\LoadingMethods.vb (8)
389Assert.Equal(TypeKind.Class, [class].TypeKind) 417Assert.Equal(TypeKind.Class, [class].TypeKind) 445Assert.Equal(TypeKind.Class, [class].TypeKind) 477Assert.Equal(TypeKind.Class, [class].TypeKind) 510Assert.Equal(TypeKind.Class, [class].TypeKind) 537Assert.Equal(TypeKind.Class, [class].TypeKind) 570Assert.Equal(TypeKind.Class, outerClass.TypeKind) 595Assert.Equal(TypeKind.Class, innerClass.TypeKind)
SymbolsTests\Metadata\PE\TypeKindTests.vb (3)
36Assert.Equal(TypeKind.Class, obj.TypeKind) 41Assert.Equal(TypeKind.Class, [enum].TypeKind) 94Assert.Equal(TypeKind.Class, multicastDelegate.TypeKind)
SymbolsTests\MockSymbolTests.vb (2)
48Dim container As NamedTypeSymbol = New MockNamedTypeSymbol("TestClass", Enumerable.Empty(Of Symbol), TypeKind.Class) 94result = New MockNamedTypeSymbol(name, childSymbols, TypeKind.Class)
SymbolsTests\Source\BaseClassTests.vb (1)
2229Assert.Equal(TypeKind.Class, derived.TypeKind)
SymbolsTests\Source\BindingsTests.vb (10)
180Assert.Equal(TypeKind.Class, DirectCast(typeContext.ContainingNamespaceOrType, NamedTypeSymbol).TypeKind) 361Assert.Equal(TypeKind.Class, typeSymbol.TypeKind) 366Assert.Equal(TypeKind.Class, typeSymbol2.TypeKind) 390Assert.Equal(TypeKind.Class, typeSymbol5.TypeKind) 401Assert.Equal(TypeKind.Class, typeSymbol6.TypeKind) 477Assert.Equal(TypeKind.Class, importsOrangeSymInfo.Type.TypeKind) 488Assert.Equal(TypeKind.Class, importsYellowSymInfo.Type.TypeKind) 518Assert.Equal(TypeKind.Class, classYellowSymInfo.Type.TypeKind) 524Assert.Equal(TypeKind.Class, DirectCast(symbols(0), NamedTypeSymbol).TypeKind) 681Assert.Equal(TypeKind.Class, info.Type.TypeKind)
SymbolsTests\Source\FieldTests.vb (1)
104Assert.Equal(TypeKind.Class, classD.TypeKind)
SymbolsTests\Source\MethodTests.vb (3)
61Assert.Equal(TypeKind.Class, classD.TypeKind) 477Assert.Equal(TypeKind.Class, classD.TypeKind) 626Assert.Equal(TypeKind.Class, classD.TypeKind)
SymbolsTests\Source\PropertyTests.vb (2)
5404Assert.Equal(TypeKind.[Class], [class].TypeKind) 5447Assert.Equal(TypeKind.[Class], [class].TypeKind)
SymbolsTests\Source\TypeTests.vb (5)
111Assert.Equal(TypeKind.Class, classB.TypeKind) 241Assert.Equal(TypeKind.Class, outerClass.TypeKind) 257Assert.Equal(TypeKind.Class, i1Class.TypeKind) 607Assert.Equal(TypeKind.Class, classA.TypeKind) 695Assert.Equal(TypeKind.Class, varA.Type.TypeKind)
SymbolsTests\WellKnownTypeValidationTests.vb (6)
43Assert.Equal(TypeKind.Class, lookup.TypeKind) 160Assert.Equal(TypeKind.Class, wellKnown.TypeKind) 168Assert.Equal(TypeKind.Class, lookup.TypeKind) 300Assert.Equal(TypeKind.Class, wellKnown.TypeKind) 303Assert.Equal(TypeKind.Class, lookup.TypeKind) 416Assert.Equal(TypeKind.Class, wellKnown.TypeKind)
Microsoft.CodeAnalysis.VisualBasic.Test.Utilities (2)
Extensions.vb (1)
225If typeSymTypeKind = TypeKind.Interface OrElse typeSymTypeKind = TypeKind.Class OrElse
MockSymbols.vb (1)
129Public Sub New(name As String, children As IEnumerable(Of Symbol), Optional kind As TypeKind = TypeKind.Class)
Microsoft.CodeAnalysis.VisualBasic.Workspaces (4)
Recommendations\VisualBasicRecommendationServiceRunner.vb (3)
497If type.TypeKind = TypeKind.Class AndAlso Not type.IsSealed AndAlso Not Equals(type, within) Then 501If type.TypeKind = TypeKind.Class OrElse 527If namedTypeSymbol.TypeKind = TypeKind.Class AndAlso Not namedTypeSymbol.IsSealed AndAlso Not Equals(namedTypeSymbol, within) Then
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\CodeGeneration\NamedTypeGenerator.vb (1)
187If namedType.TypeKind = TypeKind.Class Then
Microsoft.CodeAnalysis.Workspaces (17)
Classification\ClassificationExtensions.cs (1)
12TypeKind.Class => type.IsRecord ? ClassificationTypeNames.RecordClassName : ClassificationTypeNames.ClassName,
Editing\SyntaxGenerator.cs (2)
760TypeKind.Class => ClassDeclaration( 846case TypeKind.Class:
FindSymbols\FindReferences\DependentTypeFinder.cs (1)
46private static readonly Func<INamedTypeSymbol, bool> s_isNonSealedClass = static t => t is { TypeKind: TypeKind.Class, IsSealed: false };
FindSymbols\FindReferences\DependentTypeFinder_ImplementingTypes.cs (1)
54t => t.TypeKind is TypeKind.Class or
FindSymbols\SymbolFinder_Hierarchy.cs (1)
129if (symbol is { DeclaredAccessibility: Accessibility.Public, ContainingType.TypeKind: TypeKind.Class or TypeKind.Struct })
Recommendations\AbstractRecommendationServiceRunner.cs (1)
481else if (originalConstraintType.TypeKind == TypeKind.Class)
Shared\Extensions\ISymbolExtensions.cs (1)
490if (typeSymbol.TypeKind == TypeKind.Class)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\INamedTypeSymbolExtensions.cs (2)
337if (classOrStructType.TypeKind is not TypeKind.Class and not TypeKind.Struct) 543TypeKind: TypeKind.Class or TypeKind.Struct
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ISymbolExtensions.cs (1)
177return symbol is { ContainingType.TypeKind: TypeKind.Class, IsSealed: false } &&
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ITypeSymbolExtensions.cs (1)
56=> symbol?.TypeKind == TypeKind.Class && symbol.IsAbstract;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\EditorConfig\EditorConfigNamingStyleParser_SymbolSpec.cs (2)
125private static readonly SymbolKindOrTypeKind _class = new(TypeKind.Class); 380case TypeKind.Class:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingStyleRules.cs (1)
68if (containingType.TypeKind is not TypeKind.Class and not TypeKind.Struct)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\SymbolSpecification.cs (1)
67new SymbolKindOrTypeKind(TypeKind.Class),
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SymbolEquivalenceComparer.cs (1)
245TypeKind.Module => TypeKind.Class,
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (1)
Options\OptionsTestHelpers.cs (1)
151=> CreateNamingStylePreferences(([TypeKind.Class], Capitalization.PascalCase, ReportDiagnostic.Error));
Microsoft.CodeAnalysis.Workspaces.UnitTests (1)
EditorConfigParsing\NamingStyleParserTests.cs (1)
157symbolKind => Assert.Equal(new SymbolKindOrTypeKind(TypeKind.Class), symbolKind),
Microsoft.Gen.Logging (1)
Parsing\Parser.LogProperties.cs (1)
20private static readonly HashSet<TypeKind> _allowedTypeKinds = [TypeKind.Class, TypeKind.Struct, TypeKind.Interface];
Microsoft.Gen.Logging.Unit.Tests (1)
LogParserUtilitiesTests.cs (1)
155paramTypeMock.SetupGet(x => x.TypeKind).Returns(TypeKind.Class);
Microsoft.Gen.Metrics (2)
Parser.cs (2)
625if (strongTypeSymbol.TypeKind == TypeKind.Class) 756if (kind == TypeKind.Class)
Microsoft.Gen.MetricsReports (2)
src\Generators\Microsoft.Gen.Metrics\Parser.cs (2)
625if (strongTypeSymbol.TypeKind == TypeKind.Class) 756if (kind == TypeKind.Class)
Microsoft.Interop.ComInterfaceGenerator (1)
Analyzers\AddGeneratedComClassAnalyzer.cs (1)
42if (type.TypeKind != TypeKind.Class)
Microsoft.Interop.SourceGeneration (3)
CustomMarshallingInfoHelper.cs (2)
29if (!(entryPointType.IsStatic && entryPointType.TypeKind == TypeKind.Class) 145if (!(entryPointType.IsStatic && entryPointType.TypeKind == TypeKind.Class)
ManualTypeMarshallingHelper.cs (1)
412if (marshallerType is { IsStatic: true, TypeKind: TypeKind.Class })
Microsoft.ML.InternalCodeAnalyzer (1)
BaseTestClassAnalyzer.cs (1)
68if (namedType.TypeKind != TypeKind.Class)
Microsoft.VisualStudio.LanguageServices (14)
CommonControls\MemberSelectionViewModel.cs (1)
31TypeKind destinationTypeKind = TypeKind.Class,
ExtractClass\ExtractClassViewModel.cs (1)
41destinationTypeKind: TypeKind.Class);
GenerateType\GenerateTypeDialogViewModel.cs (1)
209PopulateTypeKind(TypeKind.Class, "class", "Class");
Implementation\ContainedLanguageRefactorNotifyService.cs (1)
77else if (symbol is INamedTypeSymbol && (symbol as INamedTypeSymbol).TypeKind == TypeKind.Class)
Library\ObjectBrowser\ObjectList.cs (1)
214case TypeKind.Class:
MoveStaticMembers\VisualStudioMoveStaticMembersOptionsService.cs (1)
187if (destinationType.TypeKind is not (TypeKind.Class or TypeKind.Interface or TypeKind.Module or TypeKind.Struct))
Progression\GraphBuilder.cs (1)
572case TypeKind.Class:
Progression\GraphProvider.cs (6)
200IsAnyTypeKind(n, TypeKind.Class, TypeKind.Interface, TypeKind.Struct, TypeKind.Enum, TypeKind.Delegate))) 227IsAnyTypeKind(n, TypeKind.Class, TypeKind.Struct))) 245IsAnyTypeKind(n, TypeKind.Class, TypeKind.Struct))) 257IsAnyTypeKind(n, TypeKind.Class, TypeKind.Struct) && 295IsAnyTypeKind(n, TypeKind.Class, TypeKind.Struct) && 307IsAnyTypeKind(n, TypeKind.Class, TypeKind.Struct) &&
Progression\GraphQueries\InheritedByGraphQuery.cs (1)
29if (namedType.TypeKind == TypeKind.Class)
Microsoft.VisualStudio.LanguageServices.CSharp (3)
CodeModel\CSharpCodeModelService.cs (2)
754if (typeSymbol.TypeKind is TypeKind.Class or 3711return typeSymbol.TypeKind == TypeKind.Class;
ObjectBrowser\DescriptionBuilder.cs (1)
80case TypeKind.Class:
Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests (4)
GlyphExtensionsTests.cs (4)
71pointedAtType: (INamedTypeSymbol)CreateSymbolMock(SymbolKind.NamedType, typeKind: TypeKind.Class)); 100elementType: (INamedTypeSymbol)CreateSymbolMock(SymbolKind.NamedType, typeKind: TypeKind.Class)); 105target: (INamedTypeSymbol)CreateSymbolMock(SymbolKind.NamedType, typeKind: TypeKind.Class)); 115typeKind: TypeKind.Class);
Microsoft.VisualStudio.LanguageServices.VisualBasic (7)
CodeModel\Extenders\GenericExtender.vb (4)
36Case TypeKind.Class, 49Case TypeKind.Class, 64Case TypeKind.Class, 86Case TypeKind.Class,
CodeModel\VisualBasicCodeModelService.vb (1)
4247Return typeSymbol.TypeKind = TypeKind.Class
ObjectBrowser\DescriptionBuilder.vb (2)
74Case TypeKind.Class 100If typeSymbol.TypeKind = TypeKind.Class Then