11 implementations of TypeKind
Microsoft.CodeAnalysis.CodeStyle.Fixes (4)
CodeGenerationArrayTypeSymbol.cs (1)
50public override TypeKind TypeKind => TypeKind.Array;
CodeGenerationPointerTypeSymbol.cs (1)
25public override TypeKind TypeKind => TypeKind.Pointer;
CodeGenerationTypeParameterSymbol.cs (1)
70public override TypeKind TypeKind => TypeKind.TypeParameter;
CodeGenerationTypeSymbol.cs (1)
36public abstract TypeKind TypeKind { get; }
Microsoft.CodeAnalysis.CSharp (1)
Symbols\PublicModel\TypeSymbol.cs (1)
135TypeKind ITypeSymbol.TypeKind
Microsoft.CodeAnalysis.Features (1)
MetadataAsSource\AbstractMetadataAsSourceService.WrappedNamedTypeSymbol.cs (1)
68public TypeKind TypeKind => _symbol.TypeKind;
Microsoft.CodeAnalysis.VisualBasic (1)
Symbols\TypeSymbol.vb (1)
570Private ReadOnly Property ITypeSymbol_TypeKind As TypeKind Implements ITypeSymbol.TypeKind, ITypeSymbolInternal.TypeKind
Microsoft.CodeAnalysis.Workspaces (4)
CodeGenerationArrayTypeSymbol.cs (1)
50public override TypeKind TypeKind => TypeKind.Array;
CodeGenerationPointerTypeSymbol.cs (1)
25public override TypeKind TypeKind => TypeKind.Pointer;
CodeGenerationTypeParameterSymbol.cs (1)
70public override TypeKind TypeKind => TypeKind.TypeParameter;
CodeGenerationTypeSymbol.cs (1)
36public abstract TypeKind TypeKind { get; }
1768 references to TypeKind
Microsoft.CodeAnalysis (5)
Compilation\Compilation.cs (2)
3579return string.Format("{0}: {1} {2} -> {3} {4}", this.AssemblyName, source.TypeKind.ToString(), source.Name, destination.TypeKind.ToString(), destination.Name);
Compilation\Expression.cs (1)
41if (type.TypeKind == TypeKind.Enum)
SymbolDisplay\AbstractSymbolDisplayVisitor.cs (2)
98if (type.TypeKind == TypeKind.Enum) 139if (typeSymbol.TypeKind != TypeKind.Enum)
Microsoft.CodeAnalysis.CodeStyle (44)
AbstractRemoveUnusedParametersAndValuesDiagnosticAnalyzer.SymbolStartAnalyzer.BlockAnalyzer.cs (1)
150if (value.Type.TypeKind == TypeKind.Dynamic)
AbstractUseAutoPropertyAnalyzer.cs (1)
89if (namedType.TypeKind is not TypeKind.Class and not TypeKind.Struct and not TypeKind.Module)
INamedTypeSymbolExtensions.cs (8)
86if (member.ContainingType.TypeKind == TypeKind.Interface) 157if (implementation?.ContainingType.TypeKind == TypeKind.Interface) 203if (type.TypeKind == TypeKind.Interface) 304if (type.TypeKind == TypeKind.Interface) 342if (classOrStructType.TypeKind is not TypeKind.Class and not TypeKind.Struct) 352if (!interfacesOrAbstractClasses.All(i => i.TypeKind == TypeKind.Interface) && 369return interfacesOrAbstractClasses.First().TypeKind == TypeKind.Interface 521if (containingType.TypeKind is TypeKind.Class or TypeKind.Struct)
ISymbolExtensions.cs (8)
114return symbol?.ContainingType?.TypeKind == TypeKind.Class && 123symbol.ContainingType.TypeKind == TypeKind.Interface) 163=> symbol is ITypeSymbol { TypeKind: TypeKind.Error }; 166=> symbol is ITypeSymbol { TypeKind: TypeKind.Module }; 169=> symbol is ITypeSymbol { TypeKind: TypeKind.Interface }; 220=> symbol is { ContainingType.TypeKind: TypeKind.Module }; 244=> symbol is ITypeSymbol { TypeKind: TypeKind.Delegate }; 633if (!methods.Any(x => x.Name == WellKnownMemberNames.OnCompleted && x.ReturnsVoid && x.Parameters is [{ Type.TypeKind: TypeKind.Delegate }]))
ISymbolExtensions_Accessibility.cs (1)
199typeArg.TypeKind != TypeKind.Error &&
ITypeSymbolExtensions.cs (13)
42if (type is INamedTypeSymbol namedType && namedType.TypeKind == TypeKind.Interface && !allInterfaces.Contains(namedType)) 54=> symbol?.TypeKind == TypeKind.Class && symbol.IsAbstract; 80=> symbol?.TypeKind == TypeKind.Module; 83=> symbol?.TypeKind == TypeKind.Interface; 86=> symbol?.TypeKind == TypeKind.Delegate; 89=> symbol?.TypeKind == TypeKind.FunctionPointer; 92=> symbol?.TypeKind == TypeKind.Struct; 186IEnumerable<ITypeSymbol> baseTypes = (baseType.TypeKind == TypeKind.Interface) ? type.AllInterfaces : type.GetBaseTypes(); 261switch (typeSymbol.TypeKind) 531if (t1.TypeKind != t2.TypeKind) 625if (type != null && type.IsValueType && type.TypeKind == TypeKind.Enum) 677if (type.TypeKind != TypeKind.Struct)
NamingStyleRules.cs (1)
74if (containingType.TypeKind is not TypeKind.Class and not TypeKind.Struct)
PopulateSwitchExpressionHelpers.cs (1)
28if (switchExpressionType?.TypeKind == TypeKind.Enum)
PopulateSwitchStatementHelpers.cs (1)
57if (switchExpressionType?.TypeKind == TypeKind.Enum)
SemanticModelExtensions.cs (2)
165if (type.TypeKind == TypeKind.Array && typeArguments.IsEmpty) 174type.TypeKind == TypeKind.Pointer)
SymbolEquivalenceComparer.cs (1)
222var k = x.TypeKind;
SymbolEquivalenceComparer.EquivalenceVisitor.cs (1)
500if (x.TypeKind == TypeKind.Delegate)
SymbolEquivalenceComparer.GetHashCodeVisitor.cs (1)
195if (x.TypeKind == TypeKind.Delegate)
SymbolKey.SymbolKeyWriter.cs (1)
404if (namedTypeSymbol.TypeKind == TypeKind.Error)
SymbolKey.TupleTypeSymbolKey.cs (1)
24var isError = symbol.TupleUnderlyingType!.TypeKind == TypeKind.Error;
SymbolSpecification.cs (1)
400SymbolCategory.Type => symbol is ITypeSymbol type && type.TypeKind == (TypeKind)_kind,
SymbolUsageAnalysis.Walker.cs (1)
383symbol.GetSymbolType()?.TypeKind != TypeKind.Delegate)
Microsoft.CodeAnalysis.CodeStyle.Fixes (6)
AbstractFlagsEnumGenerator.cs (1)
36if (typeSymbol.TypeKind != TypeKind.Enum)
AbstractUnsealClassCodeFixProvider.cs (1)
40type.TypeKind == TypeKind.Class && type.IsSealed && !type.IsStatic)
AbstractUseConditionalExpressionCodeFixProvider.cs (2)
182conversion.Type.TypeKind != TypeKind.Error) 186if (conversion.Operand.Type == null || conversion.Operand.Type.TypeKind != TypeKind.Error)
CodeGenerationHelpers.cs (1)
153if (namedType.TypeKind != TypeKind.Enum)
INamedTypeSymbolExtensions.cs (1)
25namedType.TypeKind,
Microsoft.CodeAnalysis.CSharp (19)
SymbolDisplay\SymbolDisplayVisitor.cs (3)
261if (type != null && type.TypeKind != TypeKind.Error) 317(containingType.TypeKind != TypeKind.Interface && !IsEnumMember(symbol) & !IsLocalFunction(symbol)))) 409&& symbol.ContainingType.TypeKind == TypeKind.Enum
SymbolDisplay\SymbolDisplayVisitor.Members.cs (3)
63if (symbol.ContainingType.TypeKind == TypeKind.Enum) 883if (type.TypeKind == TypeKind.Enum) 932(containingType.TypeKind != TypeKind.Interface && !IsEnumMember(symbol) && !IsLocalFunction(symbol))))
SymbolDisplay\SymbolDisplayVisitor.Types.cs (11)
221if (typeArg.TypeKind != TypeKind.Pointer) 274var shouldSkip = namespaceSymbol.IsGlobalNamespace && symbol.TypeKind == TypeKind.Error; 319if (symbol.IsAnonymousType && symbol.TypeKind != TypeKind.Delegate) 359if (symbolName is null && symbol.IsAnonymousType && symbol.TypeKind == TypeKind.Delegate) 496if (tupleSymbol.TypeKind == TypeKind.Error || 564if (symbol.TypeKind == TypeKind.Error && 583symbol.TypeKind == TypeKind.Delegate && 590switch (symbol.TypeKind) 611throw ExceptionUtilities.UnexpectedValue(symbol.TypeKind); 678if (symbol.IsAnonymousType && symbol.TypeKind != TypeKind.Delegate) 690switch (symbol.TypeKind)
SymbolDisplay\SymbolDisplayVisitor_Constants.cs (1)
20else if (type.IsReferenceType || type.TypeKind == TypeKind.Pointer || ITypeSymbolHelpers.IsNullableType(type))
SymbolDisplay\SymbolDisplayVisitor_Minimal.cs (1)
147if (symbol.TypeKind != TypeKind.Error)
Microsoft.CodeAnalysis.CSharp.CodeStyle (19)
CastSimplifier.cs (8)
245if (originalDelegateCreationOperation.Type?.TypeKind != TypeKind.Delegate) 262if (rewrittenDelegateCreationOperation.Type?.TypeKind != TypeKind.Delegate) 297if (originalConvertedType is null || originalConvertedType.TypeKind == TypeKind.Error) 330if (rewrittenConvertedType is null || rewrittenConvertedType.TypeKind == TypeKind.Error || !rewrittenConversion.Exists) 479originalConvertedType.IsReferenceType && rewrittenConvertedType.TypeKind == TypeKind.Dynamic) 802if (!original.IsReferenceType || original.TypeKind == TypeKind.Interface) 1097if (originalMemberSymbol.ContainingType.TypeKind == TypeKind.Interface) 1137rewrittenType.TypeKind == TypeKind.Array ||
CSharpAsAndNullCheckDiagnosticAnalyzer.cs (1)
128if (asType?.TypeKind == TypeKind.Dynamic)
CSharpIsAndCastCheckDiagnosticAnalyzer.cs (1)
111if (isType?.TypeKind == TypeKind.Dynamic)
CSharpMakeStructFieldsWritableDiagnosticAnalyzer.cs (1)
57if (namedTypeSymbol.TypeKind != TypeKind.Struct)
CSharpMakeStructMemberReadOnlyAnalyzer.cs (2)
45TypeKind: TypeKind.Struct, 149return instance is { Type.TypeKind: TypeKind.Struct } ||
CSharpMakeStructReadOnlyDiagnosticAnalyzer.cs (1)
81if (typeSymbol.TypeKind is not TypeKind.Struct)
CSharpUseAutoPropertyAnalyzer.cs (1)
111if (symbolInfo.GetAnySymbol() is not IFieldSymbol { ContainingType.TypeKind: TypeKind.Struct })
CSharpUseImplicitTypeHelper.cs (1)
294if (declaredType != null && declaredType.TypeKind == TypeKind.Dynamic)
InvokeDelegateWithConditionalAccessAnalyzer.cs (1)
92if (syntaxContext.SemanticModel.GetTypeInfo(invocationExpression.Expression, syntaxContext.CancellationToken).Type is { TypeKind: TypeKind.FunctionPointer })
SemanticModelExtensions.cs (2)
212if (containingType != null && containingType.TypeKind == TypeKind.Interface) 440if (parameter.Type.OriginalDefinition.TypeKind != TypeKind.TypeParameter)
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (32)
ConvertToRecordEngine.cs (4)
41TypeKind: TypeKind.Class or TypeKind.Struct, 292recordKeyword = type.TypeKind == TypeKind.Class 396type.TypeKind == TypeKind.Class 402type.TypeKind == TypeKind.Class
CSharpReplaceDefaultLiteralCodeFixProvider.cs (2)
90if (type != null && type.TypeKind != TypeKind.Error) 129return type.TypeKind == TypeKind.Enum &&
CSharpTypeInferenceService.TypeInferrer.cs (3)
447if (type.TypeKind == TypeKind.Delegate) 1037if (parentTypes.Any(static parentType => parentType.InferredType.SpecialType == SpecialType.System_String || parentType.InferredType.TypeKind == TypeKind.Delegate)) 1039return parentTypes.Where(parentType => parentType.InferredType.SpecialType == SpecialType.System_String || parentType.InferredType.TypeKind == TypeKind.Delegate);
ExpressionGenerator.cs (1)
61if (type is INamedTypeSymbol { TypeKind: TypeKind.Enum } enumType)
ITypeParameterSymbolExtensions.cs (3)
58typeParameter.ConstraintTypes.Where(t => t.TypeKind == TypeKind.Class).Concat( 59typeParameter.ConstraintTypes.Where(t => t.TypeKind == TypeKind.Interface).Concat( 60typeParameter.ConstraintTypes.Where(t => t.TypeKind is not TypeKind.Class and not TypeKind.Interface)));
ITypeSymbolExtensions.cs (1)
153if (typeSymbol.TypeKind is TypeKind.Class or TypeKind.Struct)
ITypeSymbolExtensions.ExpressionSyntaxGeneratorVisitor.cs (2)
50if (symbol.ContainingType.TypeKind == TypeKind.Submission) 64if (symbol.TypeKind != TypeKind.Error)
ITypeSymbolExtensions.TypeSyntaxGeneratorVisitor.cs (4)
190if (symbol.TypeKind == TypeKind.Error && symbol.Name == "var") 235if (innerType.TypeKind != TypeKind.Pointer) 270if (symbol.ContainingType.TypeKind != TypeKind.Submission) 289if (symbol.TypeKind != TypeKind.Error)
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs\SyntaxTreeExtensions.cs (2)
3049return ((INamedTypeSymbol)symbol).TypeKind == TypeKind.Enum; 3052return target.IsType && ((ITypeSymbol)target).TypeKind == TypeKind.Enum;
NamedTypeGenerator.cs (8)
91if (info.Context.GenerateMembers && namedType.TypeKind != TypeKind.Delegate) 183if (namedType.TypeKind == TypeKind.Enum) 187else if (namedType.TypeKind == TypeKind.Delegate) 195var isRecordClass = namedType.TypeKind is TypeKind.Class; 206var kind = namedType.TypeKind == TypeKind.Struct ? SyntaxKind.StructDeclaration : 207namedType.TypeKind == TypeKind.Interface ? SyntaxKind.InterfaceDeclaration : SyntaxKind.ClassDeclaration; 288if (namedType.TypeKind == TypeKind.Class) 324if (namedType.TypeKind == TypeKind.Class && namedType.BaseType != null && namedType.BaseType.SpecialType != Microsoft.CodeAnalysis.SpecialType.System_Object)
PositionalParameterInfo.cs (1)
180if (containingType.TypeKind == TypeKind.Struct && !containingType.IsReadOnly)
UseExplicitTypeForConstCodeFixProvider.cs (1)
52if (type == null || type.TypeKind == TypeKind.Error || type.IsAnonymousType)
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (6)
SymbolKey\SymbolKeyTestBase.cs (1)
408else if (tinfo.Type != null && tinfo.Type.TypeKind != TypeKind.Delegate)
Workspaces\WorkspaceTests_EditorFeatures.cs (5)
486Assert.NotEqual(TypeKind.Error, classC.TypeKind); 505Assert.Equal(TypeKind.Error, classCz.TypeKind); 531Assert.NotEqual(TypeKind.Error, classCy.TypeKind); 588Assert.NotEqual(TypeKind.Error, classCy.TypeKind); 619if (classCz.TypeKind == TypeKind.Error)
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (5)
Semantics\PatternMatchingTests2.cs (5)
2356Assert.Equal(TypeKind.Error, ti.Type.TypeKind); 2362Assert.Equal(TypeKind.Error, ti.Type.TypeKind); 2368Assert.Equal(TypeKind.Error, ti.Type.TypeKind); 2370Assert.Equal(TypeKind.Error, ti.ConvertedType.TypeKind); 2376Assert.Equal(TypeKind.Error, ti.ConvertedType.TypeKind);
Microsoft.CodeAnalysis.CSharp.Features (43)
ChangeSignature\CSharpChangeSignatureService.cs (1)
156if (typeSymbol != null && typeSymbol.IsKind(SymbolKind.NamedType) && ((ITypeSymbol)typeSymbol).TypeKind == TypeKind.Delegate)
Completion\CompletionProviders\DeclarationName\DeclarationNameRecommender.NameGenerator.cs (2)
104if (type.TypeKind == TypeKind.Interface) 112if (type.TypeKind == TypeKind.TypeParameter)
Completion\CompletionProviders\EnumAndCompletionListTagCompletionProvider.cs (4)
129if (type.TypeKind != TypeKind.Enum) 184if (type.TypeKind == TypeKind.Enum) 289if (containingType?.TypeKind == TypeKind.Enum && 346if (type.TypeKind is TypeKind.Struct or TypeKind.Class)
Completion\CompletionProviders\ExplicitInterfaceMemberCompletionProvider.cs (1)
75if (symbol?.TypeKind != TypeKind.Interface)
Completion\CompletionProviders\NamedParameterCompletionProvider.cs (3)
175if (semanticModel.GetTypeInfo(objectCreationExpression, cancellationToken).Type is INamedTypeSymbol type && within != null && type.TypeKind != TypeKind.Delegate) 215(within.TypeKind == TypeKind.Struct || within.TypeKind == TypeKind.Class))
ConvertToRecordEngine.cs (4)
41TypeKind: TypeKind.Class or TypeKind.Struct, 292recordKeyword = type.TypeKind == TypeKind.Class 396type.TypeKind == TypeKind.Class 402type.TypeKind == TypeKind.Class
CSharpAsAndNullCheckDiagnosticAnalyzer.cs (1)
128if (asType?.TypeKind == TypeKind.Dynamic)
CSharpIsAndCastCheckDiagnosticAnalyzer.cs (1)
111if (isType?.TypeKind == TypeKind.Dynamic)
CSharpMakeStructFieldsWritableDiagnosticAnalyzer.cs (1)
57if (namedTypeSymbol.TypeKind != TypeKind.Struct)
CSharpMakeStructMemberReadOnlyAnalyzer.cs (2)
45TypeKind: TypeKind.Struct, 149return instance is { Type.TypeKind: TypeKind.Struct } ||
CSharpMakeStructReadOnlyDiagnosticAnalyzer.cs (1)
81if (typeSymbol.TypeKind is not TypeKind.Struct)
CSharpReplaceDefaultLiteralCodeFixProvider.cs (2)
90if (type != null && type.TypeKind != TypeKind.Error) 129return type.TypeKind == TypeKind.Enum &&
CSharpUseAutoPropertyAnalyzer.cs (1)
111if (symbolInfo.GetAnySymbol() is not IFieldSymbol { ContainingType.TypeKind: TypeKind.Struct })
EditAndContinue\CSharpEditAndContinueAnalyzer.cs (3)
1933=> symbol.TypeKind switch 2515{ ContainingType.TypeKind: TypeKind.Interface } and not INamedTypeSymbol 2520IFieldSymbol { ContainingType.TypeKind: TypeKind.Enum }
ExtractMethod\CSharpMethodExtractor.cs (1)
182if (type.TypeKind is TypeKind.Error or
ExtractMethod\CSharpMethodExtractor.CSharpCodeGenerator.ExpressionCodeGenerator.cs (1)
108if (returnType.TypeKind == TypeKind.Array && containingScope is InitializerExpressionSyntax)
ExtractMethod\CSharpMethodExtractor.PostProcessor.cs (2)
185semanticInfo.TypeKind == TypeKind.Error || 186semanticInfo.TypeKind == TypeKind.Unknown)
ExtractMethod\CSharpSelectionResult.ExpressionResult.cs (1)
137info.ConvertedType.TypeKind != TypeKind.Interface)
GenerateDefaultConstructors\CSharpGenerateDefaultConstructorsService.cs (1)
43return classType?.TypeKind is TypeKind.Class or TypeKind.Struct;
ImplementInterface\CSharpImplementInterfaceService.cs (1)
58if (interfaceSymbolInfo.GetAnySymbol() is INamedTypeSymbol interfaceType && interfaceType.TypeKind == TypeKind.Interface)
InvokeDelegateWithConditionalAccessAnalyzer.cs (1)
92if (syntaxContext.SemanticModel.GetTypeInfo(invocationExpression.Expression, syntaxContext.CancellationToken).Type is { TypeKind: TypeKind.FunctionPointer })
NavigationBar\CSharpNavigationBarItemService.cs (1)
208return symbol.ContainingType.TypeKind == TypeKind.Enum
PositionalParameterInfo.cs (1)
180if (containingType.TypeKind == TypeKind.Struct && !containingType.IsReadOnly)
SignatureHelp\ConstructorInitializerSignatureHelpProvider.cs (1)
85if (within.TypeKind is not TypeKind.Struct and not TypeKind.Class)
SignatureHelp\InvocationExpressionSignatureHelpProvider.cs (2)
86if (invokedType is INamedTypeSymbol { TypeKind: TypeKind.Delegate } or IFunctionPointerTypeSymbol) 140if (invokedType is INamedTypeSymbol { TypeKind: TypeKind.Delegate } expressionType)
SignatureHelp\ObjectCreationExpressionSignatureHelpProvider.cs (2)
87if (type.TypeKind == TypeKind.Delegate) 126Debug.Assert(type.TypeKind == TypeKind.Delegate);
UseExplicitTypeForConstCodeFixProvider.cs (1)
52if (type == null || type.TypeKind == TypeKind.Error || type.IsAnonymousType)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (71)
Semantics\DeconstructionTests.cs (6)
4275Assert.Equal(TypeKind.Struct, typeInfo.Type.TypeKind); 4276Assert.Equal(TypeKind.Error, ((INamedTypeSymbol)typeInfo.Type).TypeArguments[0].TypeKind); 4277Assert.Equal(TypeKind.Error, ((INamedTypeSymbol)typeInfo.Type).TypeArguments[1].TypeKind); 4534Assert.Equal(TypeKind.Struct, typeInfo.Type.TypeKind); 4535Assert.Equal(TypeKind.Error, ((INamedTypeSymbol)typeInfo.Type).TypeArguments[0].TypeKind); 4536Assert.Equal(TypeKind.Error, ((INamedTypeSymbol)typeInfo.Type).TypeArguments[1].TypeKind);
Semantics\ExpressionBodiedMemberTests.cs (1)
259Assert.Equal(TypeKind.TypeParameter, semanticInfo.Type.TypeKind);
Semantics\ForEachTests.cs (1)
2890Assert.NotEqual(TypeKind.Error, localSymbolType.TypeKind);
Semantics\FunctionPointerTests.cs (5)
190Assert.Equal(TypeKind.FunctionPointer, typeInfo.Type!.TypeKind); 276Assert.Equal(TypeKind.FunctionPointer, typeInfo.ConvertedType!.TypeKind); 1918Assert.Equal(TypeKind.TypeParameter, m1InvocationSymbol.TypeArguments[0].TypeKind); 1920Assert.Equal(TypeKind.TypeParameter, functionPointer.Signature.ReturnType.TypeKind); 1921Assert.Equal(TypeKind.TypeParameter, functionPointer.Signature.Parameters[0].Type.TypeKind);
Semantics\InteractiveSemanticModelTests.cs (9)
46Assert.Equal(TypeKind.Error, baseType.TypeKind); 158Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind); 160Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.TypeKind); 183Assert.Equal(TypeKind.Error, semanticInfo.Type.TypeKind); 185Assert.Equal(TypeKind.Error, semanticInfo.ConvertedType.TypeKind); 209Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind); 211Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.TypeKind); 237Assert.Equal(TypeKind.Error, semanticInfo.Type.TypeKind); 239Assert.Equal(TypeKind.Error, semanticInfo.ConvertedType.TypeKind);
Semantics\IteratorTests.cs (1)
335Assert.Equal(TypeKind.Error, typeInfo.Type.TypeKind);
Semantics\LambdaTests.cs (16)
2121Assert.Equal(TypeKind.Class, typeInfo.Type.TypeKind); 2166Assert.Equal(TypeKind.Class, typeInfo.Type.TypeKind); 2212Assert.Equal(TypeKind.Class, typeInfo.Type.TypeKind); 2258Assert.Equal(TypeKind.Class, typeInfo.Type.TypeKind); 2304Assert.Equal(TypeKind.Class, typeInfo.Type.TypeKind); 2334Assert.Equal(TypeKind.Struct, typeInfo.Type.TypeKind); 2361Assert.Equal(TypeKind.Class, typeInfo.Type.TypeKind); 2416Assert.Equal(TypeKind.Class, typeInfo.Type.TypeKind); 2462Assert.Equal(TypeKind.Class, typeInfo.Type.TypeKind); 2508Assert.Equal(TypeKind.Class, typeInfo.Type.TypeKind); 2541Assert.Equal(TypeKind.Class, typeInfo.Type.TypeKind); 2574Assert.Equal(TypeKind.Class, typeInfo.Type.TypeKind); 2611Assert.Equal(TypeKind.Class, typeInfo.Type.TypeKind); 2998Assert.Equal(TypeKind.Error, model.GetTypeInfo(contentType).Type.TypeKind); 3007Assert.Equal(TypeKind.Error, model.GetTypeInfo(b).Type.TypeKind); 5602Assert.Equal(TypeKind.TypeParameter, expectedType.TypeKind);
Semantics\LocalFunctionTests.cs (2)
1779Assert.Equal(TypeKind.Error, aTypeInfo.Type.TypeKind); 1854Assert.Equal(TypeKind.Error, aTypeInfo.Type.TypeKind);
Semantics\NativeIntegerTests.cs (4)
239Assert.Equal(TypeKind.Struct, type.TypeKind); 735Assert.Equal(TypeKind.Error, type.TypeKind); 15393Assert.Equal(TypeKind.Interface, symbol.TypeKind); 15423Assert.Equal(TypeKind.TypeParameter, symbol.TypeKind);
Semantics\NullableReferenceTypesTests.cs (1)
3327Assert.Equal(TypeKind.Class, typeInfo.Type.TypeKind);
Semantics\OutVarTests.cs (9)
19678Assert.True(compilation.GetSemanticModel(tree).GetTypeInfo(x1Ref).Type.TypeKind == TypeKind.Error); 19721Assert.True(compilation.GetSemanticModel(tree).GetTypeInfo(x1Ref).Type.TypeKind == TypeKind.Error); 20651Assert.True(compilation.GetSemanticModel(tree).GetTypeInfo(x4Ref).Type.TypeKind == TypeKind.Error); 20766Assert.True(model.GetTypeInfo(x1Ref).Type.TypeKind == TypeKind.Error); 20769Assert.True(model.GetTypeInfo(x2Ref).Type.TypeKind == TypeKind.Error); 20772Assert.True(model.GetTypeInfo(x3Ref).Type.TypeKind == TypeKind.Error); 20775Assert.True(model.GetTypeInfo(x4Ref).Type.TypeKind == TypeKind.Error); 33204Assert.Equal(TypeKind.Class, model.GetTypeInfo(declaration2).Type.TypeKind); 33211Assert.Equal(TypeKind.Class, typeInfo.Type.TypeKind);
Semantics\QueryTests.cs (2)
3382Assert.NotEqual(TypeKind.Error, typeInfo2.Type.TypeKind); 3391Assert.NotEqual(TypeKind.Error, typeInfo1.Type.TypeKind);
Semantics\ScriptSemanticsTests.cs (4)
251Assert.Equal(TypeKind.Error, summary.Type.TypeKind); 252Assert.Equal(TypeKind.Error, summary.ConvertedType.TypeKind); 568Assert.Equal(TypeKind.Error, summary.Type.TypeKind); 569Assert.Equal(TypeKind.Error, summary.ConvertedType.TypeKind);
Semantics\UnsafeTests.cs (10)
4433Assert.Equal(TypeKind.Pointer, type.TypeKind); 4502Assert.Equal(TypeKind.Pointer, typeInfo.Type.TypeKind); 4503Assert.Equal(TypeKind.Error, ((IPointerTypeSymbol)typeInfo.Type).PointedAtType.TypeKind); 4540Assert.Equal(TypeKind.Pointer, typeInfo.Type.TypeKind); 4541Assert.Equal(TypeKind.Error, ((IPointerTypeSymbol)typeInfo.Type).PointedAtType.TypeKind); 5513Assert.Equal(TypeKind.Pointer, typeInfo.ConvertedType.TypeKind); 5549Assert.Equal(TypeKind.Pointer, type.TypeKind); 5553Assert.Equal(TypeKind.Pointer, convertedType.TypeKind); 7348Assert.Equal(TypeKind.Pointer, type.TypeKind); 7853Assert.Equal(TypeKind.Enum, type.TypeKind);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (555)
Compilation\GetSemanticInfoTests.cs (9)
1497Assert.Equal(TypeKind.Error, bindInfo.Type.TypeKind); 1498Assert.Equal(TypeKind.Struct, bindInfo.ConvertedType.TypeKind); 1818Assert.Equal(TypeKind.Array, candidate.Parameters.Last().Type.TypeKind); 1819Assert.Equal(TypeKind.TypeParameter, ((IMethodSymbol)candidate.OriginalDefinition).Parameters.Last().Type.TypeKind); 4381Assert.Equal(TypeKind.Enum, info.Type.TypeKind); 4683Assert.Equal(TypeKind.TypeParameter, paramType0.TypeKind); 4685Assert.Equal(TypeKind.Class, paramType1.TypeKind); 4728Assert.Equal(TypeKind.TypeParameter, paramType0.TypeKind); 4730Assert.Equal(TypeKind.Class, paramType1.TypeKind);
Compilation\SemanticModelAPITests.cs (8)
2277Assert.Equal(TypeKind.Pointer, typeInfo.Type.TypeKind); 2279Assert.Equal(TypeKind.Pointer, typeInfo.ConvertedType.TypeKind); 3134Assert.Equal(TypeKind.Error, ((IParameterSymbol)symbol).Type.TypeKind); 3167Assert.Equal(TypeKind.Error, info.ConvertedType.TypeKind); 4331Assert.Equal(TypeKind.Dynamic, dynamicType.Type.TypeKind); 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 (7)
1012Assert.Equal(TypeKind.Class, symbol.TypeKind); 2330Assert.Equal(TypeKind.Error, info.Type.TypeKind); 2983Assert.Equal(TypeKind.Interface, dsym2.TypeKind); 2989Assert.Equal(TypeKind.Struct, dsym3.TypeKind); 4750Assert.Equal(TypeKind.Enum, enumSymbol.TypeKind); 4780Assert.Equal(TypeKind.Struct, structSymbol.TypeKind); 4781Assert.Equal(TypeKind.Interface, interfaceSymbol.TypeKind);
Compilation\SemanticModelGetSemanticInfoTests.cs (527)
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); 272Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind); 274Assert.Equal(TypeKind.Struct, semanticInfo.ConvertedType.TypeKind); 309Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind); 311Assert.Equal(TypeKind.Struct, semanticInfo.ConvertedType.TypeKind); 462Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind); 464Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.TypeKind); 502Assert.Equal(TypeKind.Error, semanticInfo.Type.TypeKind); 504Assert.Equal(TypeKind.Error, semanticInfo.ConvertedType.TypeKind); 545Assert.Equal(TypeKind.Error, semanticInfo.Type.TypeKind); 547Assert.Equal(TypeKind.Error, semanticInfo.ConvertedType.TypeKind); 593Assert.Equal(TypeKind.Error, semanticInfo.Type.TypeKind); 595Assert.Equal(TypeKind.Error, semanticInfo.ConvertedType.TypeKind); 641Assert.Equal(TypeKind.Error, semanticInfo.Type.TypeKind); 643Assert.Equal(TypeKind.Error, semanticInfo.ConvertedType.TypeKind); 694Assert.Equal(TypeKind.Error, semanticInfo.Type.TypeKind); 696Assert.Equal(TypeKind.Struct, 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); 1719Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind); 1721Assert.Equal(TypeKind.Struct, semanticInfo.ConvertedType.TypeKind); 1750Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.TypeKind); 1779Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind); 1781Assert.Equal(TypeKind.Struct, semanticInfo.ConvertedType.TypeKind); 1808Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind); 1810Assert.Equal(TypeKind.Struct, semanticInfo.ConvertedType.TypeKind); 1838Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind); 1840Assert.Equal(TypeKind.Struct, semanticInfo.ConvertedType.TypeKind); 1868Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind); 1870Assert.Equal(TypeKind.Struct, 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); 1987Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind); 1989Assert.Equal(TypeKind.Struct, semanticInfo.ConvertedType.TypeKind); 2017Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind); 2019Assert.Equal(TypeKind.Struct, semanticInfo.ConvertedType.TypeKind); 2049Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind); 2051Assert.Equal(TypeKind.Struct, semanticInfo.ConvertedType.TypeKind); 2081Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind); 2083Assert.Equal(TypeKind.Struct, semanticInfo.ConvertedType.TypeKind); 2118Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind); 2120Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.TypeKind); 2151Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind); 2153Assert.Equal(TypeKind.Struct, semanticInfo.ConvertedType.TypeKind); 2191Assert.Equal(TypeKind.Interface, semanticInfo.Type.TypeKind); 2193Assert.Equal(TypeKind.Interface, 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); 2348Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind); 2350Assert.Equal(TypeKind.Struct, semanticInfo.ConvertedType.TypeKind); 2394Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind); 2396Assert.Equal(TypeKind.Struct, semanticInfo.ConvertedType.TypeKind); 2437Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind); 2439Assert.Equal(TypeKind.Struct, semanticInfo.ConvertedType.TypeKind); 2492Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind); 2494Assert.Equal(TypeKind.Struct, semanticInfo.ConvertedType.TypeKind); 2544Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind); 2546Assert.Equal(TypeKind.Struct, 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); 2690Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind); 2692Assert.Equal(TypeKind.Struct, semanticInfo.ConvertedType.TypeKind); 2870Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind); 2872Assert.Equal(TypeKind.Struct, semanticInfo.ConvertedType.TypeKind); 2946Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind); 2948Assert.Equal(TypeKind.Struct, 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); 3394Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind); 3396Assert.Equal(TypeKind.Struct, semanticInfo.ConvertedType.TypeKind); 3425Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind); 3427Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.TypeKind); 3457Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind); 3459Assert.Equal(TypeKind.Struct, semanticInfo.ConvertedType.TypeKind); 3492Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind); 3494Assert.Equal(TypeKind.Struct, semanticInfo.ConvertedType.TypeKind); 3523Assert.Equal(TypeKind.Error, semanticInfo.Type.TypeKind); 3525Assert.Equal(TypeKind.Error, 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); 3803Assert.Equal(TypeKind.Error, semanticInfo.Type.TypeKind); 3805Assert.Equal(TypeKind.Error, semanticInfo.ConvertedType.TypeKind); 3835Assert.Equal(TypeKind.Error, semanticInfo.Type.TypeKind); 3837Assert.Equal(TypeKind.Error, 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); 3972Assert.Equal(TypeKind.Error, semanticInfo.Type.TypeKind); 3974Assert.Equal(TypeKind.Error, semanticInfo.ConvertedType.TypeKind); 4007Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind); 4009Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.TypeKind); 4038Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind); 4040Assert.Equal(TypeKind.Struct, semanticInfo.ConvertedType.TypeKind); 4069Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind); 4071Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.TypeKind); 4135Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind); 4137Assert.Equal(TypeKind.Struct, semanticInfo.ConvertedType.TypeKind); 4159Assert.Equal(TypeKind.Error, semanticInfo.Type.TypeKind); 4161Assert.Equal(TypeKind.Error, semanticInfo.ConvertedType.TypeKind); 4185Assert.Equal(TypeKind.Error, semanticInfo.Type.TypeKind); 4187Assert.Equal(TypeKind.Error, semanticInfo.ConvertedType.TypeKind); 4246Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind); 4248Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.TypeKind); 4280Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind); 4282Assert.Equal(TypeKind.Struct, semanticInfo.ConvertedType.TypeKind); 4318Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind); 4320Assert.Equal(TypeKind.Struct, semanticInfo.ConvertedType.TypeKind); 4372Assert.Equal(TypeKind.Error, semanticInfo.Type.TypeKind); 4374Assert.Equal(TypeKind.Error, 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); 4569Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind); 4571Assert.Equal(TypeKind.Struct, semanticInfo.ConvertedType.TypeKind); 4607Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind); 4609Assert.Equal(TypeKind.Struct, semanticInfo.ConvertedType.TypeKind); 4643Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind); 4645Assert.Equal(TypeKind.Struct, semanticInfo.ConvertedType.TypeKind); 4673Assert.Equal(TypeKind.Enum, semanticInfo.Type.TypeKind); 4675Assert.Equal(TypeKind.Enum, semanticInfo.ConvertedType.TypeKind); 4711Assert.Equal(TypeKind.Enum, semanticInfo.Type.TypeKind); 4713Assert.Equal(TypeKind.Enum, semanticInfo.ConvertedType.TypeKind); 4747Assert.Equal(TypeKind.Enum, semanticInfo.Type.TypeKind); 4749Assert.Equal(TypeKind.Enum, semanticInfo.ConvertedType.TypeKind); 4783Assert.Equal(TypeKind.Enum, semanticInfo.Type.TypeKind); 4785Assert.Equal(TypeKind.Enum, semanticInfo.ConvertedType.TypeKind); 4814Assert.Equal(TypeKind.Enum, semanticInfo.Type.TypeKind); 4816Assert.Equal(TypeKind.Struct, semanticInfo.ConvertedType.TypeKind); 4851Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind); 4853Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.TypeKind); 4878Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind); 4880Assert.Equal(TypeKind.Struct, 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); 5444Assert.Equal(TypeKind.Error, semanticInfo.Type.TypeKind); 5446Assert.Equal(TypeKind.Error, semanticInfo.ConvertedType.TypeKind); 5480Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind); 5482Assert.Equal(TypeKind.Struct, semanticInfo.ConvertedType.TypeKind); 5509Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind); 5511Assert.Equal(TypeKind.Struct, semanticInfo.ConvertedType.TypeKind); 5542Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind); 5544Assert.Equal(TypeKind.Struct, semanticInfo.ConvertedType.TypeKind); 5574Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind); 5576Assert.Equal(TypeKind.Struct, semanticInfo.ConvertedType.TypeKind); 5606Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind); 5608Assert.Equal(TypeKind.Struct, semanticInfo.ConvertedType.TypeKind); 5658Assert.Equal(TypeKind.Delegate, semanticInfo.ConvertedType.TypeKind); 5694Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.TypeKind); 5704Assert.Equal(TypeKind.Error, lambdaSym.Parameters[0].Type.TypeKind); 5728Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind); 5730Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.TypeKind); 5761Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind); 5763Assert.Equal(TypeKind.Struct, semanticInfo.ConvertedType.TypeKind); 5795Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind); 5797Assert.Equal(TypeKind.Struct, semanticInfo.ConvertedType.TypeKind); 5828Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind); 5830Assert.Equal(TypeKind.Struct, semanticInfo.ConvertedType.TypeKind); 5862Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind); 5864Assert.Equal(TypeKind.Struct, semanticInfo.ConvertedType.TypeKind); 5896Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind); 5898Assert.Equal(TypeKind.Struct, semanticInfo.ConvertedType.TypeKind); 5931Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind); 5933Assert.Equal(TypeKind.Struct, semanticInfo.ConvertedType.TypeKind); 5964Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind); 5966Assert.Equal(TypeKind.Struct, semanticInfo.ConvertedType.TypeKind); 5998Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind); 6000Assert.Equal(TypeKind.Struct, semanticInfo.ConvertedType.TypeKind); 6031Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind); 6033Assert.Equal(TypeKind.Struct, semanticInfo.ConvertedType.TypeKind); 6059Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind); 6061Assert.Equal(TypeKind.Struct, semanticInfo.ConvertedType.TypeKind); 6091Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind); 6093Assert.Equal(TypeKind.Struct, semanticInfo.ConvertedType.TypeKind); 6117Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind); 6119Assert.Equal(TypeKind.Struct, semanticInfo.ConvertedType.TypeKind); 6144Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind); 6146Assert.Equal(TypeKind.Struct, semanticInfo.ConvertedType.TypeKind); 6177Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind); 6179Assert.Equal(TypeKind.Struct, semanticInfo.ConvertedType.TypeKind); 6329Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind); 6331Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.TypeKind); 6344Assert.Equal(TypeKind.Error, param.Type.TypeKind); 6365Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind); 6367Assert.Equal(TypeKind.Struct, semanticInfo.ConvertedType.TypeKind); 6437Assert.Equal(TypeKind.Delegate, 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); 6806Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind); 6808Assert.Equal(TypeKind.Struct, semanticInfo.ConvertedType.TypeKind); 6875Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind); 6877Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.TypeKind); 6920Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind); 6922Assert.Equal(TypeKind.Struct, semanticInfo.ConvertedType.TypeKind); 6965Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind); 6967Assert.Equal(TypeKind.Struct, semanticInfo.ConvertedType.TypeKind); 7078Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind); 7080Assert.Equal(TypeKind.Struct, 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); 7169Assert.Equal(TypeKind.Delegate, semanticInfo.Type.TypeKind); 7171Assert.Equal(TypeKind.Delegate, semanticInfo.ConvertedType.TypeKind); 7201Assert.Equal(TypeKind.Error, semanticInfo.Type.TypeKind); 7203Assert.Equal(TypeKind.Error, semanticInfo.ConvertedType.TypeKind); 7233Assert.Equal(TypeKind.Delegate, semanticInfo.Type.TypeKind); 7235Assert.Equal(TypeKind.Delegate, semanticInfo.ConvertedType.TypeKind); 7288Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind); 7290Assert.Equal(TypeKind.Struct, semanticInfo.ConvertedType.TypeKind); 7316Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind); 7318Assert.Equal(TypeKind.Struct, semanticInfo.ConvertedType.TypeKind); 7343Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind); 7345Assert.Equal(TypeKind.Struct, semanticInfo.ConvertedType.TypeKind); 7378Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind); 7380Assert.Equal(TypeKind.Struct, semanticInfo.ConvertedType.TypeKind); 7399Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind); 7401Assert.Equal(TypeKind.Struct, semanticInfo.ConvertedType.TypeKind); 7482Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind); 7484Assert.Equal(TypeKind.Struct, semanticInfo.ConvertedType.TypeKind); 7526Assert.Equal(TypeKind.Enum, semanticInfo.Type.TypeKind); 7698Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind); 7700Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.TypeKind); 7727Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind); 7729Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.TypeKind); 7851Assert.Equal(TypeKind.Delegate, semanticInfo.Type.TypeKind); 7853Assert.Equal(TypeKind.Delegate, semanticInfo.ConvertedType.TypeKind); 7917Assert.Equal(TypeKind.Delegate, semanticInfo.Type.TypeKind); 7919Assert.Equal(TypeKind.Delegate, semanticInfo.ConvertedType.TypeKind); 7983Assert.Equal(TypeKind.Delegate, semanticInfo.Type.TypeKind); 7985Assert.Equal(TypeKind.Delegate, semanticInfo.ConvertedType.TypeKind); 8303Assert.Equal(TypeKind.Error, semanticInfo.Type.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); 8514Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind); 8516Assert.Equal(TypeKind.Struct, 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); 8646Assert.Equal(TypeKind.Error, semanticInfo.ConvertedType.TypeKind); 8686Assert.Equal(TypeKind.Error, semanticInfo.ConvertedType.TypeKind); 8726Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind); 8728Assert.Equal(TypeKind.Struct, semanticInfo.ConvertedType.TypeKind); 8770Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.TypeKind); 8809Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind); 8811Assert.Equal(TypeKind.Struct, semanticInfo.ConvertedType.TypeKind); 8851Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind); 8853Assert.Equal(TypeKind.Struct, semanticInfo.ConvertedType.TypeKind); 8893Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind); 8895Assert.Equal(TypeKind.Struct, semanticInfo.ConvertedType.TypeKind); 8933Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind); 8935Assert.Equal(TypeKind.Struct, semanticInfo.ConvertedType.TypeKind); 9064Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.TypeKind); 9123Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind); 9125Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.TypeKind); 9358Assert.Equal(TypeKind.Error, semanticInfo.Type.TypeKind); 9360Assert.Equal(TypeKind.Error, semanticInfo.ConvertedType.TypeKind); 9417Assert.Equal(TypeKind.Error, semanticInfo.Type.TypeKind); 9419Assert.Equal(TypeKind.Error, semanticInfo.ConvertedType.TypeKind); 9456Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind); 9458Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.TypeKind); 9614Assert.Equal(TypeKind.Error, semanticInfo.Type.TypeKind); 9616Assert.Equal(TypeKind.Error, 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); 9780Assert.Equal(TypeKind.Error, semanticInfo.Type.TypeKind); 9782Assert.Equal(TypeKind.Error, semanticInfo.ConvertedType.TypeKind); 9831Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind); 9833Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.TypeKind); 9886Assert.Equal(TypeKind.Error, semanticInfo.Type.TypeKind); 9888Assert.Equal(TypeKind.Error, 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); 10317Assert.Equal(TypeKind.Error, semanticInfo.Type.TypeKind); 10319Assert.Equal(TypeKind.Error, semanticInfo.ConvertedType.TypeKind); 10351Assert.Equal(TypeKind.Error, semanticInfo.Type.TypeKind); 10353Assert.Equal(TypeKind.Error, semanticInfo.ConvertedType.TypeKind); 10385Assert.Equal(TypeKind.Error, semanticInfo.Type.TypeKind); 10387Assert.Equal(TypeKind.Error, semanticInfo.ConvertedType.TypeKind); 10466Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind); 10468Assert.Equal(TypeKind.Struct, semanticInfo.ConvertedType.TypeKind); 10494Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind); 10523Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind); 10558Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind); 10560Assert.Equal(TypeKind.Struct, semanticInfo.ConvertedType.TypeKind); 10600Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind); 10602Assert.Equal(TypeKind.Struct, semanticInfo.ConvertedType.TypeKind); 10637Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind); 10639Assert.Equal(TypeKind.Struct, semanticInfo.ConvertedType.TypeKind); 10674Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind); 10676Assert.Equal(TypeKind.Struct, semanticInfo.ConvertedType.TypeKind); 10713Assert.Equal(TypeKind.Delegate, semanticInfo.Type.TypeKind); 10715Assert.Equal(TypeKind.Delegate, semanticInfo.ConvertedType.TypeKind); 10756Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind); 10758Assert.Equal(TypeKind.Struct, semanticInfo.ConvertedType.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); 10904Assert.Equal(TypeKind.Array, semanticInfo.Type.TypeKind); 10906Assert.Equal(TypeKind.Array, semanticInfo.ConvertedType.TypeKind); 11011Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind); 11013Assert.Equal(TypeKind.Struct, semanticInfo.ConvertedType.TypeKind); 11042Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind); 11044Assert.Equal(TypeKind.Struct, semanticInfo.ConvertedType.TypeKind); 11075Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind); 11077Assert.Equal(TypeKind.Struct, semanticInfo.ConvertedType.TypeKind); 11108Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind); 11110Assert.Equal(TypeKind.Struct, 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); 11266Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind); 11268Assert.Equal(TypeKind.Struct, semanticInfo.ConvertedType.TypeKind); 11303Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind); 11305Assert.Equal(TypeKind.Struct, semanticInfo.ConvertedType.TypeKind); 11340Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind); 11342Assert.Equal(TypeKind.Struct, semanticInfo.ConvertedType.TypeKind); 11380Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind); 11382Assert.Equal(TypeKind.Struct, semanticInfo.ConvertedType.TypeKind); 11427Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind); 11429Assert.Equal(TypeKind.Struct, semanticInfo.ConvertedType.TypeKind); 11460Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind); 11462Assert.Equal(TypeKind.Struct, semanticInfo.ConvertedType.TypeKind); 11497Assert.Equal(TypeKind.TypeParameter, semanticInfo.Type.TypeKind); 11499Assert.Equal(TypeKind.TypeParameter, semanticInfo.ConvertedType.TypeKind); 11572Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind); 11574Assert.Equal(TypeKind.Struct, semanticInfo.ConvertedType.TypeKind); 11710Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind); 11712Assert.Equal(TypeKind.Struct, semanticInfo.ConvertedType.TypeKind); 11795Assert.Equal(TypeKind.Array, semanticInfo.Type.TypeKind); 11797Assert.Equal(TypeKind.Array, semanticInfo.ConvertedType.TypeKind); 11831Assert.Equal(TypeKind.Array, semanticInfo.Type.TypeKind); 11833Assert.Equal(TypeKind.Array, semanticInfo.ConvertedType.TypeKind); 11866Assert.Equal(TypeKind.Array, semanticInfo.Type.TypeKind); 11868Assert.Equal(TypeKind.Array, semanticInfo.ConvertedType.TypeKind); 11901Assert.Equal(TypeKind.Array, semanticInfo.Type.TypeKind); 11903Assert.Equal(TypeKind.Array, semanticInfo.ConvertedType.TypeKind); 11937Assert.Equal(TypeKind.Array, semanticInfo.Type.TypeKind); 11939Assert.Equal(TypeKind.Array, semanticInfo.ConvertedType.TypeKind); 11973Assert.Equal(TypeKind.Array, semanticInfo.Type.TypeKind); 11975Assert.Equal(TypeKind.Array, semanticInfo.ConvertedType.TypeKind); 12008Assert.Equal(TypeKind.Array, semanticInfo.Type.TypeKind); 12010Assert.Equal(TypeKind.Error, semanticInfo.ConvertedType.TypeKind); 12043Assert.Equal(TypeKind.Array, semanticInfo.Type.TypeKind); 12045Assert.Equal(TypeKind.Error, semanticInfo.ConvertedType.TypeKind); 12079Assert.Equal(TypeKind.Array, semanticInfo.Type.TypeKind); 12081Assert.Equal(TypeKind.Error, semanticInfo.ConvertedType.TypeKind); 12186Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind); 12188Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.TypeKind); 12256Assert.Equal(TypeKind.Interface, semanticInfo.Type.TypeKind); 12258Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.TypeKind); 12322Assert.Equal(TypeKind.TypeParameter, semanticInfo.Type.TypeKind); 12324Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.TypeKind); 12426Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind); 12428Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.TypeKind); 12484Assert.Equal(TypeKind.Dynamic, semanticInfo.Type.TypeKind); 12486Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.TypeKind); 12526Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind); 12528Assert.Equal(TypeKind.Struct, semanticInfo.ConvertedType.TypeKind); 12572Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind); 12610Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind); 12612Assert.Equal(TypeKind.Struct, semanticInfo.ConvertedType.TypeKind); 12644Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind); 12646Assert.Equal(TypeKind.Struct, semanticInfo.ConvertedType.TypeKind); 12676Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind); 12678Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.TypeKind); 12739Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind); 12741Assert.Equal(TypeKind.Struct, semanticInfo.ConvertedType.TypeKind); 12771Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind); 12773Assert.Equal(TypeKind.Struct, semanticInfo.ConvertedType.TypeKind); 12803Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind); 12805Assert.Equal(TypeKind.Struct, semanticInfo.ConvertedType.TypeKind); 12846Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind); 12848Assert.Equal(TypeKind.Struct, semanticInfo.ConvertedType.TypeKind); 12922Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind); 12924Assert.Equal(TypeKind.Struct, semanticInfo.ConvertedType.TypeKind); 12958Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind); 12960Assert.Equal(TypeKind.Struct, semanticInfo.ConvertedType.TypeKind); 12996Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind); 12998Assert.Equal(TypeKind.Struct, semanticInfo.ConvertedType.TypeKind); 13037Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind); 13039Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.TypeKind); 13070Assert.Equal(TypeKind.Error, semanticInfo.ConvertedType.TypeKind); 13098Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind); 13100Assert.Equal(TypeKind.Struct, 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); 13263Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind); 13265Assert.Equal(TypeKind.Struct, semanticInfo.ConvertedType.TypeKind); 13323Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind); 13325Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.TypeKind); 13442Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind); 13444Assert.Equal(TypeKind.Struct, semanticInfo.ConvertedType.TypeKind); 13503Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind); 13505Assert.Equal(TypeKind.Struct, semanticInfo.ConvertedType.TypeKind); 13804Assert.Equal(TypeKind.Error, semanticInfo.Type.TypeKind); 13806Assert.Equal(TypeKind.Error, semanticInfo.ConvertedType.TypeKind); 13839Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind); 13841Assert.Equal(TypeKind.Struct, 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); 13978Assert.Equal(TypeKind.Error, semanticInfo.Type.TypeKind); 13980Assert.Equal(TypeKind.Error, semanticInfo.ConvertedType.TypeKind); 14005Assert.Equal(TypeKind.Error, semanticInfo.Type.TypeKind); 14007Assert.Equal(TypeKind.Error, semanticInfo.ConvertedType.TypeKind); 14081Assert.Equal(TypeKind.Interface, semanticInfo.Type.TypeKind); 14083Assert.Equal(TypeKind.Interface, semanticInfo.ConvertedType.TypeKind); 14119Assert.Equal(TypeKind.Interface, semanticInfo.Type.TypeKind); 14121Assert.Equal(TypeKind.Interface, semanticInfo.ConvertedType.TypeKind); 14159Assert.Equal(TypeKind.Array, semanticInfo.Type.TypeKind); 14161Assert.Equal(TypeKind.Array, semanticInfo.ConvertedType.TypeKind); 14245Assert.Equal(TypeKind.Interface, semanticInfo.Type.TypeKind); 14247Assert.Equal(TypeKind.Interface, semanticInfo.ConvertedType.TypeKind); 14337Assert.Equal(TypeKind.Interface, semanticInfo.Type.TypeKind); 14339Assert.Equal(TypeKind.Interface, semanticInfo.ConvertedType.TypeKind); 14380Assert.Equal(TypeKind.Interface, semanticInfo.Type.TypeKind); 14382Assert.Equal(TypeKind.Interface, semanticInfo.ConvertedType.TypeKind); 14541Assert.Equal(TypeKind.Interface, semanticInfo.Type.TypeKind); 14543Assert.Equal(TypeKind.Interface, semanticInfo.ConvertedType.TypeKind); 14626Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind); 14628Assert.Equal(TypeKind.Struct, semanticInfo.ConvertedType.TypeKind); 15084Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind); 15086Assert.Equal(TypeKind.Struct, semanticInfo.ConvertedType.TypeKind); 15152Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind); 15154Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.TypeKind); 15183Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind); 15185Assert.Equal(TypeKind.Struct, semanticInfo.ConvertedType.TypeKind); 15214Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind); 15216Assert.Equal(TypeKind.Error, semanticInfo.ConvertedType.TypeKind); 15245Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind); 15247Assert.Equal(TypeKind.Struct, semanticInfo.ConvertedType.TypeKind); 15276Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind); 15278Assert.Equal(TypeKind.Struct, semanticInfo.ConvertedType.TypeKind); 15338Assert.Equal(TypeKind.Dynamic, semanticInfo.Type.TypeKind); 15340Assert.Equal(TypeKind.Dynamic, semanticInfo.ConvertedType.TypeKind); 15405Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind); 15407Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.TypeKind);
DocumentationComments\CrefTests.cs (1)
6540Assert.Equal(TypeKind.Error, ((INamedTypeSymbol)actualSymbol1).TypeArguments.Single().TypeKind);
Symbols\AccessorOverriddenOrHiddenMembersTests.cs (1)
1025Assert.Equal(TypeKind.Class, classDisposable.TypeKind);
Symbols\TypeTests.cs (2)
1705Assert.Equal(TypeKind.Enum, memType.GetNullableUnderlyingType().TypeKind); 1773Assert.Equal(TypeKind.Interface, ((ITypeSymbol)tinfo.Type).TypeKind);
Microsoft.CodeAnalysis.CSharp.Test.Utilities (3)
Extensions.cs (3)
673return type.TypeKind == TypeKind.Dynamic; 678return type.TypeKind == TypeKind.Delegate; 795return type.TypeKind == TypeKind.Enum ? ((INamedTypeSymbol)type).EnumUnderlyingType : type;
Microsoft.CodeAnalysis.CSharp.Workspaces (39)
CastSimplifier.cs (8)
245if (originalDelegateCreationOperation.Type?.TypeKind != TypeKind.Delegate) 262if (rewrittenDelegateCreationOperation.Type?.TypeKind != TypeKind.Delegate) 297if (originalConvertedType is null || originalConvertedType.TypeKind == TypeKind.Error) 330if (rewrittenConvertedType is null || rewrittenConvertedType.TypeKind == TypeKind.Error || !rewrittenConversion.Exists) 479originalConvertedType.IsReferenceType && rewrittenConvertedType.TypeKind == TypeKind.Dynamic) 802if (!original.IsReferenceType || original.TypeKind == TypeKind.Interface) 1097if (originalMemberSymbol.ContainingType.TypeKind == TypeKind.Interface) 1137rewrittenType.TypeKind == TypeKind.Array ||
Classification\SyntaxClassification\SyntaxTokenClassifier.cs (1)
23private static readonly Func<ITypeSymbol, bool> s_shouldInclude = t => t.TypeKind != TypeKind.Error && t.GetArity() > 0;
CSharpTypeInferenceService.TypeInferrer.cs (3)
447if (type.TypeKind == TypeKind.Delegate) 1037if (parentTypes.Any(static parentType => parentType.InferredType.SpecialType == SpecialType.System_String || parentType.InferredType.TypeKind == TypeKind.Delegate)) 1039return parentTypes.Where(parentType => parentType.InferredType.SpecialType == SpecialType.System_String || parentType.InferredType.TypeKind == TypeKind.Delegate);
CSharpUseImplicitTypeHelper.cs (1)
294if (declaredType != null && declaredType.TypeKind == TypeKind.Dynamic)
ExpressionGenerator.cs (1)
61if (type is INamedTypeSymbol { TypeKind: TypeKind.Enum } enumType)
ITypeParameterSymbolExtensions.cs (3)
58typeParameter.ConstraintTypes.Where(t => t.TypeKind == TypeKind.Class).Concat( 59typeParameter.ConstraintTypes.Where(t => t.TypeKind == TypeKind.Interface).Concat( 60typeParameter.ConstraintTypes.Where(t => t.TypeKind is not TypeKind.Class and not TypeKind.Interface)));
ITypeSymbolExtensions.ExpressionSyntaxGeneratorVisitor.cs (2)
50if (symbol.ContainingType.TypeKind == TypeKind.Submission) 64if (symbol.TypeKind != TypeKind.Error)
ITypeSymbolExtensions.TypeSyntaxGeneratorVisitor.cs (4)
190if (symbol.TypeKind == TypeKind.Error && symbol.Name == "var") 235if (innerType.TypeKind != TypeKind.Pointer) 270if (symbol.ContainingType.TypeKind != TypeKind.Submission) 289if (symbol.TypeKind != TypeKind.Error)
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs\SyntaxTreeExtensions.cs (2)
3049return ((INamedTypeSymbol)symbol).TypeKind == TypeKind.Enum; 3052return target.IsType && ((ITypeSymbol)target).TypeKind == TypeKind.Enum;
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ITypeSymbolExtensions.cs\ITypeSymbolExtensions.cs (1)
153if (typeSymbol.TypeKind is TypeKind.Class or TypeKind.Struct)
NamedTypeGenerator.cs (8)
91if (info.Context.GenerateMembers && namedType.TypeKind != TypeKind.Delegate) 183if (namedType.TypeKind == TypeKind.Enum) 187else if (namedType.TypeKind == TypeKind.Delegate) 195var isRecordClass = namedType.TypeKind is TypeKind.Class; 206var kind = namedType.TypeKind == TypeKind.Struct ? SyntaxKind.StructDeclaration : 207namedType.TypeKind == TypeKind.Interface ? SyntaxKind.InterfaceDeclaration : SyntaxKind.ClassDeclaration; 288if (namedType.TypeKind == TypeKind.Class) 324if (namedType.TypeKind == TypeKind.Class && namedType.BaseType != null && namedType.BaseType.SpecialType != Microsoft.CodeAnalysis.SpecialType.System_Object)
Rename\CSharpRenameRewriterLanguageService.cs (2)
805if (renamedSymbol is INamedTypeSymbol { TypeKind: not TypeKind.Enum } namedType) 810if (renamedSymbol.ContainingSymbol is INamedTypeSymbol { TypeKind: not TypeKind.Enum } containingNamedType &&
SemanticModelExtensions.cs (2)
212if (containingType != null && containingType.TypeKind == TypeKind.Interface) 440if (parameter.Type.OriginalDefinition.TypeKind != TypeKind.TypeParameter)
Simplification\CSharpSimplificationService.Expander.cs (1)
800if (typeinfo.Type != null && typeinfo.Type.TypeKind == TypeKind.Dynamic)
Microsoft.CodeAnalysis.EditorFeatures.Cocoa (4)
NavigationCommandHandlers\FindDerivedSymbolsCommandHandler.cs (2)
64if (symbol.ContainingType is INamedTypeSymbol namedTypeSymbol && symbol.ContainingType.TypeKind == TypeKind.Interface) 68else if (symbol is INamedTypeSymbol namedTypeSymbol2 && namedTypeSymbol2.TypeKind == TypeKind.Interface)
NavigationCommandHandlers\FindImplementingMembersCommandHandler.cs (1)
87if (interfaceSymbol == null || interfaceSymbol.TypeKind != TypeKind.Interface)
Snippets\SnippetFunctions\AbstractSnippetFunctionGenerateSwitchCases.cs (1)
43if (!TryGetEnumTypeSymbol(cancellationToken, out var typeSymbol) || typeSymbol.TypeKind != TypeKind.Enum)
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (3)
SymbolFinder\DependentTypeFinderTests.cs (2)
580var delegates = transitiveImpls.Where(i => i.TypeKind == TypeKind.Delegate); 610var enums = transitiveImpls.Where(i => i.TypeKind == TypeKind.Enum);
SymbolFinder\FindSymbolAtPositionTests.cs (1)
63Assert.Equal(TypeKind.Enum, fieldSymbol.ContainingType.TypeKind);
Microsoft.CodeAnalysis.Features (88)
AbstractRemoveUnusedParametersAndValuesDiagnosticAnalyzer.SymbolStartAnalyzer.BlockAnalyzer.cs (1)
150if (value.Type.TypeKind == TypeKind.Dynamic)
AbstractUnsealClassCodeFixProvider.cs (1)
40type.TypeKind == TypeKind.Class && type.IsSealed && !type.IsStatic)
AbstractUseAutoPropertyAnalyzer.cs (1)
89if (namedType.TypeKind is not TypeKind.Class and not TypeKind.Struct and not TypeKind.Module)
AbstractUseConditionalExpressionCodeFixProvider.cs (2)
182conversion.Type.TypeKind != TypeKind.Error) 186if (conversion.Operand.Type == null || conversion.Operand.Type.TypeKind != TypeKind.Error)
AddConstructorParametersFromMembers\AddConstructorParametersFromMembersCodeRefactoringProvider.State.cs (1)
56ContainingType.TypeKind == TypeKind.Interface ||
AddDebuggerDisplay\AbstractAddDebuggerDisplayCodeRefactoringProvider.cs (1)
106=> typeSymbol.TypeKind is TypeKind.Class or TypeKind.Struct;
Completion\Providers\AbstractObjectCreationCompletionProvider.cs (3)
85if (type.TypeKind == TypeKind.Interface || 86type.TypeKind == TypeKind.Pointer || 87type.TypeKind == TypeKind.Dynamic ||
Completion\Providers\AbstractPartialMethodCompletionProvider.cs (1)
91if (enclosingSymbol.TypeKind is not (TypeKind.Struct or TypeKind.Class))
Completion\Providers\AbstractPartialTypeCompletionProvider.cs (2)
97.Where(symbol => declaredSymbol.TypeKind == symbol.TypeKind &&
Completion\Providers\AbstractRecommendationServiceBasedCompletionProvider.cs (1)
88if (namedType.TypeKind == TypeKind.Interface)
Completion\Providers\ImportCompletionProvider\AbstractTypeImportCompletionProvider.cs (1)
85if (symbol is IAliasSymbol { Target: ITypeSymbol { TypeKind: not TypeKind.Error } target })
ConvertCast\AbstractConvertCastCodeRefactoringProvider.cs (1)
52if (type is { TypeKind: TypeKind.Error })
ConvertForEachToFor\AbstractConvertForEachToForCodeRefactoringProvider.cs (1)
279if (collectionType.TypeKind == TypeKind.Interface && knownCollectionInterfaces.Contains(collectionType.OriginalDefinition))
EditAndContinue\AbstractEditAndContinueAnalyzer.cs (9)
345=> symbol.TypeKind switch 356=> symbol.IsConst ? ((symbol.ContainingType.TypeKind == TypeKind.Enum) ? FeaturesResources.enum_value : FeaturesResources.const_field) : 3447if (symbol.ContainingType is not { TypeKind: TypeKind.Class or TypeKind.Struct }) 3894if (oldType.TypeKind != newType.TypeKind || 4297if (newContainingSymbol.ContainingSymbol is INamedTypeSymbol { TypeKind: TypeKind.Delegate } newContainingDelegateType) 4711var intoStruct = symbol.ContainingType.TypeKind == TypeKind.Struct; 4737if (type.TypeKind == TypeKind.Struct) 4742if (type.TypeKind != TypeKind.Class)
ExtractInterface\AbstractExtractInterfaceService.cs (2)
272var candidateInterfaceName = type.TypeKind == TypeKind.Interface ? type.Name : "I" + type.Name; 336if (typeToExtractFrom.TypeKind == TypeKind.Interface)
ExtractMethod\MethodExtractor.Analyzer.cs (1)
108&& thisParameterBeingRead.Type is { TypeKind: TypeKind.Struct, IsReadOnly: false };
FindUsages\AbstractFindUsagesService_FindImplementations.cs (1)
193else if (symbol is INamedTypeSymbol { TypeKind: TypeKind.Class } namedType)
GenerateConstructorFromMembers\AbstractGenerateConstructorFromMembersCodeRefactoringProvider.cs (1)
200if (containingType?.TypeKind is not TypeKind.Class and not TypeKind.Struct)
GenerateConstructorFromMembers\AbstractGenerateConstructorFromMembersCodeRefactoringProvider.State.cs (1)
70if (ContainingType == null || ContainingType.TypeKind == TypeKind.Interface)
GenerateDefaultConstructors\AbstractGenerateDefaultConstructorsService.State.cs (2)
58baseType.TypeKind == TypeKind.Error) 109if (classType.TypeKind == TypeKind.Struct)
GenerateEqualsAndGetHashCodeFromMembers\GenerateEqualsAndGetHashCodeFromMembersCodeRefactoringProvider.cs (3)
94if (containingType?.TypeKind is not TypeKind.Class and not TypeKind.Struct) 181if (info.ContainingType != null && info.ContainingType.TypeKind != TypeKind.Interface) 298if (generateEquals && containingType.TypeKind == TypeKind.Struct)
GenerateMember\AbstractGenerateMemberService.cs (2)
43if (!typeKinds.Contains(typeToGenerateIn.TypeKind)) 46if (typeToGenerateIn.TypeKind == TypeKind.Interface && isStatic)
GenerateMember\GenerateConstructor\AbstractGenerateConstructorService.State.cs (1)
400return TypeToGenerateIn?.TypeKind is (TypeKind?)TypeKind.Class or (TypeKind?)TypeKind.Struct;
GenerateMember\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();
GenerateMember\GenerateParameterizedMember\AbstractGenerateParameterizedMemberService.CodeAction.cs (2)
81generateMethodBodies: _state.TypeToGenerateIn.TypeKind != TypeKind.Interface), 98generateMethodBodies: _state.TypeToGenerateIn.TypeKind != TypeKind.Interface),
GenerateMember\GenerateParameterizedMember\AbstractGenerateParameterizedMemberService.cs (1)
51state.TypeToGenerateIn.TypeKind != TypeKind.Interface &&
GenerateMember\GenerateParameterizedMember\AbstractGenerateParameterizedMemberService.SignatureInfo.cs (2)
198return isAbstract || State.TypeToGenerateIn.TypeKind == TypeKind.Interface || throwStatement == null 230if (State.TypeToGenerateIn.TypeKind != TypeKind.Interface)
GenerateMember\GenerateVariable\AbstractGenerateVariableService.CodeAction.cs (2)
119return _state.TypeToGenerateIn.TypeKind != TypeKind.Interface && _refKind != RefKind.None 126if (state.TypeToGenerateIn.TypeKind == TypeKind.Interface)
GenerateMember\GenerateVariable\AbstractGenerateVariableService.cs (3)
106if (state.TypeToGenerateIn.TypeKind == TypeKind.Interface && state.IsStatic) 116var isOnlyReadAndIsInInterface = state.TypeToGenerateIn.TypeKind == TypeKind.Interface && !state.IsWrittenTo; 150if (state.TypeToGenerateIn.TypeKind != TypeKind.Interface)
GenerateMember\GenerateVariable\AbstractGenerateVariableService.State.cs (1)
90if (this.TypeToGenerateIn.TypeKind == TypeKind.Interface)
GenerateType\AbstractGenerateTypeService.GenerateNamedType.cs (3)
139if (_state.BaseTypeOrInterfaceOpt.TypeKind == TypeKind.Interface || argumentList.Count == 0) 276if (_state.BaseTypeOrInterfaceOpt == null || _state.BaseTypeOrInterfaceOpt.TypeKind == TypeKind.Interface) 286if (_state.BaseTypeOrInterfaceOpt != null && _state.BaseTypeOrInterfaceOpt.TypeKind == TypeKind.Interface)
GenerateType\AbstractGenerateTypeService.State.cs (3)
245if (baseType.TypeKind is not TypeKind.Class and not TypeKind.Interface) 275(BaseTypeOrInterfaceOpt == null || BaseTypeOrInterfaceOpt.TypeKind == TypeKind.Interface)) 293if (TypeToGenerateInOpt.TypeKind is not TypeKind.Class and
GoToBase\FindBaseHelpers.cs (3)
21(namedTypeSymbol.TypeKind == TypeKind.Class || 22namedTypeSymbol.TypeKind == TypeKind.Interface || 23namedTypeSymbol.TypeKind == TypeKind.Struct))
ImplementInterface\AbstractImplementInterfaceService.CodeAction.cs (1)
385var condition1 = typeParameter.ConstraintTypes.Count(t => t.TypeKind == TypeKind.Class) >= 2;
ImplementInterface\AbstractImplementInterfaceService.DisposePatternCodeAction.cs (2)
43if (idisposable?.TypeKind == TypeKind.Interface) 70if (state.ClassOrStructType.TypeKind != TypeKind.Class)
InheritanceMargin\AbstractInheritanceMarginService.cs (1)
85return !symbol.IsStatic && namedType.TypeKind is TypeKind.Interface or TypeKind.Class or TypeKind.Struct;
InheritanceMargin\AbstractInheritanceMarginService_Helpers.cs (2)
303if (memberSymbol.TypeKind == TypeKind.Interface) 316Debug.Assert(memberSymbol.TypeKind is TypeKind.Class or TypeKind.Struct);
InitializeParameter\AbstractInitializeParameterCodeRefactoringProvider.cs (1)
92methodSymbol.ContainingType.TypeKind == TypeKind.Interface)
IntroduceVariable\AbstractIntroduceVariableService.State.cs (1)
97if (containingType == null || containingType.TypeKind == TypeKind.Interface)
LanguageServices\SymbolDisplayService\AbstractSymbolDisplayService.AbstractSymbolDescriptionBuilder.cs (2)
522if (symbol.TypeKind == TypeKind.Delegate) 582if (symbol.ContainingType != null && symbol.ContainingType.TypeKind == TypeKind.Enum)
MetadataAsSource\AbstractMetadataAsSourceService.WrappedNamedTypeSymbol.cs (1)
68public TypeKind TypeKind => _symbol.TypeKind;
MoveStaticMembers\MoveStaticMembersWithDialogCodeAction.cs (1)
154return oldType.TypeKind;
PopulateSwitchExpressionHelpers.cs (1)
28if (switchExpressionType?.TypeKind == TypeKind.Enum)
PopulateSwitchStatementHelpers.cs (1)
57if (switchExpressionType?.TypeKind == TypeKind.Enum)
PullMemberUp\MemberAndDestinationValidator.cs (1)
17if (destination.TypeKind is not TypeKind.Interface and not TypeKind.Class)
PullMemberUp\MembersPuller.cs (3)
69return pullMembersUpOptions.Destination.TypeKind switch 133if (analysisResult.Member.ContainingType.TypeKind == TypeKind.Interface) 504if (destination.TypeKind == TypeKind.Interface)
PullMemberUp\PullMembersUpOptionsBuilder.cs (1)
20if (destination.TypeKind == TypeKind.Interface)
ReplacePropertyWithMethods\ReplacePropertyWithMethodsCodeRefactoringProvider.cs (1)
381if (property.ContainingType.TypeKind == TypeKind.Interface)
RQName\RQNodeBuilder.cs (3)
289else if (symbol.TypeKind == TypeKind.TypeParameter) 293else if (symbol.TypeKind == TypeKind.Unknown) 297else if (symbol.TypeKind == TypeKind.Dynamic)
Shared\Extensions\ISymbolExtensions_2.cs (2)
40if (containingType != null && containingType.TypeKind == TypeKind.Enum) 58switch (((INamedTypeSymbol)symbol).TypeKind)
Snippets\SnippetFunctionService.cs (1)
59if (typeSymbol?.TypeKind != TypeKind.Enum)
Microsoft.CodeAnalysis.Test.Utilities (7)
Diagnostics\CouldHaveMoreSpecificTypeAnalyzer.cs (6)
205if (derivedType.TypeKind == TypeKind.Class || derivedType.TypeKind == TypeKind.Structure) 211else if (derivedType.TypeKind == TypeKind.Interface) 226return baseType.TypeKind == TypeKind.Class && baseType.SpecialType == SpecialType.System_Object; 261TypeKind targetTypeKind = targetType.TypeKind; 262TypeKind sourceTypeKind = sourceType.TypeKind;
Diagnostics\EmptyArrayAnalyzer.cs (1)
76&& elementType?.TypeKind != TypeKind.Pointer)
Microsoft.CodeAnalysis.VisualBasic (12)
SymbolDisplay\SymbolDisplayVisitor.Members.vb (3)
29If symbol.ContainingType.TypeKind = TypeKind.Enum Then 616(containingType.TypeKind <> TypeKind.Interface AndAlso Not IsEnumMember(symbol))) Then 620(containingType Is Nothing OrElse containingType.TypeKind <> TypeKind.Module) AndAlso
SymbolDisplay\SymbolDisplayVisitor.Types.vb (5)
199symbol.TypeKind = TypeKind.Delegate AndAlso 253Select Case symbol.TypeKind 270Throw ExceptionUtilities.UnexpectedValue(symbol.TypeKind) 323Select Case symbol.TypeKind 438Dim keyword = GetTypeKindKeyword(symbol.TypeKind)
SymbolDisplay\SymbolDisplayVisitor.vb (2)
318(containingType.TypeKind <> TypeKind.Interface AndAlso Not IsEnumMember(symbol))) Then 365symbol.ContainingType.TypeKind = TypeKind.Enum AndAlso
SymbolDisplay\SymbolDisplayVisitor_Minimal.vb (1)
107If symbol.TypeKind <> TypeKind.Error Then
Symbols\TypeSymbol.vb (1)
570Private ReadOnly Property ITypeSymbol_TypeKind As TypeKind Implements ITypeSymbol.TypeKind, ITypeSymbolInternal.TypeKind
Microsoft.CodeAnalysis.VisualBasic.CodeStyle (1)
SemanticModelExtensions.vb (1)
256If parameter.Type.TypeKind <> TypeKind.TypeParameter Then
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (13)
ExpressionSyntaxGeneratorVisitor.vb (2)
40If symbol.ContainingType.TypeKind = TypeKind.Submission Then 48If symbol.TypeKind <> TypeKind.[Error] Then
IMethodSymbolExtensions.vb (1)
32If parameter.Type.TypeKind = TypeKind.Delegate Then
SyntaxTreeExtensions.vb (3)
328objectCreationType.TypeKind = TypeKind.Delegate Then 800Return DirectCast(symbol, INamedTypeSymbol).TypeKind = TypeKind.Enum 803Return target.IsType AndAlso DirectCast(target, ITypeSymbol).TypeKind = TypeKind.Enum
TypeSyntaxGeneratorVisitor.vb (2)
160If symbol.ContainingType.TypeKind = TypeKind.Submission Then 167If _addGlobal AndAlso symbol.TypeKind <> TypeKind.[Error] Then
VisualBasicSyntaxContextExtensions.vb (1)
125objectCreationType.TypeKind = TypeKind.Delegate Then
VisualBasicTypeInferenceService.TypeInferrer.vb (4)
30If info.Type IsNot Nothing AndAlso info.Type.TypeKind <> TypeKind.Error Then 34If info.ConvertedType IsNot Nothing AndAlso info.ConvertedType.TypeKind <> TypeKind.Error Then 296If namedType.TypeKind = TypeKind.Delegate Then 712Return lambdaTypes.Where(Function(t) t.InferredType.TypeKind = TypeKind.Delegate).SelectMany(Function(t) t.InferredType.GetMembers(WellKnownMemberNames.DelegateInvokeName).OfType(Of IMethodSymbol)().Select(Function(m) New TypeInferenceInfo(m.ReturnType)))
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (1)
Emit\CompilationEmitTests.vb (1)
2039Assert.Equal(m.Single().TypeKind, TypeKind.Module)
Microsoft.CodeAnalysis.VisualBasic.Features (29)
ChangeSignature\VisualBasicChangeSignatureService.vb (1)
131If typeSymbol IsNot Nothing AndAlso typeSymbol.IsKind(SymbolKind.NamedType) AndAlso DirectCast(typeSymbol, ITypeSymbol).TypeKind = TypeKind.Delegate Then
CodeFixes\GenerateEvent\GenerateEventCodeFixProvider.vb (7)
181If delegateSymbol.Arity <> 0 AndAlso delegateSymbol.TypeArguments.Any(Function(n) n.TypeKind = TypeKind.TypeParameter) Then 190Not (targetType.TypeKind = TypeKind.Class OrElse targetType.TypeKind = TypeKind.Interface) OrElse 261If targetType Is Nothing OrElse (targetType.TypeKind <> TypeKind.Interface AndAlso targetType.TypeKind <> TypeKind.Class) Then 357Not (targetType.TypeKind = TypeKind.Class OrElse targetType.TypeKind = TypeKind.Interface) OrElse
Completion\CompletionProviders\EnumCompletionProvider.vb (1)
61If enumType.TypeKind <> TypeKind.Enum Then
Completion\CompletionProviders\NamedParameterCompletionProvider.vb (1)
147If type IsNot Nothing AndAlso within IsNot Nothing AndAlso type.TypeKind <> TypeKind.[Delegate] Then
EditAndContinue\VisualBasicEditAndContinueAnalyzer.vb (3)
1852Select Case symbol.TypeKind 2484If type.TypeKind = TypeKind.Module Then 2521If newSymbol.ContainingType.TypeKind = TypeKind.Enum Then
ExtractMethod\VisualBasicMethodExtractor.PostProcessor.vb (2)
137type.TypeKind = TypeKind.Error OrElse 138type.TypeKind = TypeKind.Unknown Then
ExtractMethod\VisualBasicMethodExtractor.vb (2)
96If type.TypeKind = TypeKind.Error OrElse type.TypeKind = TypeKind.Unknown Then
ExtractMethod\VisualBasicSelectionResult.vb (1)
211info.ConvertedType.TypeKind <> TypeKind.Interface Then
GenerateDefaultConstructors\VisualBasicGenerateDefaultConstructorsService.vb (1)
35Return classType IsNot Nothing AndAlso classType.TypeKind = TypeKind.Class
ImplementInterface\VisualBasicImplementInterfaceService.vb (1)
72interfaceTypes = interfaceTypes.WhereNotNull().Where(Function(t) t.TypeKind = TypeKind.Interface).ToList()
InitializeParameter\VisualBasicInitializeMemberFromParameterCodeRefactoringProvider.vb (2)
50Return If(containingType.TypeKind = TypeKind.Class Or containingType.TypeKind = TypeKind.Module, Accessibility.Private, Accessibility.Public)
NavigationBar\VisualBasicNavigationBarItemService.vb (5)
111If type.TypeKind = TypeKind.Enum Then 116If type.TypeKind <> TypeKind.Interface Then 215If workspaceSupportsDocumentChanges AndAlso type.TypeKind = TypeKind.Class Then 228If workspaceSupportsDocumentChanges AndAlso type.TypeKind = TypeKind.Class Then 236If type.TypeKind <> TypeKind.Delegate Then
SignatureHelp\FunctionAggregationSignatureHelpProvider.vb (1)
146If parameter.Type.TypeKind = TypeKind.Delegate Then
SignatureHelp\ObjectCreationExpressionSignatureHelpProvider.vb (1)
88Dim itemsAndSelected = If(type.TypeKind = TypeKind.Delegate,
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (531)
Compilation\MyTemplateTests.vb (2)
238Assert.Equal(TypeKind.Class, semanticSummary.Type.TypeKind) 240Assert.Equal(TypeKind.Class, semanticSummary.ConvertedType.TypeKind)
Compilation\SemanticModelGetDeclaredSymbolAPITests.vb (10)
685Assert.Equal(TypeKind.Class, typeSymbol.TypeKind) 690Assert.Equal(TypeKind.Class, typeSymbol2.TypeKind) 697Assert.Equal(TypeKind.Structure, typeSymbol3.TypeKind) 705Assert.Equal(TypeKind.Interface, typeSymbol4.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) 740Assert.Equal(TypeKind.Enum, typeSymbol9.TypeKind) 2954Assert.Equal(TypeKind.Class, symbol.TypeKind)
ExtensionMethods\SemanticModelTests.vb (2)
182Assert.Equal(TypeKind.Structure, semanticInfo.Type.TypeKind) 184Assert.Equal(TypeKind.Structure, semanticInfo.ConvertedType.TypeKind)
Semantics\ArrayLiteralTests.vb (5)
1497Assert.Equal(TypeKind.Error, semanticSummary.Type.TypeKind) 1499Assert.Equal(TypeKind.Error, semanticSummary.ConvertedType.TypeKind) 1633Assert.Equal(TypeKind.Array, semanticSummary.ConvertedType.TypeKind) 1689Assert.Equal(TypeKind.Class, semanticSummary.ConvertedType.TypeKind) 1723Assert.Equal(TypeKind.Class, semanticSummary.ConvertedType.TypeKind)
Semantics\GetExtendedSemanticInfoTests.vb (283)
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) 187Assert.Equal(TypeKind.Structure, semanticInfo.Type.TypeKind) 189Assert.Equal(TypeKind.Structure, 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) 361Assert.Equal(TypeKind.Error, semanticInfo.Type.TypeKind) 363Assert.Equal(TypeKind.Error, semanticInfo.ConvertedType.TypeKind) 410Assert.Equal(TypeKind.Error, semanticInfo.Type.TypeKind) 412Assert.Equal(TypeKind.Error, semanticInfo.ConvertedType.TypeKind) 459Assert.Equal(TypeKind.Error, semanticInfo.Type.TypeKind) 461Assert.Equal(TypeKind.Error, semanticInfo.ConvertedType.TypeKind) 501Assert.Equal(TypeKind.Structure, semanticInfo.Type.TypeKind) 503Assert.Equal(TypeKind.Structure, 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) 1373Assert.Equal(TypeKind.Structure, semanticInfo.Type.TypeKind) 1375Assert.Equal(TypeKind.Structure, semanticInfo.ConvertedType.TypeKind) 1416Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind) 1418Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.TypeKind) 1454Assert.Equal(TypeKind.Array, semanticInfo.Type.TypeKind) 1456Assert.Equal(TypeKind.Array, semanticInfo.ConvertedType.TypeKind) 1581Assert.Equal(TypeKind.Interface, semanticInfo.Type.TypeKind) 1583Assert.Equal(TypeKind.Interface, semanticInfo.ConvertedType.TypeKind) 1990Assert.Equal(TypeKind.Error, semanticInfo.Type.TypeKind) 1992Assert.Equal(TypeKind.Error, semanticInfo.ConvertedType.TypeKind) 2025Assert.Equal(TypeKind.Structure, semanticInfo.Type.TypeKind) 2045Assert.Equal(TypeKind.Structure, semanticInfo.Type.TypeKind) 2047Assert.Equal(TypeKind.Structure, semanticInfo.ConvertedType.TypeKind) 2078Assert.Equal(TypeKind.Struct, semanticInfo.Type.TypeKind) 2080Assert.Equal(TypeKind.Structure, semanticInfo.ConvertedType.TypeKind) 2113Assert.Equal(TypeKind.Structure, semanticInfo.Type.TypeKind) 2115Assert.Equal(TypeKind.Structure, semanticInfo.ConvertedType.TypeKind) 2145Assert.Equal(TypeKind.Array, semanticInfo.Type.TypeKind) 2147Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.TypeKind) 2176Assert.Equal(TypeKind.Error, semanticInfo.Type.TypeKind) 2178Assert.Equal(TypeKind.Error, semanticInfo.ConvertedType.TypeKind) 2207Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind) 2209Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.TypeKind) 2249Assert.Equal(TypeKind.Structure, semanticInfo.Type.TypeKind) 2251Assert.Equal(TypeKind.Structure, semanticInfo.ConvertedType.TypeKind) 2362Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind) 2364Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.TypeKind) 2401Assert.Equal(TypeKind.Structure, semanticInfo.Type.TypeKind) 2403Assert.Equal(TypeKind.Structure, semanticInfo.ConvertedType.TypeKind) 2439Assert.Equal(TypeKind.Structure, semanticInfo.Type.TypeKind) 2441Assert.Equal(TypeKind.Structure, semanticInfo.ConvertedType.TypeKind) 2472Assert.Equal(TypeKind.Structure, semanticInfo.Type.TypeKind) 2474Assert.Equal(TypeKind.Structure, semanticInfo.ConvertedType.TypeKind) 2515Assert.Equal(TypeKind.Enum, semanticInfo.Type.TypeKind) 2517Assert.Equal(TypeKind.Structure, semanticInfo.ConvertedType.TypeKind) 2596Assert.Equal(TypeKind.Structure, semanticInfo.Type.TypeKind) 2598Assert.Equal(TypeKind.Structure, 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) 3072Assert.Equal(TypeKind.Array, semanticInfo.Type.TypeKind) 3074Assert.Equal(TypeKind.Array, semanticInfo.ConvertedType.TypeKind) 3093Assert.Equal(TypeKind.Array, semanticInfo.Type.TypeKind) 3095Assert.Equal(TypeKind.Array, semanticInfo.ConvertedType.TypeKind) 3116Assert.Equal(TypeKind.Array, semanticInfo.Type.TypeKind) 3118Assert.Equal(TypeKind.Array, 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) 3553Assert.Equal(TypeKind.Structure, semanticInfo.Type.TypeKind) 3555Assert.Equal(TypeKind.Structure, semanticInfo.ConvertedType.TypeKind) 3612Assert.Equal(TypeKind.Structure, semanticInfo.Type.TypeKind) 3614Assert.Equal(TypeKind.Structure, 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) 3766Assert.Equal(TypeKind.Error, semanticInfo.Type.TypeKind) 3768Assert.Equal(TypeKind.Error, semanticInfo.ConvertedType.TypeKind) 3793Assert.Equal(TypeKind.Class, semanticSummary.Type.TypeKind) 3795Assert.Equal(TypeKind.Class, semanticSummary.ConvertedType.TypeKind) 3901Assert.Equal(semanticInfo.Type.TypeKind, TypeKind.Error) 3942Assert.Equal(semanticInfo.Type.TypeKind, TypeKind.Error) 4057Assert.Equal(TypeKind.Structure, semanticInfo.Type.TypeKind) 4059Assert.Equal(TypeKind.Structure, semanticInfo.ConvertedType.TypeKind) 4095Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind) 4097Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.TypeKind) 4160Assert.Equal(TypeKind.Structure, semanticInfo.Type.TypeKind) 4162Assert.Equal(TypeKind.Structure, 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) 4345Assert.Equal(TypeKind.Structure, semanticInfo.Type.TypeKind) 4347Assert.Equal(TypeKind.Structure, semanticInfo.ConvertedType.TypeKind) 4384Assert.Equal(TypeKind.Structure, semanticInfo.Type.TypeKind) 4386Assert.Equal(TypeKind.Structure, semanticInfo.ConvertedType.TypeKind) 4420Assert.Equal(TypeKind.Structure, semanticInfo.Type.TypeKind) 4422Assert.Equal(TypeKind.Structure, semanticInfo.ConvertedType.TypeKind) 4459Assert.Equal(TypeKind.Structure, semanticInfo.Type.TypeKind) 4461Assert.Equal(TypeKind.Structure, 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) 4617Assert.Equal(TypeKind.Structure, semanticInfo.Type.TypeKind) 4619Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.TypeKind) 4652Assert.Equal(TypeKind.Structure, semanticInfo.Type.TypeKind) 4654Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.TypeKind) 4709Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind) 4711Assert.Equal(TypeKind.Structure, semanticInfo.ConvertedType.TypeKind) 4752Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind) 4754Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.TypeKind) 4790Assert.Equal(TypeKind.Error, semanticInfo.Type.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) 5058Assert.Equal(TypeKind.Error, semanticInfo.Type.TypeKind) 5060Assert.Equal(TypeKind.Error, 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) 5232Assert.Equal(TypeKind.Error, semanticInfo.Type.TypeKind) 5234Assert.Equal(TypeKind.Error, semanticInfo.ConvertedType.TypeKind) 5278Assert.Equal(TypeKind.Error, semanticInfo.Type.TypeKind) 5280Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.TypeKind) 5340Assert.Equal(TypeKind.Structure, semanticInfo.Type.TypeKind) 5342Assert.Equal(TypeKind.Structure, semanticInfo.ConvertedType.TypeKind) 5371Assert.Equal(TypeKind.Structure, semanticInfo.Type.TypeKind) 5373Assert.Equal(TypeKind.Structure, semanticInfo.ConvertedType.TypeKind) 5407Assert.Equal(TypeKind.Structure, semanticInfo.Type.TypeKind) 5409Assert.Equal(TypeKind.Structure, semanticInfo.ConvertedType.TypeKind) 5438Assert.Equal(TypeKind.Structure, semanticInfo.Type.TypeKind) 5440Assert.Equal(TypeKind.Structure, semanticInfo.ConvertedType.TypeKind) 5471Assert.Equal(TypeKind.Structure, semanticInfo.Type.TypeKind) 5473Assert.Equal(TypeKind.Structure, semanticInfo.ConvertedType.TypeKind) 5502Assert.Equal(TypeKind.Structure, semanticInfo.Type.TypeKind) 5504Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.TypeKind) 5532Assert.Equal(TypeKind.Structure, semanticInfo.Type.TypeKind) 5534Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.TypeKind) 5650Assert.Equal(TypeKind.Structure, semanticInfo.Type.TypeKind) 5652Assert.Equal(TypeKind.Structure, semanticInfo.ConvertedType.TypeKind) 5713Assert.Equal(TypeKind.Structure, semanticInfo.Type.TypeKind) 5715Assert.Equal(TypeKind.Structure, 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) 6932Assert.Equal(TypeKind.Delegate, semanticInfo.Type.TypeKind) 6934Assert.Equal(TypeKind.Delegate, semanticInfo.ConvertedType.TypeKind) 7007Assert.Equal(TypeKind.Delegate, semanticInfo.Type.TypeKind) 7009Assert.Equal(TypeKind.Delegate, semanticInfo.ConvertedType.TypeKind) 7082Assert.Equal(TypeKind.Delegate, semanticInfo.Type.TypeKind) 7084Assert.Equal(TypeKind.Delegate, semanticInfo.ConvertedType.TypeKind) 7157Assert.Equal(TypeKind.Delegate, semanticInfo.Type.TypeKind) 7159Assert.Equal(TypeKind.Delegate, semanticInfo.ConvertedType.TypeKind) 7238Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind) 7240Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.TypeKind) 7322Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind) 7324Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.TypeKind) 7364Assert.Equal(TypeKind.Structure, semanticSummary.Type.TypeKind) 7366Assert.Equal(TypeKind.Structure, semanticSummary.ConvertedType.TypeKind) 7438Assert.Equal(TypeKind.Class, semanticSummary.Type.TypeKind) 7440Assert.Equal(TypeKind.Class, semanticSummary.ConvertedType.TypeKind) 7477Assert.Equal(TypeKind.Structure, semanticInfo.Type.TypeKind) 7479Assert.Equal(TypeKind.Structure, semanticInfo.ConvertedType.TypeKind) 7572Assert.Equal(TypeKind.Class, semanticInfo1.Type.TypeKind) 7574Assert.Equal(TypeKind.Class, semanticInfo1.ConvertedType.TypeKind) 7583Assert.Equal(TypeKind.Class, semanticInfo2.Type.TypeKind) 7585Assert.Equal(TypeKind.Class, semanticInfo2.ConvertedType.TypeKind) 7627Assert.Equal(TypeKind.Class, semanticInfo1.Type.TypeKind) 7629Assert.Equal(TypeKind.Class, semanticInfo1.ConvertedType.TypeKind) 7638Assert.Equal(TypeKind.Class, semanticInfo2.Type.TypeKind) 7640Assert.Equal(TypeKind.Class, semanticInfo2.ConvertedType.TypeKind) 7687Assert.Equal(TypeKind.Structure, semanticInfo1.Type.TypeKind) 7689Assert.Equal(TypeKind.Structure, semanticInfo1.ConvertedType.TypeKind) 7703Assert.Equal(TypeKind.Structure, semanticInfo2.Type.TypeKind) 7705Assert.Equal(TypeKind.Structure, semanticInfo2.ConvertedType.TypeKind) 7823Assert.Equal(TypeKind.Structure, semanticSummary.Type.TypeKind) 7825Assert.Equal(TypeKind.Structure, semanticSummary.ConvertedType.TypeKind) 7859Assert.Equal(TypeKind.Delegate, semanticSummary.Type.TypeKind) 7861Assert.Equal(TypeKind.Delegate, semanticSummary.ConvertedType.TypeKind) 7894Assert.Equal(TypeKind.Delegate, semanticSummary.Type.TypeKind) 7896Assert.Equal(TypeKind.Class, semanticSummary.ConvertedType.TypeKind) 7930Assert.Equal(TypeKind.Class, semanticSummary.Type.TypeKind) 7932Assert.Equal(TypeKind.Class, semanticSummary.ConvertedType.TypeKind) 7969Assert.Equal(TypeKind.Class, semanticSummary.Type.TypeKind) 7971Assert.Equal(TypeKind.Class, semanticSummary.ConvertedType.TypeKind) 8008Assert.Equal(TypeKind.Class, semanticSummary.Type.TypeKind) 8010Assert.Equal(TypeKind.Class, semanticSummary.ConvertedType.TypeKind) 8047Assert.Equal(TypeKind.Class, semanticSummary.Type.TypeKind) 8049Assert.Equal(TypeKind.Class, semanticSummary.ConvertedType.TypeKind) 8086Assert.Equal(TypeKind.Class, semanticSummary.Type.TypeKind) 8088Assert.Equal(TypeKind.Class, semanticSummary.ConvertedType.TypeKind) 8124Assert.Equal(TypeKind.Class, semanticSummary.Type.TypeKind) 8126Assert.Equal(TypeKind.Class, semanticSummary.ConvertedType.TypeKind) 8162Assert.Equal(TypeKind.Interface, semanticSummary.Type.TypeKind) 8164Assert.Equal(TypeKind.Interface, semanticSummary.ConvertedType.TypeKind) 8373Assert.Equal(TypeKind.Structure, semanticSummary.Type.TypeKind) 8375Assert.Equal(TypeKind.Structure, semanticSummary.ConvertedType.TypeKind) 8418Assert.Equal(TypeKind.Structure, semanticSummary.Type.TypeKind) 8420Assert.Equal(TypeKind.Structure, semanticSummary.ConvertedType.TypeKind) 8456Assert.Equal(TypeKind.Class, semanticSummary.Type.TypeKind) 8458Assert.Equal(TypeKind.Class, semanticSummary.ConvertedType.TypeKind) 8556Assert.Equal(TypeKind.Structure, semanticSummary.Type.TypeKind) 8558Assert.Equal(TypeKind.Structure, semanticSummary.ConvertedType.TypeKind) 8742Assert.Equal(TypeKind.Module, semanticSummary.Type.TypeKind) 8744Assert.Equal(TypeKind.Module, semanticSummary.ConvertedType.TypeKind) 8822Assert.Equal(TypeKind.Class, semanticSummary.Type.TypeKind) 8969Assert.Equal(TypeKind.Module, semanticSummary.Type.TypeKind) 8971Assert.Equal(TypeKind.Class, semanticSummary.ConvertedType.TypeKind) 9042Assert.Equal(TypeKind.Interface, semanticSummary.Type.TypeKind) 9044Assert.Equal(TypeKind.Class, semanticSummary.ConvertedType.TypeKind) 9119Assert.Equal(TypeKind.Class, semanticSummary.Type.TypeKind) 9121Assert.Equal(TypeKind.Class, semanticSummary.ConvertedType.TypeKind) 9512Assert.Equal(TypeKind.TypeParameter, semanticSummary.Type.TypeKind) 9589Assert.Equal(TypeKind.Interface, semanticSummary.Type.TypeKind) 9591Assert.Equal(TypeKind.Interface, semanticSummary.ConvertedType.TypeKind) 9625Assert.Equal(TypeKind.[Class], semanticInfo.Type.TypeKind) 9627Assert.Equal(TypeKind.[Class], semanticInfo.ConvertedType.TypeKind) 9658Assert.Equal(TypeKind.[Class], semanticInfo.Type.TypeKind) 9660Assert.Equal(TypeKind.[Class], semanticInfo.ConvertedType.TypeKind) 9693Assert.Equal(TypeKind.[Class], semanticInfo.Type.TypeKind) 9695Assert.Equal(TypeKind.[Class], semanticInfo.ConvertedType.TypeKind) 9728Assert.Equal(TypeKind.[Class], semanticInfo.Type.TypeKind) 9730Assert.Equal(TypeKind.[Class], semanticInfo.ConvertedType.TypeKind) 9763Assert.Equal(TypeKind.[Class], semanticInfo.Type.TypeKind) 9765Assert.Equal(TypeKind.[Class], semanticInfo.ConvertedType.TypeKind) 9811Assert.Equal(TypeKind.[Class], semanticInfo.Type.TypeKind) 9813Assert.Equal(TypeKind.[Class], semanticInfo.ConvertedType.TypeKind) 9851Assert.Equal(TypeKind.[Class], semanticInfo.Type.TypeKind) 9853Assert.Equal(TypeKind.[Class], semanticInfo.ConvertedType.TypeKind) 9891Assert.Equal(TypeKind.[Class], semanticInfo.Type.TypeKind) 9893Assert.Equal(TypeKind.[Class], semanticInfo.ConvertedType.TypeKind) 9934Assert.Equal(TypeKind.[Class], semanticInfo.Type.TypeKind) 9936Assert.Equal(TypeKind.[Class], semanticInfo.ConvertedType.TypeKind) 9966Assert.Equal(TypeKind.[Class], semanticInfo.Type.TypeKind) 9968Assert.Equal(TypeKind.[Class], semanticInfo.ConvertedType.TypeKind) 10000Assert.Equal(TypeKind.[Class], semanticInfo.Type.TypeKind) 10002Assert.Equal(TypeKind.[Class], semanticInfo.ConvertedType.TypeKind) 10046Assert.Equal(TypeKind.Class, semanticSummary.Type.TypeKind) 10048Assert.Equal(TypeKind.Class, semanticSummary.ConvertedType.TypeKind) 10088Assert.Equal(TypeKind.TypeParameter, semanticSummary.Type.TypeKind) 10090Assert.Equal(TypeKind.TypeParameter, semanticSummary.ConvertedType.TypeKind)
Semantics\GetSemanticInfoTests.vb (61)
128Assert.Equal(TypeKind.Structure, semanticInfo.Type.TypeKind) 130Assert.Equal(TypeKind.Structure, semanticInfo.ConvertedType.TypeKind) 173Assert.Equal(TypeKind.Structure, semanticInfo.Type.TypeKind) 175Assert.Equal(TypeKind.Structure, semanticInfo.ConvertedType.TypeKind) 219Assert.Equal(TypeKind.Array, semanticInfo.Type.TypeKind) 221Assert.Equal(TypeKind.Array, semanticInfo.ConvertedType.TypeKind) 312Assert.Equal(TypeKind.Structure, semanticInfo.Type.TypeKind) 314Assert.Equal(TypeKind.Structure, semanticInfo.ConvertedType.TypeKind) 362Assert.Equal(TypeKind.Structure, semanticInfo.Type.TypeKind) 364Assert.Equal(TypeKind.Structure, semanticInfo.ConvertedType.TypeKind) 412Assert.Equal(TypeKind.Error, semanticInfo.Type.TypeKind) 414Assert.Equal(TypeKind.Error, semanticInfo.ConvertedType.TypeKind) 462Assert.Equal(TypeKind.Error, semanticInfo.Type.TypeKind) 464Assert.Equal(TypeKind.Error, semanticInfo.ConvertedType.TypeKind) 512Assert.Equal(TypeKind.Error, semanticInfo.Type.TypeKind) 514Assert.Equal(TypeKind.Error, semanticInfo.ConvertedType.TypeKind) 562Assert.Equal(TypeKind.Structure, semanticInfo.Type.TypeKind) 564Assert.Equal(TypeKind.Structure, semanticInfo.ConvertedType.TypeKind) 763Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind) 765Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.TypeKind) 1499Assert.Equal(TypeKind.Class, semanticSummary.Type.TypeKind) 1501Assert.Equal(TypeKind.Class, semanticSummary.ConvertedType.TypeKind) 1536Assert.Equal(TypeKind.Error, semanticSummary.Type.TypeKind) 1538Assert.Equal(TypeKind.Error, semanticSummary.ConvertedType.TypeKind) 2049Assert.Equal(TypeKind.Structure, semanticSummary.Type.TypeKind) 2051Assert.Equal(TypeKind.Structure, semanticSummary.ConvertedType.TypeKind) 2062Assert.Equal(TypeKind.Structure, semanticSummary.Type.TypeKind) 2064Assert.Equal(TypeKind.Structure, semanticSummary.ConvertedType.TypeKind) 2076Assert.Equal(TypeKind.Structure, semanticSummary.Type.TypeKind) 2078Assert.Equal(TypeKind.Structure, semanticSummary.ConvertedType.TypeKind) 2089Assert.Equal(TypeKind.Class, semanticSummary.Type.TypeKind) 2091Assert.Equal(TypeKind.Class, semanticSummary.ConvertedType.TypeKind) 2144Assert.Equal(TypeKind.Class, semanticSummary.Type.TypeKind) 2146Assert.Equal(TypeKind.Class, semanticSummary.ConvertedType.TypeKind) 2164Assert.Equal(TypeKind.Class, semanticSummary.Type.TypeKind) 2166Assert.Equal(TypeKind.Class, semanticSummary.ConvertedType.TypeKind) 2242Assert.Equal(TypeKind.Array, semanticSummary.ConvertedType.TypeKind) 2295Assert.Equal(TypeKind.Structure, semanticSummary.Type.TypeKind) 2297Assert.Equal(TypeKind.Structure, semanticSummary.ConvertedType.TypeKind) 2309Assert.Equal(TypeKind.Structure, semanticSummary.Type.TypeKind) 2311Assert.Equal(TypeKind.Structure, semanticSummary.ConvertedType.TypeKind) 2354Assert.Equal(TypeKind.Structure, semanticSummary.Type.TypeKind) 2356Assert.Equal(TypeKind.Structure, semanticSummary.ConvertedType.TypeKind) 2368Assert.Equal(TypeKind.Structure, semanticSummary.Type.TypeKind) 2370Assert.Equal(TypeKind.Structure, semanticSummary.ConvertedType.TypeKind) 2417Assert.Equal(TypeKind.Class, semanticSummary.Type.TypeKind) 2419Assert.Equal(TypeKind.Class, semanticSummary.ConvertedType.TypeKind) 3380Assert.Equal(TypeKind.Class, semanticSummary.Type.TypeKind) 3382Assert.Equal(TypeKind.Structure, semanticSummary.ConvertedType.TypeKind) 3427Assert.Equal(TypeKind.Class, semanticSummary.Type.TypeKind) 3429Assert.Equal(TypeKind.Class, semanticSummary.ConvertedType.TypeKind) 3480Assert.Equal(TypeKind.Class, semanticSummary.Type.TypeKind) 3482Assert.Equal(TypeKind.Class, semanticSummary.ConvertedType.TypeKind) 3534Assert.Equal(TypeKind.Class, semanticSummary.Type.TypeKind) 3536Assert.Equal(TypeKind.Class, semanticSummary.ConvertedType.TypeKind) 3587Assert.Equal(TypeKind.Class, semanticSummary.Type.TypeKind) 3589Assert.Equal(TypeKind.Class, semanticSummary.ConvertedType.TypeKind) 3639Assert.Equal(TypeKind.Class, semanticSummary.Type.TypeKind) 3641Assert.Equal(TypeKind.Class, semanticSummary.ConvertedType.TypeKind) 3684Assert.Equal(TypeKind.Class, semanticSummary.Type.TypeKind) 3686Assert.Equal(TypeKind.Class, semanticSummary.ConvertedType.TypeKind)
Semantics\IFOperatorTest.vb (2)
1163semanticInfos(1).ConvertedType.TypeKind <> TypeKind.TypeParameter AndAlso 1164semanticInfos(2).ConvertedType.TypeKind <> TypeKind.TypeParameter) Then
Semantics\LambdaSemanticInfoTests.vb (24)
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) 392Assert.Equal(TypeKind.Structure, semanticInfo.Type.TypeKind) 394Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.TypeKind) 432Assert.Equal(TypeKind.Structure, semanticInfo.Type.TypeKind) 434Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.TypeKind) 718Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind) 720Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.TypeKind)
Semantics\NativeIntegerTests.vb (1)
53Assert.Equal(TypeKind.Struct, type.TypeKind)
Semantics\OptionalArgumentTests.vb (2)
1057Assert.Equal(TypeKind.Class, semanticSummary.Type.TypeKind) 1059Assert.Equal(TypeKind.Class, semanticSummary.ConvertedType.TypeKind)
Semantics\QueryExpressions_SemanticModel.vb (104)
69Assert.Equal(TypeKind.Structure, semanticInfo.Type.TypeKind) 71Assert.Equal(TypeKind.Structure, semanticInfo.ConvertedType.TypeKind) 89Assert.Equal(TypeKind.Structure, semanticInfo.Type.TypeKind) 91Assert.Equal(TypeKind.Structure, semanticInfo.ConvertedType.TypeKind) 108Assert.Equal(TypeKind.Structure, semanticInfo.Type.TypeKind) 110Assert.Equal(TypeKind.Structure, semanticInfo.ConvertedType.TypeKind) 139Assert.Equal(TypeKind.Structure, semanticInfo.Type.TypeKind) 141Assert.Equal(TypeKind.Structure, semanticInfo.ConvertedType.TypeKind) 158Assert.Equal(TypeKind.Structure, semanticInfo.Type.TypeKind) 160Assert.Equal(TypeKind.Structure, semanticInfo.ConvertedType.TypeKind) 187Assert.Equal(TypeKind.Structure, semanticInfo.Type.TypeKind) 189Assert.Equal(TypeKind.Structure, semanticInfo.ConvertedType.TypeKind) 209Assert.Equal(TypeKind.Structure, semanticInfo.Type.TypeKind) 211Assert.Equal(TypeKind.Structure, semanticInfo.ConvertedType.TypeKind) 228Assert.Equal(TypeKind.Structure, semanticInfo.Type.TypeKind) 230Assert.Equal(TypeKind.Structure, semanticInfo.ConvertedType.TypeKind) 295Assert.Equal(TypeKind.Structure, semanticInfo.Type.TypeKind) 297Assert.Equal(TypeKind.Structure, semanticInfo.ConvertedType.TypeKind) 315Assert.Equal(TypeKind.Structure, semanticInfo.Type.TypeKind) 317Assert.Equal(TypeKind.Structure, semanticInfo.ConvertedType.TypeKind) 334Assert.Equal(TypeKind.Structure, semanticInfo.Type.TypeKind) 336Assert.Equal(TypeKind.Structure, semanticInfo.ConvertedType.TypeKind) 361Assert.Equal(TypeKind.Structure, semanticInfo.Type.TypeKind) 363Assert.Equal(TypeKind.Structure, semanticInfo.ConvertedType.TypeKind) 380Assert.Equal(TypeKind.Structure, semanticInfo.Type.TypeKind) 382Assert.Equal(TypeKind.Structure, semanticInfo.ConvertedType.TypeKind) 409Assert.Equal(TypeKind.Structure, semanticInfo.Type.TypeKind) 411Assert.Equal(TypeKind.Structure, semanticInfo.ConvertedType.TypeKind) 431Assert.Equal(TypeKind.Structure, semanticInfo.Type.TypeKind) 433Assert.Equal(TypeKind.Structure, semanticInfo.ConvertedType.TypeKind) 450Assert.Equal(TypeKind.Structure, semanticInfo.Type.TypeKind) 452Assert.Equal(TypeKind.Structure, semanticInfo.ConvertedType.TypeKind) 515Assert.Equal(TypeKind.Structure, semanticInfo.Type.TypeKind) 517Assert.Equal(TypeKind.Structure, semanticInfo.ConvertedType.TypeKind) 535Assert.Equal(TypeKind.Structure, semanticInfo.Type.TypeKind) 537Assert.Equal(TypeKind.Structure, semanticInfo.ConvertedType.TypeKind) 554Assert.Equal(TypeKind.Structure, semanticInfo.Type.TypeKind) 556Assert.Equal(TypeKind.Structure, semanticInfo.ConvertedType.TypeKind) 581Assert.Equal(TypeKind.Structure, semanticInfo.Type.TypeKind) 583Assert.Equal(TypeKind.Structure, semanticInfo.ConvertedType.TypeKind) 600Assert.Equal(TypeKind.Structure, semanticInfo.Type.TypeKind) 602Assert.Equal(TypeKind.Structure, semanticInfo.ConvertedType.TypeKind) 629Assert.Equal(TypeKind.Structure, semanticInfo.Type.TypeKind) 631Assert.Equal(TypeKind.Structure, semanticInfo.ConvertedType.TypeKind) 651Assert.Equal(TypeKind.Structure, semanticInfo.Type.TypeKind) 653Assert.Equal(TypeKind.Structure, semanticInfo.ConvertedType.TypeKind) 670Assert.Equal(TypeKind.Structure, semanticInfo.Type.TypeKind) 672Assert.Equal(TypeKind.Structure, semanticInfo.ConvertedType.TypeKind) 759Assert.Equal(TypeKind.Structure, semanticInfo.Type.TypeKind) 761Assert.Equal(TypeKind.Structure, semanticInfo.ConvertedType.TypeKind) 779Assert.Equal(TypeKind.Structure, semanticInfo.Type.TypeKind) 781Assert.Equal(TypeKind.Structure, semanticInfo.ConvertedType.TypeKind) 798Assert.Equal(TypeKind.Structure, semanticInfo.Type.TypeKind) 800Assert.Equal(TypeKind.Structure, semanticInfo.ConvertedType.TypeKind) 825Assert.Equal(TypeKind.Structure, semanticInfo.Type.TypeKind) 827Assert.Equal(TypeKind.Structure, semanticInfo.ConvertedType.TypeKind) 844Assert.Equal(TypeKind.Structure, semanticInfo.Type.TypeKind) 846Assert.Equal(TypeKind.Structure, semanticInfo.ConvertedType.TypeKind) 873Assert.Equal(TypeKind.Structure, semanticInfo.Type.TypeKind) 875Assert.Equal(TypeKind.Structure, semanticInfo.ConvertedType.TypeKind) 895Assert.Equal(TypeKind.Structure, semanticInfo.Type.TypeKind) 897Assert.Equal(TypeKind.Structure, semanticInfo.ConvertedType.TypeKind) 914Assert.Equal(TypeKind.Structure, semanticInfo.Type.TypeKind) 916Assert.Equal(TypeKind.Structure, semanticInfo.ConvertedType.TypeKind) 993Assert.Equal(TypeKind.Structure, semanticInfo.Type.TypeKind) 995Assert.Equal(TypeKind.Structure, semanticInfo.ConvertedType.TypeKind) 1076Assert.Equal(TypeKind.Structure, semanticInfo.Type.TypeKind) 1078Assert.Equal(TypeKind.Structure, semanticInfo.ConvertedType.TypeKind) 1149Assert.Equal(TypeKind.Structure, semanticInfo.Type.TypeKind) 1151Assert.Equal(TypeKind.Structure, semanticInfo.ConvertedType.TypeKind) 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) 1379Assert.Equal(TypeKind.Structure, semanticInfo.Type.TypeKind) 1381Assert.Equal(TypeKind.Structure, semanticInfo.ConvertedType.TypeKind) 1401Assert.Equal(TypeKind.Structure, semanticInfo.Type.TypeKind) 1403Assert.Equal(TypeKind.Structure, semanticInfo.ConvertedType.TypeKind) 1545Assert.Equal(TypeKind.Structure, semanticInfo.Type.TypeKind) 1547Assert.Equal(TypeKind.Structure, semanticInfo.ConvertedType.TypeKind) 1645Assert.Equal(TypeKind.Structure, semanticInfo.Type.TypeKind) 1647Assert.Equal(TypeKind.Structure, semanticInfo.ConvertedType.TypeKind) 2101Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind) 2103Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.TypeKind) 2149Assert.Equal(TypeKind.Structure, semanticInfo.Type.TypeKind) 2151Assert.Equal(TypeKind.Structure, semanticInfo.ConvertedType.TypeKind) 2182Assert.Equal(TypeKind.Structure, semanticInfo.Type.TypeKind) 2184Assert.Equal(TypeKind.Structure, semanticInfo.ConvertedType.TypeKind) 2532Assert.Equal(TypeKind.Structure, semanticInfo.Type.TypeKind) 2534Assert.Equal(TypeKind.Structure, semanticInfo.ConvertedType.TypeKind) 2667Assert.Equal(TypeKind.Structure, semanticInfo.Type.TypeKind) 2669Assert.Equal(TypeKind.Structure, semanticInfo.ConvertedType.TypeKind) 2718Assert.Equal(TypeKind.Structure, semanticInfo.Type.TypeKind) 2720Assert.Equal(TypeKind.Structure, semanticInfo.ConvertedType.TypeKind) 2775Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind) 2777Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.TypeKind) 2900Assert.Equal(TypeKind.Structure, semanticInfo.Type.TypeKind) 2902Assert.Equal(TypeKind.Structure, semanticInfo.ConvertedType.TypeKind) 3324Assert.Equal(TypeKind.Structure, semanticInfo.Type.TypeKind) 3326Assert.Equal(TypeKind.Structure, semanticInfo.ConvertedType.TypeKind) 3360Assert.Equal(TypeKind.Class, semanticInfo.Type.TypeKind) 3362Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.TypeKind) 3528Assert.Equal(TypeKind.Structure, semanticInfo.Type.TypeKind) 3530Assert.Equal(TypeKind.Structure, semanticInfo.ConvertedType.TypeKind)
Semantics\SelectCaseTests.vb (23)
30Assert.Equal(TypeKind.Class, semanticSummary.ConvertedType.TypeKind) 62Assert.Equal(TypeKind.Structure, semanticSummary.Type.TypeKind) 64Assert.Equal(TypeKind.Structure, semanticSummary.ConvertedType.TypeKind) 98Assert.Equal(TypeKind.Structure, semanticSummary.Type.TypeKind) 100Assert.Equal(TypeKind.Structure, semanticSummary.ConvertedType.TypeKind) 137Assert.Equal(TypeKind.Structure, semanticSummary.Type.TypeKind) 139Assert.Equal(TypeKind.Structure, semanticSummary.ConvertedType.TypeKind) 210Assert.Equal(TypeKind.Delegate, semanticSummary.ConvertedType.TypeKind) 241Assert.Equal(TypeKind.Delegate, semanticSummary.Type.TypeKind) 243Assert.Equal(TypeKind.Delegate, semanticSummary.ConvertedType.TypeKind) 278Assert.Equal(TypeKind.Structure, semanticSummary.Type.TypeKind) 280Assert.Equal(TypeKind.Structure, semanticSummary.ConvertedType.TypeKind) 318Assert.Equal(TypeKind.Structure, semanticSummary.Type.TypeKind) 320Assert.Equal(TypeKind.Structure, semanticSummary.ConvertedType.TypeKind) 359Assert.Equal(TypeKind.Structure, semanticSummary.ConvertedType.TypeKind) 397Assert.Equal(TypeKind.Structure, semanticSummary.Type.TypeKind) 399Assert.Equal(TypeKind.Structure, semanticSummary.ConvertedType.TypeKind) 491Assert.Equal(TypeKind.Structure, semanticSummary.Type.TypeKind) 493Assert.Equal(TypeKind.Structure, semanticSummary.ConvertedType.TypeKind) 530Assert.Equal(TypeKind.Structure, semanticSummary.Type.TypeKind) 532Assert.Equal(TypeKind.Structure, semanticSummary.ConvertedType.TypeKind) 574Assert.Equal(TypeKind.Structure, semanticSummary.Type.TypeKind) 576Assert.Equal(TypeKind.Structure, semanticSummary.ConvertedType.TypeKind)
Semantics\SyncLockTests.vb (10)
241Assert.Equal(TypeKind.Delegate, semanticSummary.ConvertedType.TypeKind) 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) 438Assert.Equal(TypeKind.Delegate, semanticSummary.Type.TypeKind) 443Assert.Equal(TypeKind.Delegate, semanticSummary.Type.TypeKind) 468Assert.Equal(TypeKind.Class, semanticSummary.Type.TypeKind) 473Assert.Equal(TypeKind.Class, semanticSummary.Type.TypeKind)
Semantics\XmlLiteralSemanticModelTests.vb (2)
530Assert.Equal(TypeKind.Error, semanticSummary.Type.TypeKind) 532Assert.Equal(TypeKind.Error, semanticSummary.ConvertedType.TypeKind)
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (21)
SymbolsTests\Source\BindingsTests.vb (13)
361Assert.Equal(TypeKind.Class, typeSymbol.TypeKind) 366Assert.Equal(TypeKind.Class, typeSymbol2.TypeKind) 373Assert.Equal(TypeKind.Structure, typeSymbol3.TypeKind) 381Assert.Equal(TypeKind.Interface, typeSymbol4.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) 500Assert.Equal(TypeKind.Error, interfaceIAmbigSymInfo.Type.TypeKind) 518Assert.Equal(TypeKind.Class, classYellowSymInfo.Type.TypeKind) 532Assert.Equal(TypeKind.Error, elvisSymInfo.Type.TypeKind) 539Assert.Equal(TypeKind.Interface, iEnumSymInfo.Type.TypeKind) 681Assert.Equal(TypeKind.Class, info.Type.TypeKind)
SymbolsTests\Source\EventTests.vb (8)
1569Assert.Equal(TypeKind.Structure, semanticSummary.Type.TypeKind) 1571Assert.Equal(TypeKind.Structure, semanticSummary.ConvertedType.TypeKind) 1607Assert.Equal(TypeKind.Delegate, semanticSummary.Type.TypeKind) 1609Assert.Equal(TypeKind.Delegate, semanticSummary.ConvertedType.TypeKind) 1645Assert.Equal(TypeKind.Delegate, semanticSummary.Type.TypeKind) 1647Assert.Equal(TypeKind.Delegate, semanticSummary.ConvertedType.TypeKind) 1685Assert.Equal(TypeKind.Delegate, semanticSummary.Type.TypeKind) 1687Assert.Equal(TypeKind.Delegate, semanticSummary.ConvertedType.TypeKind)
Microsoft.CodeAnalysis.VisualBasic.Workspaces (36)
CaseCorrection\VisualBasicCaseCorrectionService.Rewriter.vb (1)
148If TypeOf symbol Is ITypeSymbol AndAlso DirectCast(symbol, ITypeSymbol).TypeKind = TypeKind.Error Then
CodeGeneration\ExpressionGenerator.vb (1)
49ElseIf type?.TypeKind = TypeKind.Enum Then
CodeGeneration\NamedTypeGenerator.vb (8)
53declaration = If(options.Context.GenerateMembers AndAlso namedType.TypeKind <> TypeKind.Delegate, 94If namedType.TypeKind = TypeKind.Enum Then 96ElseIf namedType.TypeKind = TypeKind.Delegate Then 100Dim isInterface = namedType.TypeKind = TypeKind.Interface 101Dim isStruct = namedType.TypeKind = TypeKind.Struct 102Dim isModule = namedType.TypeKind = TypeKind.Module 187If namedType.TypeKind = TypeKind.Class Then 205If namedType.TypeKind = TypeKind.Struct OrElse
Editing\VisualBasicImportAdder.vb (1)
130If type?.TypeKind = TypeKind.Module Then
ExpressionSyntaxGeneratorVisitor.vb (2)
40If symbol.ContainingType.TypeKind = TypeKind.Submission Then 48If symbol.TypeKind <> TypeKind.[Error] Then
IMethodSymbolExtensions.vb (1)
32If parameter.Type.TypeKind = TypeKind.Delegate Then
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\ContextQuery\SyntaxTreeExtensions.vb\SyntaxTreeExtensions.vb (3)
328objectCreationType.TypeKind = TypeKind.Delegate Then 800Return DirectCast(symbol, INamedTypeSymbol).TypeKind = TypeKind.Enum 803Return target.IsType AndAlso DirectCast(target, ITypeSymbol).TypeKind = TypeKind.Enum
Recommendations\VisualBasicRecommendationServiceRunner.vb (9)
269If container Is Nothing OrElse TryCast(container, ITypeSymbol)?.TypeKind = TypeKind.Enum Then 398Dim isInterface = TryCast(typeOrAssemblySymbol, ITypeSymbol)?.TypeKind = TypeKind.Interface 457Return namedTypeSymbol.TypeKind = TypeKind.Interface OrElse 473If namedTypeSymbol.TypeKind = TypeKind.Interface Then 491If type.TypeKind = TypeKind.Class AndAlso Not type.IsSealed AndAlso Not Equals(type, within) Then 495If type.TypeKind = TypeKind.Class OrElse 496type.TypeKind = TypeKind.Module OrElse 497type.TypeKind = TypeKind.Struct Then 521If namedTypeSymbol.TypeKind = TypeKind.Class AndAlso Not namedTypeSymbol.IsSealed AndAlso Not Equals(namedTypeSymbol, within) Then
SemanticModelExtensions.vb (1)
256If parameter.Type.TypeKind <> TypeKind.TypeParameter Then
Simplification\Reducers\VisualBasicEscapingReducer.vb (2)
106If type.TypeKind <> TypeKind.Interface AndAlso type.TypeKind <> TypeKind.Enum Then
TypeSyntaxGeneratorVisitor.vb (2)
160If symbol.ContainingType.TypeKind = TypeKind.Submission Then 167If _addGlobal AndAlso symbol.TypeKind <> TypeKind.[Error] Then
VisualBasicSyntaxContextExtensions.vb (1)
125objectCreationType.TypeKind = TypeKind.Delegate Then
VisualBasicTypeInferenceService.TypeInferrer.vb (4)
30If info.Type IsNot Nothing AndAlso info.Type.TypeKind <> TypeKind.Error Then 34If info.ConvertedType IsNot Nothing AndAlso info.ConvertedType.TypeKind <> TypeKind.Error Then 296If namedType.TypeKind = TypeKind.Delegate Then 712Return lambdaTypes.Where(Function(t) t.InferredType.TypeKind = TypeKind.Delegate).SelectMany(Function(t) t.InferredType.GetMembers(WellKnownMemberNames.DelegateInvokeName).OfType(Of IMethodSymbol)().Select(Function(m) New TypeInferenceInfo(m.ReturnType)))
Microsoft.CodeAnalysis.Workspaces (70)
AbstractFlagsEnumGenerator.cs (1)
36if (typeSymbol.TypeKind != TypeKind.Enum)
Classification\ClassificationExtensions.cs (1)
10=> type.TypeKind switch
CodeGenerationHelpers.cs (1)
153if (namedType.TypeKind != TypeKind.Enum)
Editing\SymbolEditorExtensions.cs (1)
30if (baseOrInterfaceType.TypeKind != TypeKind.Error)
Editing\SyntaxGenerator.cs (2)
770var declaration = type.TypeKind switch 856switch (type.TypeKind)
FindSymbols\FindReferences\DependentTypeFinder.cs (2)
45private static readonly Func<INamedTypeSymbol, bool> s_isInterface = static t => t is { TypeKind: TypeKind.Interface }; 46private static readonly Func<INamedTypeSymbol, bool> s_isNonSealedClass = static t => t is { TypeKind: TypeKind.Class, IsSealed: false };
FindSymbols\FindReferences\DependentTypeFinder_ImplementingTypes.cs (2)
22if (type?.TypeKind == TypeKind.Interface) 54t => t.TypeKind is TypeKind.Class or
FindSymbols\FindReferences\Finders\NamedTypeSymbolReferenceFinder.cs (1)
20=> symbol.TypeKind != TypeKind.Error;
FindSymbols\FindReferences\Finders\OrdinaryMethodReferenceFinder.cs (1)
29return symbol.ContainingType.TypeKind == TypeKind.Delegate
FindSymbols\FindReferences\FindReferencesSearchEngine.SymbolSet.cs (1)
118if (searchSymbol.IsConstructor() && searchSymbol.ContainingType.TypeKind == TypeKind.Delegate)
FindSymbols\SymbolFinder_Hierarchy.cs (1)
119if (symbol is { DeclaredAccessibility: Accessibility.Public, ContainingType.TypeKind: TypeKind.Class or TypeKind.Struct })
ISymbolExtensions_Accessibility.cs (1)
199typeArg.TypeKind != TypeKind.Error &&
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\INamedTypeSymbolExtensions.cs\INamedTypeSymbolExtensions.cs (8)
86if (member.ContainingType.TypeKind == TypeKind.Interface) 157if (implementation?.ContainingType.TypeKind == TypeKind.Interface) 203if (type.TypeKind == TypeKind.Interface) 304if (type.TypeKind == TypeKind.Interface) 342if (classOrStructType.TypeKind is not TypeKind.Class and not TypeKind.Struct) 352if (!interfacesOrAbstractClasses.All(i => i.TypeKind == TypeKind.Interface) && 369return interfacesOrAbstractClasses.First().TypeKind == TypeKind.Interface 521if (containingType.TypeKind is TypeKind.Class or TypeKind.Struct)
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ISymbolExtensions.cs\ISymbolExtensions.cs (8)
114return symbol?.ContainingType?.TypeKind == TypeKind.Class && 123symbol.ContainingType.TypeKind == TypeKind.Interface) 163=> symbol is ITypeSymbol { TypeKind: TypeKind.Error }; 166=> symbol is ITypeSymbol { TypeKind: TypeKind.Module }; 169=> symbol is ITypeSymbol { TypeKind: TypeKind.Interface }; 220=> symbol is { ContainingType.TypeKind: TypeKind.Module }; 244=> symbol is ITypeSymbol { TypeKind: TypeKind.Delegate }; 633if (!methods.Any(x => x.Name == WellKnownMemberNames.OnCompleted && x.ReturnsVoid && x.Parameters is [{ Type.TypeKind: TypeKind.Delegate }]))
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ITypeSymbolExtensions.cs\ITypeSymbolExtensions.cs (13)
42if (type is INamedTypeSymbol namedType && namedType.TypeKind == TypeKind.Interface && !allInterfaces.Contains(namedType)) 54=> symbol?.TypeKind == TypeKind.Class && symbol.IsAbstract; 80=> symbol?.TypeKind == TypeKind.Module; 83=> symbol?.TypeKind == TypeKind.Interface; 86=> symbol?.TypeKind == TypeKind.Delegate; 89=> symbol?.TypeKind == TypeKind.FunctionPointer; 92=> symbol?.TypeKind == TypeKind.Struct; 186IEnumerable<ITypeSymbol> baseTypes = (baseType.TypeKind == TypeKind.Interface) ? type.AllInterfaces : type.GetBaseTypes(); 261switch (typeSymbol.TypeKind) 531if (t1.TypeKind != t2.TypeKind) 625if (type != null && type.IsValueType && type.TypeKind == TypeKind.Enum) 677if (type.TypeKind != TypeKind.Struct)
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\INamedTypeSymbolExtensions.cs\INamedTypeSymbolExtensions.cs (1)
25namedType.TypeKind,
NamingStyleRules.cs (1)
74if (containingType.TypeKind is not TypeKind.Class and not TypeKind.Struct)
Recommendations\AbstractRecommendationServiceRunner.cs (3)
402if (originalConstraintType.TypeKind == TypeKind.TypeParameter) 409else if (originalConstraintType.TypeKind == TypeKind.Interface) 419else if (originalConstraintType.TypeKind == TypeKind.Class)
Rename\RenameUtilities.cs (1)
224symbol.ContainingType.TypeKind == TypeKind.Interface)
Rename\SymbolicRenameLocations.ReferenceProcessing.cs (1)
107((INamedTypeSymbol)referencedSymbol.ContainingSymbol).TypeKind == TypeKind.Interface &&
SemanticModelExtensions.cs (2)
165if (type.TypeKind == TypeKind.Array && typeArguments.IsEmpty) 174type.TypeKind == TypeKind.Pointer)
Shared\Extensions\IMethodSymbolExtensions.cs (1)
22Contract.ThrowIfFalse(delegateType.TypeKind == TypeKind.Delegate);
Shared\Extensions\ISymbolExtensions.cs (2)
493if (typeSymbol.TypeKind == TypeKind.Class) 499else if (typeSymbol.TypeKind == TypeKind.Interface)
Shared\Extensions\ITypeSymbolExtensions.cs (1)
164typeSymbol.TypeKind == TypeKind.Interface)
Shared\Extensions\ITypeSymbolExtensions.SubstituteTypesVisitor.cs (2)
83symbol = updatedContainingType.GetTypeMembers(symbol.Name, symbol.Arity).First(m => m.TypeKind == symbol.TypeKind);
Shared\Extensions\SemanticModelExtensions.cs (1)
140if (namedType.TypeKind == TypeKind.Delegate ||
Shared\Extensions\SyntaxGeneratorExtensions.cs (1)
83if (containingType?.TypeKind == TypeKind.Struct)
Shared\Utilities\SignatureComparer.cs (2)
176property1.ContainingType.TypeKind == TypeKind.Interface) 186property2.ContainingType.TypeKind == TypeKind.Interface)
SymbolEquivalenceComparer.cs (1)
222var k = x.TypeKind;
SymbolEquivalenceComparer.EquivalenceVisitor.cs (1)
500if (x.TypeKind == TypeKind.Delegate)
SymbolEquivalenceComparer.GetHashCodeVisitor.cs (1)
195if (x.TypeKind == TypeKind.Delegate)
SymbolKey.SymbolKeyWriter.cs (1)
404if (namedTypeSymbol.TypeKind == TypeKind.Error)
SymbolKey.TupleTypeSymbolKey.cs (1)
24var isError = symbol.TupleUnderlyingType!.TypeKind == TypeKind.Error;
SymbolSpecification.cs (1)
400SymbolCategory.Type => symbol is ITypeSymbol type && type.TypeKind == (TypeKind)_kind,
SymbolUsageAnalysis.Walker.cs (1)
383symbol.GetSymbolType()?.TypeKind != TypeKind.Delegate)
Microsoft.VisualStudio.LanguageServices (36)
Implementation\ContainedLanguageRefactorNotifyService.cs (1)
77else if (symbol is INamedTypeSymbol && (symbol as INamedTypeSymbol).TypeKind == TypeKind.Class)
Library\ObjectBrowser\AbstractDescriptionBuilder.cs (5)
91if (typeSymbol.TypeKind == TypeKind.Unknown || 92typeSymbol.TypeKind == TypeKind.Error || 93typeSymbol.TypeKind == TypeKind.TypeParameter || 181if (symbol.TypeKind == TypeKind.Delegate) 448return (symbol.Kind == SymbolKind.NamedType && ((INamedTypeSymbol)symbol).TypeKind == TypeKind.Delegate)
Library\ObjectBrowser\AbstractListItemFactory.cs (3)
216if (namedTypeSymbol.TypeKind != TypeKind.Interface) 268if (typeSymbol.TypeKind == TypeKind.Interface) 275else if (typeSymbol.TypeKind != TypeKind.Module &&
Library\ObjectBrowser\Lists\MemberListItem.cs (1)
30if (fieldSymbol.ContainingType.TypeKind == TypeKind.Enum)
Library\ObjectBrowser\Lists\TypeListItem.cs (1)
18_typeKind = typeSymbol.TypeKind;
Library\ObjectBrowser\ObjectList.cs (2)
444if (typeSymbol.TypeKind == TypeKind.Module) 449if (typeSymbol.TypeKind == TypeKind.Interface && typeSymbol.Interfaces.IsEmpty)
Library\VsNavInfo\NavInfoFactory.cs (3)
82else if (typeSymbol.TypeKind == TypeKind.Pointer) 86else if (typeSymbol.TypeKind == TypeKind.Array) 98if (typeSymbol.TypeKind is TypeKind.Error or
MoveStaticMembers\VisualStudioMoveStaticMembersOptionsService.cs (2)
176.Where(t => t.TypeKind == currentType.TypeKind && (t.IsStaticType() || !currentType.IsStaticType()))
Progression\GraphBuilder.cs (7)
556switch (namedType.TypeKind) 594throw ExceptionUtilities.UnexpectedValue(namedType.TypeKind); 598node[RoslynGraphProperties.TypeKind] = namedType.TypeKind; 615node[RoslynGraphProperties.TypeKind] = method.ContainingType.TypeKind; 628if (field.ContainingType.TypeKind == TypeKind.Enum) 648node[RoslynGraphProperties.TypeKind] = property.ContainingType.TypeKind; 661node[RoslynGraphProperties.TypeKind] = eventSymbol.ContainingType.TypeKind;
Progression\GraphNodeIdCreation.cs (7)
79if (symbol.TypeKind == TypeKind.TypeParameter) 107if (underlyingType.TypeKind == TypeKind.Dynamic) 216while (pointerType.PointedAtType.TypeKind == TypeKind.Pointer) 241if (underlyingType.TypeKind == TypeKind.Dynamic) 245else if (underlyingType.TypeKind != TypeKind.TypeParameter) 274while (symbol.TypeKind == TypeKind.Array) 279while (symbol.TypeKind == TypeKind.Pointer)
Progression\GraphQueries\InheritedByGraphQuery.cs (2)
29if (namedType.TypeKind == TypeKind.Class) 40else if (namedType.TypeKind == TypeKind.Interface)
Progression\GraphQueries\InheritsGraphQuery.cs (1)
46else if (namedType.TypeKind == TypeKind.Interface && !namedType.OriginalDefinition.AllInterfaces.IsEmpty)
PullMemberUp\MainDialog\PullMemberUpDialogViewModel.cs (1)
74MemberSelectionViewModel.UpdateMembersBasedOnDestinationKind(_selectedDestination.Symbol.TypeKind);
Microsoft.VisualStudio.LanguageServices.CSharp (22)
CodeModel\CSharpCodeModelService.cs (9)
685if (typeSymbol.TypeKind == TypeKind.Unknown) 698if (typeSymbol.TypeKind == TypeKind.Array) 702else if (typeSymbol.TypeKind == TypeKind.Pointer) 707typeSymbol.TypeKind is TypeKind.Dynamic or 757if (typeSymbol.TypeKind is TypeKind.Class or 3716return typeSymbol.TypeKind == TypeKind.Class; 3720return typeSymbol.TypeKind == TypeKind.Interface; 3813return typeSymbol.TypeKind == TypeKind.Interface; 3827typeSymbol.TypeKind != TypeKind.Interface)
CodeModel\CSharpCodeModelService_Prototype.cs (1)
39if (namedType.TypeKind == TypeKind.Delegate)
ObjectBrowser\DescriptionBuilder.cs (11)
35Debug.Assert(typeSymbol.TypeKind == TypeKind.Delegate); 69switch (typeSymbol.TypeKind) 88Debug.Fail("Invalid type kind encountered: " + typeSymbol.TypeKind.ToString()); 97if (typeSymbol.TypeKind == TypeKind.Enum) 176typeSymbol.TypeKind != TypeKind.Interface) 182typeSymbol.TypeKind != TypeKind.Struct && 183typeSymbol.TypeKind != TypeKind.Enum && 184typeSymbol.TypeKind != TypeKind.Delegate) 244if (memberSymbol.ContainingType != null && memberSymbol.ContainingType.TypeKind == TypeKind.Interface) 259fieldSymbol.ContainingType.TypeKind == TypeKind.Enum) 466if (fieldSymbol.ContainingType.TypeKind != TypeKind.Enum)
Progression\CSharpProgressionLanguageService.cs (1)
124case IFieldSymbol f: return f.ContainingType.TypeKind == TypeKind.Enum ? null : f.Type;
Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests (1)
GlyphExtensionsTests.cs (1)
235namedTypeMock.SetupGet(s => s.TypeKind).Returns(typeKind);
Microsoft.VisualStudio.LanguageServices.Implementation (15)
CodeModel\AbstractCodeModelService.cs (6)
222switch (namedType.TypeKind) 259if (typeSymbol.TypeKind is TypeKind.Pointer or 266if (typeSymbol.TypeKind is TypeKind.Error or 278if (typeSymbol.TypeKind == TypeKind.Dynamic) 546switch (typeSymbol.TypeKind) 568Debug.Fail("Unexpected TypeKind: " + typeSymbol.TypeKind);
CodeModel\CodeTypeRef.cs (3)
93if (typeSymbol.TypeKind == Microsoft.CodeAnalysis.TypeKind.Array) 97else if (typeSymbol.TypeKind == Microsoft.CodeAnalysis.TypeKind.Pointer) 132if (typeSymbol.TypeKind == Microsoft.CodeAnalysis.TypeKind.Array)
CodeModel\Collections\BasesCollection.cs (2)
77if (symbol.TypeKind == TypeKind.Interface || _interfaces) 139if (symbol.TypeKind == TypeKind.Interface || _interfaces)
CodeModel\ExternalElements\AbstractExternalCodeType.cs (1)
63if (typeSymbol.TypeKind == TypeKind.Interface)
CodeModel\MethodXml\AbstractMethodXmlBuilder.cs (1)
388if (type.TypeKind == TypeKind.Array)
CodeModel\RootCodeModel.cs (2)
144typeSymbol.TypeKind == TypeKind.Error || 145typeSymbol.TypeKind == TypeKind.Unknown)
Microsoft.VisualStudio.LanguageServices.VisualBasic (31)
CodeModel\Extenders\GenericExtender.vb (4)
35Select Case typeSymbol.TypeKind 48Select Case typeSymbol.TypeKind 63Select Case typeSymbol.TypeKind 85Select Case typeSymbol.TypeKind
CodeModel\MethodXML\MethodXmlBuilder.vb (3)
80If type.TypeKind = TypeKind.Array AndAlso 372symbolOpt?.ContainingType?.TypeKind = TypeKind.Module Then 595If type.TypeKind = TypeKind.Array Then
CodeModel\VisualBasicCodeModelService.vb (10)
757If typeSymbol.TypeKind = TypeKind.Array Then 761If typeSymbol.TypeKind = TypeKind.Pointer Then 765If typeSymbol IsNot Nothing AndAlso Not typeSymbol.TypeKind = TypeKind.Error Then 770If typeSymbol.TypeKind = TypeKind.Enum Then 805If typeSymbol.TypeKind = TypeKind.Pointer Then 809If typeSymbol.TypeKind = TypeKind.TypeParameter Then 2907(symbol.Kind = SymbolKind.NamedType AndAlso DirectCast(symbol, INamedTypeSymbol).TypeKind = TypeKind.Module) OrElse 4247Return typeSymbol.TypeKind = TypeKind.Class 4249Return typeSymbol.TypeKind = TypeKind.Interface 4315Return typeSymbol.TypeKind = TypeKind.Interface
CodeModel\VisualBasicCodeModelService_Prototype.vb (1)
45If namedTypeSymbol.TypeKind = TypeKind.Delegate Then
ObjectBrowser\DescriptionBuilder.vb (12)
30Debug.Assert(typeSymbol.TypeKind = TypeKind.Delegate) 67Select Case typeSymbol.TypeKind 79Debug.Fail("Invalid type kind encountered: " & typeSymbol.TypeKind.ToString()) 94If typeSymbol.TypeKind = TypeKind.Class Then 105If typeSymbol.TypeKind = TypeKind.Enum Then 279If eventType IsNot Nothing AndAlso eventType.TypeKind = TypeKind.Delegate Then 314typeSymbol.TypeKind <> TypeKind.Interface Then 319typeSymbol.TypeKind <> TypeKind.Delegate AndAlso 320typeSymbol.TypeKind <> TypeKind.Module AndAlso 321typeSymbol.TypeKind <> TypeKind.Enum AndAlso 322typeSymbol.TypeKind <> TypeKind.Structure Then 329If memberSymbol.ContainingType IsNot Nothing And memberSymbol.ContainingType.TypeKind = TypeKind.Interface Then
Progression\VisualBasicProgressionLanguageService.vb (1)
82If symbol.Kind = SymbolKind.Field AndAlso symbol.ContainingType.TypeKind = TypeKind.Enum Then