4344 references to TypeKind
Microsoft.CodeAnalysis (18)
Compilation\Expression.cs (1)
41if (type.TypeKind == TypeKind.Enum)
MetadataReader\MetadataDecoder.cs (7)
400Debug.Assert(!refersToNoPiaLocalType || generic.TypeKind == TypeKind.Error); 1022value = (type.IsReferenceType || type.TypeKind == TypeKind.Pointer || type.TypeKind == TypeKind.FunctionPointer) ? ConstantValue.Null : ConstantValue.Bad; 1610return (type.TypeKind == TypeKind.Enum) ? TypedConstantKind.Enum : TypedConstantKind.Primitive; 2227if (type.TypeKind == TypeKind.Error) 2232Debug.Assert(type.TypeKind == TypeKind.Array); 2238if (type.TypeKind == TypeKind.Error)
SymbolDisplay\AbstractSymbolDisplayVisitor.cs (2)
98if (type.TypeKind == TypeKind.Enum) 139if (typeSymbol.TypeKind != TypeKind.Enum)
Symbols\ITypeSymbol.cs (1)
25TypeKind TypeKind { get; }
Symbols\ITypeSymbolInternal.cs (1)
14TypeKind TypeKind { get; }
Symbols\TypedConstant.cs (4)
141if (_type!.SpecialType == specialType || (_type.TypeKind == TypeKind.Enum && specialType == SpecialType.System_Enum)) 180case TypeKind.Array: 182case TypeKind.Enum: 184case TypeKind.Error:
Symbols\TypeKind.cs (2)
97internal const TypeKind FunctionType = (TypeKind)255;
Microsoft.CodeAnalysis.CodeStyle (88)
AbstractRemoveUnusedParametersAndValuesDiagnosticAnalyzer.SymbolStartAnalyzer.BlockAnalyzer.cs (1)
150if (value.Type.TypeKind == TypeKind.Dynamic)
AbstractUseAutoPropertyAnalyzer.cs (3)
89if (namedType.TypeKind is not TypeKind.Class and not TypeKind.Struct and not TypeKind.Module)
EditorConfigNamingStyleParser_SymbolSpec.cs (13)
125private static readonly SymbolKindOrTypeKind _class = new(TypeKind.Class); 126private static readonly SymbolKindOrTypeKind _struct = new(TypeKind.Struct); 127private static readonly SymbolKindOrTypeKind _interface = new(TypeKind.Interface); 128private static readonly SymbolKindOrTypeKind _enum = new(TypeKind.Enum); 134private static readonly SymbolKindOrTypeKind _delegate = new(TypeKind.Delegate); 385case TypeKind.Class: 388case TypeKind.Struct: 391case TypeKind.Interface: 394case TypeKind.Enum: 397case TypeKind.Delegate: 400case TypeKind.Module: 403case TypeKind.Pointer: 406case TypeKind.TypeParameter:
INamedTypeSymbolExtensions.cs (10)
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 (12)
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(); 263case TypeKind.Array: 264case TypeKind.Delegate: 625if (type != null && type.IsValueType && type.TypeKind == TypeKind.Enum) 677if (type.TypeKind != TypeKind.Struct)
NamingStyleRules.cs (2)
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 (4)
219private static TypeKind GetTypeKind(INamedTypeSymbol x) 222var k = x.TypeKind; 223return k == TypeKind.Module ? TypeKind.Class : k;
SymbolEquivalenceComparer.EquivalenceVisitor.cs (7)
285var xTypeKind = GetTypeKind(x); 286var yTypeKind = GetTypeKind(y); 288if (xTypeKind == TypeKind.Error || 289yTypeKind == TypeKind.Error) 306var typeKind1 = GetTypeKind(type1); 309var typeKind2 = GetTypeKind(type2); 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 (19)
75new SymbolKindOrTypeKind(TypeKind.Class), 76new SymbolKindOrTypeKind(TypeKind.Struct), 77new SymbolKindOrTypeKind(TypeKind.Interface), 78new SymbolKindOrTypeKind(TypeKind.Delegate), 79new SymbolKindOrTypeKind(TypeKind.Enum), 80new SymbolKindOrTypeKind(TypeKind.Module), 81new SymbolKindOrTypeKind(TypeKind.Pointer), 88new SymbolKindOrTypeKind(TypeKind.TypeParameter), 313foreach (var typeKindElement in symbolKindListElement.Elements(nameof(TypeKind))) 382public SymbolKindOrTypeKind(TypeKind typeKind) 393public TypeKind? TypeKind => (_category == SymbolCategory.Type) ? (TypeKind)_kind : null; 400SymbolCategory.Type => symbol is ITypeSymbol type && type.TypeKind == (TypeKind)_kind, 409SymbolCategory.Type => new XElement(nameof(TypeKind), GetTypeKindString((TypeKind)_kind)), 414private static string GetTypeKindString(TypeKind typeKind) 421CodeAnalysis.TypeKind.Structure => nameof(CodeAnalysis.TypeKind.Struct), 463=> new((TypeKind)Enum.Parse(typeof(TypeKind), typeKindElement.Value));
SymbolUsageAnalysis.Walker.cs (1)
383symbol.GetSymbolType()?.TypeKind != TypeKind.Delegate)
Microsoft.CodeAnalysis.CodeStyle.Fixes (21)
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)
CodeGenerationArrayTypeSymbol.cs (2)
50public override TypeKind TypeKind => TypeKind.Array;
CodeGenerationConstructedNamedTypeSymbol.cs (1)
93public override TypeKind TypeKind => _constructedFrom.TypeKind;
CodeGenerationHelpers.cs (1)
153if (namedType.TypeKind != TypeKind.Enum)
CodeGenerationNamedTypeSymbol.cs (3)
34TypeKind typeKind, 68public override TypeKind TypeKind { get; } 100return this.TypeKind == TypeKind.Delegate
CodeGenerationPointerTypeSymbol.cs (2)
25public override TypeKind TypeKind => TypeKind.Pointer;
CodeGenerationSymbolFactory.cs (3)
420TypeKind typeKind, string name, 439bool isRecord, TypeKind typeKind, string name, 490typeKind: TypeKind.Delegate,
CodeGenerationTypeParameterSymbol.cs (2)
70public override TypeKind TypeKind => TypeKind.TypeParameter;
CodeGenerationTypeSymbol.cs (3)
36public abstract TypeKind TypeKind { get; } 48public bool IsValueType => TypeKind is TypeKind.Struct or TypeKind.Enum;
Microsoft.CodeAnalysis.CodeStyle.UnitTestUtilities (3)
NamingStylesTestOptionSets.cs (3)
113case TypeKind typeKind: 135ImmutableArray.Create(new SymbolSpecification.SymbolKindOrTypeKind(TypeKind.Class)), 615ImmutableArray.Create(new SymbolSpecification.SymbolKindOrTypeKind(TypeKind.Interface)),
Microsoft.CodeAnalysis.CSharp (736)
Binder\Binder.ValueChecks.cs (1)
2639if (parameters[paramIndex] is not { IsParams: true, Type.TypeKind: TypeKind.Array })
Binder\Binder_Attributes.cs (2)
58if (boundTypeSymbol.TypeKind != TypeKind.Error) 730parameter.Type.TypeKind == TypeKind.Array &&
Binder\Binder_Constraints.cs (14)
463type.TypeKind == TypeKind.Class) 543case TypeKind.Error: 544case TypeKind.TypeParameter: 547case TypeKind.Interface: 550case TypeKind.Dynamic: 555case TypeKind.Class: 558goto case TypeKind.Struct; 568case TypeKind.Delegate: 569case TypeKind.Enum: 570case TypeKind.Struct: 575case TypeKind.Array: 576case TypeKind.Pointer: 577case TypeKind.FunctionPointer: 582case TypeKind.Submission:
Binder\Binder_Conversions.cs (26)
380case TypeKind.Enum: 381case TypeKind.Struct: 382case TypeKind.Class when !type.IsAnonymousType: // We don't want to enable object creation with unspeakable types 384case TypeKind.TypeParameter: 386case TypeKind.Delegate: 388case TypeKind.Interface: 390case TypeKind.Array: 391case TypeKind.Class: 392case TypeKind.Dynamic: 394goto case TypeKind.Error; 395case TypeKind.Pointer: 396case TypeKind.FunctionPointer: 398goto case TypeKind.Error; 399case TypeKind.Error: 1276Debug.Assert(delegateType is NamedTypeSymbol { TypeKind: TypeKind.Delegate, DelegateInvokeMethod: { HasUseSiteError: false } } 1277|| delegateType.TypeKind == TypeKind.FunctionPointer, 1383static bool hasConversion(TypeKind targetKind, Conversions conversions, TypeSymbol source, TypeSymbol destination, 1401return targetKind == TypeKind.FunctionPointer 1406static ErrorCode getMethodMismatchErrorCode(TypeKind type) 1409TypeKind.Delegate => ErrorCode.ERR_MethDelegateMismatch, 1410TypeKind.FunctionPointer => ErrorCode.ERR_MethFuncPtrMismatch, 1414static ErrorCode getRefMismatchErrorCode(TypeKind type) 1417TypeKind.Delegate => ErrorCode.ERR_DelegateRefMismatch, 1418TypeKind.FunctionPointer => ErrorCode.ERR_FuncPtrRefMismatch, 1443Debug.Assert(Conversions.IsAssignableFromMulticastDelegate(delegateOrFuncPtrType, ref discardedUseSiteInfo) || delegateOrFuncPtrType.TypeKind == TypeKind.Delegate || delegateOrFuncPtrType.TypeKind == TypeKind.FunctionPointer);
Binder\Binder_Crefs.cs (12)
556case TypeKind.Array: 558case TypeKind.Pointer: 560case TypeKind.FunctionPointer: 576case TypeKind.Delegate: 577case TypeKind.Class: 578case TypeKind.Interface: 579case TypeKind.Struct: 580case TypeKind.Enum: 581case TypeKind.Error: 597case TypeKind.Dynamic: 598case TypeKind.TypeParameter: 989Debug.Assert(type.TypeKind != TypeKind.Error || typeSyntax.ContainsDiagnostics || !typeSyntax.SyntaxTree.ReportDocumentationCommentDiagnostics(), "Why wasn't there a diagnostic?");
Binder\Binder_Expressions.cs (38)
2125if (this.ContainingType.TypeKind == TypeKind.Submission 2129if (memberDeclaringType.TypeKind == TypeKind.Submission) 2565if (targetType.TypeKind != TypeKind.Delegate || 2613TypeKind.FunctionPointer => ErrorCode.ERR_MethFuncPtrMismatch, 2614TypeKind.Delegate => ErrorCode.ERR_CannotConvertAddressOfToDelegate, 4122if ((containingType.TypeKind == TypeKind.Enum || containingType.TypeKind == TypeKind.Struct) && initializerArgumentListOpt == null) 4174else if (initializerArgumentListOpt != null && containingType.TypeKind == TypeKind.Struct) 4442case TypeKind.Struct: 4443case TypeKind.Class: 4444case TypeKind.Enum: 4445case TypeKind.Error: 4448case TypeKind.Delegate: 4451case TypeKind.Interface: 4454case TypeKind.TypeParameter: 4457case TypeKind.Submission: 4461case TypeKind.Pointer: 4462case TypeKind.FunctionPointer: 4465goto case TypeKind.Class; 4467case TypeKind.Dynamic: 4469case TypeKind.Array: 4473goto case TypeKind.Class; 4600else if (argument.Type.TypeKind == TypeKind.Delegate) 4700Debug.Assert(type.TypeKind is TypeKind.Class or TypeKind.Struct); 5844Debug.Assert(coClassType.TypeKind == TypeKind.Class || coClassType.TypeKind == TypeKind.Error); 6191if (type.TypeKind == TypeKind.Enum) 6770if (leftType.TypeKind == TypeKind.TypeParameter) 7622if (receiverOpt is not BoundTypeExpression { Type: { TypeKind: TypeKind.TypeParameter } }) 7946case TypeKind.Array: 7949case TypeKind.Dynamic: 7952case TypeKind.Pointer: 7955case TypeKind.Class: 7956case TypeKind.Struct: 7957case TypeKind.Interface: 7958case TypeKind.TypeParameter: 7961case TypeKind.Submission: // script class is synthesized and should not be used as a type of an indexer expression:
Binder\Binder_InterpolatedString.cs (1)
295&& unconvertedInterpolatedString.Parts.All(p => p is not BoundStringInsert { Value.Type.TypeKind: TypeKind.Dynamic });
Binder\Binder_Lookup.cs (23)
184case TypeKind.TypeParameter: 188case TypeKind.Interface: 192case TypeKind.Class: 193case TypeKind.Struct: 194case TypeKind.Enum: 195case TypeKind.Delegate: 196case TypeKind.Array: 197case TypeKind.Dynamic: 198case TypeKind.Submission: 202case TypeKind.Error: 206case TypeKind.Pointer: 207case TypeKind.FunctionPointer: 211case TypeKind.Unknown: 806Debug.Assert(!type.IsInterfaceType() && type.TypeKind != TypeKind.TypeParameter); 1867case TypeKind.TypeParameter: 1871case TypeKind.Interface: 1875case TypeKind.Class: 1876case TypeKind.Struct: 1877case TypeKind.Enum: 1878case TypeKind.Delegate: 1879case TypeKind.Array: 1880case TypeKind.Dynamic: 1881case TypeKind.Submission:
Binder\Binder_Operators.cs (15)
606leftType?.TypeKind == TypeKind.FunctionPointer && rightType?.TypeKind == TypeKind.FunctionPointer) 785(object)left.Type != null && left.Type.TypeKind == TypeKind.Delegate) 3168return targetType.TypeKind == TypeKind.Error; 3225var targetTypeKind = targetType.TypeKind; 3268if (targetTypeKind == TypeKind.Dynamic) 3279if (operandType.TypeKind == TypeKind.Dynamic) 3623var targetTypeKind = targetType.TypeKind; 3656if (operand.HasAnyErrors || targetTypeKind == TypeKind.Error) 3672if (targetTypeKind == TypeKind.TypeParameter) 3676else if (targetTypeKind == TypeKind.Pointer || targetTypeKind == TypeKind.FunctionPointer) 3727var operandTypeKind = operandType.TypeKind; 3737if (operandTypeKind == TypeKind.Dynamic) 3744if (targetTypeKind == TypeKind.Dynamic)
Binder\Binder_Patterns.cs (1)
1243if (iTupleType.TypeKind != TypeKind.Interface)
Binder\Binder_Query.cs (1)
978if (ultimateReceiver.Type.TypeKind == TypeKind.TypeParameter)
Binder\Binder_QueryErrors.cs (1)
82if (instanceType.TypeKind == TypeKind.Array || name == "Cast" && HasCastToQueryProvider(instanceType, ref useSiteInfo))
Binder\Binder_Statements.cs (6)
2273if (targetType.TypeKind == TypeKind.Error) 2333if (targetType.TypeKind == TypeKind.TypeParameter) 2428case TypeKind.FunctionPointer when fromAddressOf: 2431case TypeKind.FunctionPointer: 2434case TypeKind.Delegate when fromAddressOf: 2437case TypeKind.Delegate:
Binder\ForEachLoopBinder.cs (7)
1392case TypeKind.Class: 1393case TypeKind.Struct: 1394case TypeKind.Interface: 1395case TypeKind.TypeParameter: // Not specifically mentioned in the spec, but consistent with Dev10. 1396case TypeKind.Dynamic: // Not specifically mentioned in the spec, but consistent with Dev10. 1399case TypeKind.Submission: 1580if (type.TypeKind == TypeKind.TypeParameter)
Binder\PatternExplainer.cs (1)
649if (type is NamedTypeSymbol { TypeKind: TypeKind.Enum } e)
Binder\Semantics\AccessCheck.cs (3)
367if (containingType.TypeKind == TypeKind.Submission) 429if (originalContainingType.TypeKind == TypeKind.Submission) 698return containingType.TypeKind == TypeKind.Struct ? ErrorCode.ERR_ProtectedInStruct : ErrorCode.WRN_ProtectedInSealed;
Binder\Semantics\Conversions\Conversions.cs (1)
402if (spanType.TypeKind == TypeKind.Struct && spanType.IsRefLikeType)
Binder\Semantics\Conversions\ConversionsBase.cs (10)
2032if (otherType.TypeKind == TypeKind.Enum) 2503case TypeKind.Class: 2512case TypeKind.Interface: 2517case TypeKind.Delegate: 2522case TypeKind.TypeParameter: 2525case TypeKind.Array: 2714if ((destination.TypeKind == TypeKind.TypeParameter) && 2751if ((destination.TypeKind == TypeKind.TypeParameter) && 3054if ((destination.TypeKind == TypeKind.TypeParameter) && 3081if ((source.TypeKind == TypeKind.TypeParameter) &&
Binder\Semantics\Conversions\UserDefinedExplicitConversions.cs (1)
257if (op.ReturnsVoid || op.ParameterCount != 1 || op.ReturnType.TypeKind == TypeKind.Error)
Binder\Semantics\Operators\OperatorFacts.cs (4)
21case TypeKind.Struct: 22case TypeKind.Class: 23case TypeKind.TypeParameter: 24case TypeKind.Interface:
Binder\Semantics\OverloadResolution\MethodTypeInference.cs (15)
487if (type.TypeKind != TypeKind.TypeParameter) return false; 1711if (source.TypeKind == TypeKind.Pointer && target.TypeKind == TypeKind.Pointer) 2039if (target.TypeKind != TypeKind.Class) 2058if (source.TypeKind == TypeKind.Class) 2062else if (source.TypeKind == TypeKind.TypeParameter) 2100case TypeKind.Struct: 2101case TypeKind.Class: 2102case TypeKind.Interface: 2106case TypeKind.TypeParameter: 2436if (source.TypeKind != TypeKind.Class || target.TypeKind != TypeKind.Class) 2477case TypeKind.Struct: 2478case TypeKind.Class: 2479case TypeKind.Interface:
Binder\Semantics\OverloadResolution\OverloadResolution.cs (3)
2083if (m1.Member.ContainingType.TypeKind == TypeKind.Submission && m2.Member.ContainingType.TypeKind == TypeKind.Submission) 2307if (t1.TypeKind == TypeKind.Pointer)
Binder\Semantics\OverloadResolution\OverloadResolutionResult.cs (2)
1185else if (argument.Kind == BoundKind.MethodGroup && parameterType.TypeKind == TypeKind.Delegate && 1190else if (argument.Kind == BoundKind.MethodGroup && parameterType.TypeKind == TypeKind.FunctionPointer)
BoundTree\BoundDagTest.cs (1)
83var typeName = b.Type.TypeKind == TypeKind.Error ? "<error type>" : b.Type.ToString();
CodeGen\EmitAddress.cs (2)
417Debug.Assert(arrayAccess.Type.TypeKind == TypeKind.TypeParameter, "constrained call should only be used with type parameter types"); 508if (receiverType.TypeKind == TypeKind.TypeParameter)
CodeGen\EmitConversion.cs (1)
330if (receiver is not BoundTypeExpression { Type: { TypeKind: TypeKind.TypeParameter } })
CodeGen\EmitExpression.cs (8)
428(receiverType.IsReferenceType && receiverType.TypeKind == TypeKind.TypeParameter) || 795Debug.Assert(thisType.TypeKind != TypeKind.TypeParameter); 1057if (elementType.TypeKind == TypeKind.TypeParameter) 1628if (receiver is not BoundTypeExpression { Type: { TypeKind: TypeKind.TypeParameter } }) 2437if (left.Kind == BoundKind.ArrayAccess && left.Type.TypeKind == TypeKind.TypeParameter && !left.Type.IsValueType) 3258if (((object)type != null) && (type.TypeKind == TypeKind.TypeParameter) && constantValue.IsNull) 3826Debug.Assert(load.Type is { TypeKind: TypeKind.FunctionPointer }); 3832if (load.ConstrainedToTypeOpt is not { TypeKind: TypeKind.TypeParameter })
CodeGen\EmitStackAllocInitializer.cs (1)
23var elementType = (type.TypeKind == TypeKind.Pointer
CodeGen\EmitStatement.cs (1)
180if (exprType?.TypeKind == TypeKind.TypeParameter)
CodeGen\Optimizer.cs (2)
1125if ((method.IsAbstract || method.IsVirtual) && receiver is BoundTypeExpression { Type: { TypeKind: TypeKind.TypeParameter } } typeExpression) 2146if (receiverOpt is BoundTypeExpression { AliasOpt: null, BoundContainingTypeOpt: null, BoundDimensionsOpt: { IsEmpty: true }, Type: { TypeKind: TypeKind.TypeParameter } } typeExpression)
Compilation\CSharpCompilation.cs (9)
1773if (mainType is null || mainType.IsGenericType || (mainType.TypeKind != TypeKind.Class && mainType.TypeKind != TypeKind.Struct && !mainType.IsInterface)) 2069if (firstType.TypeKind != TypeKind.Array) 3941if (csharpReturnType.TypeKind is TypeKind.Dynamic || 3942csharpLeftType.TypeKind is TypeKind.Dynamic || 3943csharpReturnType.TypeKind is TypeKind.Dynamic) 3985if (csharpLeftType.TypeKind is TypeKind.Delegate && 4167if (csharpReturnType.TypeKind is TypeKind.Dynamic || 4168csharpOperandType.TypeKind is TypeKind.Dynamic)
Compilation\CSharpSemanticModel.cs (3)
546if (varTypeInfo.Type is { TypeKind: not TypeKind.Error }) 976if (varTypeInfo.Type is { TypeKind: not TypeKind.Error }) 2240else if (boundExpr is BoundConversion { ConversionKind: ConversionKind.MethodGroup, Conversion: var exprConversion, Type: { TypeKind: TypeKind.FunctionPointer }, SymbolOpt: var symbol })
Compiler\ClsComplianceChecker.cs (22)
247if (symbol.TypeKind == TypeKind.Delegate) 278if (paramType.TypeKind == TypeKind.Array || 467if (type.TypeKind == TypeKind.Delegate) 598if (argument.TypeInternal.TypeKind == TypeKind.Array) 614if (argument.TypeInternal.TypeKind == TypeKind.Array) 632if (type.TypeKind == TypeKind.Array) 731System.Diagnostics.Debug.Assert(method.ContainingType.TypeKind == TypeKind.Delegate); 978case TypeKind.Array: 980case TypeKind.Dynamic: 985case TypeKind.Pointer: 986case TypeKind.FunctionPointer: 988case TypeKind.Error: 989case TypeKind.TypeParameter: 993case TypeKind.Class: 994case TypeKind.Struct: 995case TypeKind.Interface: 996case TypeKind.Delegate: 997case TypeKind.Enum: 998case TypeKind.Submission: 1025if (type.TypeKind == TypeKind.Error) 1365TypeKind typeKind = xType.TypeKind; 1371if (typeKind == TypeKind.Array)
Compiler\MethodCompiler.cs (3)
617containingType is { IsImplicitlyDeclared: false, TypeKind: TypeKind.Class or TypeKind.Struct or TypeKind.Interface } &&
Emitter\Model\MethodSymbolAdapter.cs (1)
612return this.IsExtern || (object)ContainingType != null && ContainingType.TypeKind == TypeKind.Delegate;
Emitter\Model\NamedTypeSymbolAdapter.cs (4)
41get { return AdaptedNamedTypeSymbol.TypeKind == TypeKind.Enum; } 508case TypeKind.Enum: 509case TypeKind.Delegate: 511case TypeKind.Interface:
Emitter\Model\PEModuleBuilder.cs (3)
1208if (symbol.ContainingType?.TypeKind == TypeKind.Submission) 1230if (symbol.ContainingType.TypeKind == TypeKind.Submission) 1241Debug.Assert(symbol.ContainingType.TypeKind != TypeKind.Submission);
Emitter\NoPia\EmbeddedType.cs (3)
159case TypeKind.Enum: 160case TypeKind.Delegate: 162case TypeKind.Interface:
Emitter\NoPia\EmbeddedTypesManager.cs (16)
253case TypeKind.Interface: 276goto case TypeKind.Struct; 277case TypeKind.Struct: 278case TypeKind.Delegate: 279case TypeKind.Enum: 385Debug.Assert(namedType.TypeKind == TypeKind.Struct || namedType.TypeKind == TypeKind.Enum || namedType.TypeKind == TypeKind.Delegate); 388if (namedType.TypeKind == TypeKind.Struct || namedType.TypeKind == TypeKind.Enum) 438var containerKind = field.AdaptedFieldSymbol.ContainingType.TypeKind; 441if (containerKind == TypeKind.Interface || containerKind == TypeKind.Delegate || 442(containerKind == TypeKind.Struct && (field.AdaptedFieldSymbol.IsStatic || field.AdaptedFieldSymbol.DeclaredAccessibility != Accessibility.Public))) 477case TypeKind.Struct: 478case TypeKind.Enum:
FlowAnalysis\AbstractFlowPass.cs (1)
2063fieldSymbol.ContainingType.TypeKind == TypeKind.Struct &&
FlowAnalysis\DefiniteAssignment.cs (8)
103&& CurrentSymbol is MethodSymbol { MethodKind: MethodKind.Constructor, ContainingType.TypeKind: TypeKind.Struct }; 1009variableBySlot[slot].Symbol.GetTypeOrReturnType().TypeKind == TypeKind.Struct; 1087(_trackClassFields || type.TypeKind == TypeKind.Struct); 1214Debug.Assert(CurrentSymbol is MethodSymbol { MethodKind: MethodKind.Constructor, ContainingType.TypeKind: TypeKind.Struct }); 1261if (CurrentSymbol is not MethodSymbol { MethodKind: MethodKind.Constructor, ContainingType.TypeKind: TypeKind.Struct }) 2466case TypeKind.Array: 2470case TypeKind.Class: 2471case TypeKind.Struct:
FlowAnalysis\EmptyStructTypeCache.cs (4)
240case TypeKind.Enum: 241case TypeKind.Struct: 242case TypeKind.TypeParameter: 244case TypeKind.Array:
FlowAnalysis\NullableWalker.cs (7)
2289return valueType.Type?.TypeKind == TypeKind.TypeParameter && 2481targetType.TypeKind == TypeKind.TypeParameter || 2566fieldOrPropertyType.TypeKind == TypeKind.TypeParameter || 4018if (type.TypeKind != TypeKind.Struct) 5073{ TypeKind: TypeKind.Interface } => type.AllInterfacesNoUseSiteDiagnostics, 7997NamedTypeSymbol { TypeKind: TypeKind.Delegate, DelegateInvokeMethod: { Parameters: { } parameters } signature } => (signature, parameters), 8717case BoundExpression arg when arg.Type is { TypeKind: TypeKind.Delegate }:
Lowering\AsyncRewriter\AsyncMethodToStateMachineRewriter.cs (2)
539LocalSymbol thisTemp = (F.CurrentType.TypeKind == TypeKind.Class) ? F.SynthesizedLocal(F.CurrentType) : null; 600LocalSymbol thisTemp = (F.CurrentType.TypeKind == TypeKind.Class) ? F.SynthesizedLocal(F.CurrentType) : null;
Lowering\AsyncRewriter\AsyncRewriter.cs (6)
74var typeKind = (compilationState.Compilation.Options.EnableEditAndContinue || method.IsIterator) ? TypeKind.Class : TypeKind.Struct; 172if (F.CurrentType.TypeKind == TypeKind.Class) 195if (stateMachineType.TypeKind == TypeKind.Class) 204if (frameType.TypeKind == TypeKind.Class)
Lowering\AsyncRewriter\AsyncStateMachine.cs (3)
20private readonly TypeKind _typeKind; 25public AsyncStateMachine(VariableSlotAllocator variableAllocatorOpt, TypeCompilationState compilationState, MethodSymbol asyncMethod, int asyncMethodOrdinal, TypeKind typeKind) 64public override TypeKind TypeKind
Lowering\ClosureConversion\ExpressionLambdaRewriter.cs (2)
533if (e.StrippedType().TypeKind == TypeKind.Enum) 720if ((object)d != null && d.TypeKind == TypeKind.Delegate)
Lowering\ClosureConversion\SynthesizedClosureEnvironment.cs (3)
38public override TypeKind TypeKind { get; } 50TypeKind = isStruct ? TypeKind.Struct : TypeKind.Class;
Lowering\Instrumentation\LocalStateTracingInstrumenter.cs (1)
239_ when variableType.TypeKind is TypeKind.Struct
Lowering\IteratorRewriter\IteratorStateMachine.cs (2)
46public override TypeKind TypeKind 48get { return TypeKind.Class; }
Lowering\LocalRewriter\DelegateCacheContainer.cs (2)
44public override TypeKind TypeKind => TypeKind.Class;
Lowering\LocalRewriter\DynamicSiteContainer.cs (2)
29public override TypeKind TypeKind 31get { return TypeKind.Class; }
Lowering\LocalRewriter\LocalRewriter.cs (1)
720Debug.Assert(node.Expression.Type is { TypeKind: TypeKind.Array });
Lowering\LocalRewriter\LocalRewriter_BinaryOperator.cs (4)
2180Debug.Assert(loweredLeft.Type is { TypeKind: TypeKind.Pointer }); 2185Debug.Assert(loweredRight.Type is { TypeKind: TypeKind.Pointer }); 2372Debug.Assert(loweredLeft.Type is { TypeKind: TypeKind.Pointer }); 2373Debug.Assert(loweredRight.Type is { TypeKind: TypeKind.Pointer });
Lowering\LocalRewriter\LocalRewriter_Conversion.cs (1)
541case ConversionKind.MethodGroup when oldNodeOpt is { Type: { TypeKind: TypeKind.FunctionPointer } funcPtrType }:
Lowering\LocalRewriter\LocalRewriter_FixedStatement.cs (2)
213else if (fixedCollectionInitializer.Expression.Type is { TypeKind: TypeKind.Array }) 241Debug.Assert(initializerExpr.Type is { TypeKind: TypeKind.Pointer });
Lowering\LocalRewriter\LocalRewriter_ForEachStatement.cs (2)
703Debug.Assert(collectionExpression.Type is { TypeKind: TypeKind.Array }); 828Debug.Assert(collectionExpression.Type is { TypeKind: TypeKind.Array });
Lowering\LocalRewriter\LocalRewriter_PreviousSubmissionReference.cs (1)
15Debug.Assert(targetType.TypeKind == TypeKind.Submission);
Lowering\LocalRewriter\LocalRewriter_PropertyAccess.cs (1)
37if (rewrittenReceiverOpt is { Type: { TypeKind: TypeKind.Array } } && !isLeftOfAssignment)
Lowering\LocalRewriter\LocalRewriter_StringInterpolation.cs (1)
235if (value.Type?.TypeKind == TypeKind.Dynamic)
Lowering\LocalRewriter\LocalRewriter_UnaryOperator.cs (1)
755Debug.Assert(binaryOperand.Type is { TypeKind: TypeKind.Pointer });
Lowering\StateMachineRewriter\IteratorAndAsyncCaptureWalker.cs (1)
64if (!method.IsStatic && method.ContainingType.TypeKind == TypeKind.Struct)
Lowering\StateMachineRewriter\MethodToStateMachineRewriter.cs (2)
439if (type.IsReferenceType || type.TypeKind == TypeKind.TypeParameter) return true; // type parameter or reference type 440if (type.TypeKind != TypeKind.Struct) return false; // enums, etc
Lowering\SyntheticBoundNodeFactory.cs (3)
1097Debug.Assert(array.Type is { TypeKind: TypeKind.Array }); 1103Debug.Assert(array.Type is { TypeKind: TypeKind.Array }); 1116Debug.Assert(array.Type is { TypeKind: TypeKind.Array });
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 (26)
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 && 592case TypeKind.Class when symbol.IsRecord: 594case TypeKind.Struct when symbol.IsRecord: 596case TypeKind.Submission: 597case TypeKind.Module: 598case TypeKind.Class: 600case TypeKind.Delegate: 602case TypeKind.Enum: 604case TypeKind.Error: 606case TypeKind.Interface: 608case TypeKind.Struct: 678if (symbol.IsAnonymousType && symbol.TypeKind != TypeKind.Delegate) 692case TypeKind.Class when symbol.IsRecord: 697case TypeKind.Struct when symbol.IsRecord: 713case TypeKind.Module: 714case TypeKind.Class: 719case TypeKind.Enum: 724case TypeKind.Delegate: 729case TypeKind.Interface: 734case TypeKind.Struct:
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)
Symbols\AnonymousTypes\PublicSymbols\AnonymousManager.TypeOrDelegatePublicSymbol.cs (1)
162public abstract override TypeKind TypeKind { get; }
Symbols\AnonymousTypes\PublicSymbols\AnonymousType.DelegatePublicSymbol.cs (2)
37public override TypeKind TypeKind => TypeKind.Delegate;
Symbols\AnonymousTypes\PublicSymbols\AnonymousType.TypePublicSymbol.cs (2)
78public override TypeKind TypeKind 80get { return TypeKind.Class; }
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.DelegateTemplateSymbol.cs (2)
213public override TypeKind TypeKind => TypeKind.Delegate;
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.TemplateSymbol.cs (2)
101public override TypeKind TypeKind 103get { return TypeKind.Class; }
Symbols\ArrayTypeSymbol.cs (3)
293public override TypeKind TypeKind 297return TypeKind.Array; 375while (current.TypeKind == TypeKind.Array)
Symbols\AssemblySymbol.cs (3)
473return GetSpecialType(SpecialType.System_Runtime_CompilerServices_RuntimeFeature) is { TypeKind: TypeKind.Class, IsStatic: true } && 496GetSpecialType(SpecialType.System_Runtime_CompilerServices_PreserveBaseOverridesAttribute) is { TypeKind: TypeKind.Class }; 992if (result is null || result.TypeKind == TypeKind.Error)
Symbols\BaseTypeAnalysis.cs (3)
97if (fieldType is null || fieldType.TypeKind != TypeKind.Struct || field.IsStatic) 285case TypeKind.Enum: 287case TypeKind.Struct:
Symbols\Compilation_WellKnownMembers.cs (5)
218if (type.Kind != SymbolKind.NamedType || type.TypeKind != TypeKind.Class) 914case TypeKind.Dynamic: 918case TypeKind.Array: 927case TypeKind.Pointer: 936case TypeKind.FunctionPointer:
Symbols\ConstantValueUtils.cs (1)
90if (typeSymbol.TypeKind == TypeKind.TypeParameter)
Symbols\ConstraintsHelper.cs (28)
139case TypeKind.TypeParameter: 190case TypeKind.Interface: 191case TypeKind.Class: 192case TypeKind.Delegate: 194Debug.Assert(inherited || currentCompilation == null || constraintType.TypeKind != TypeKind.Delegate); 209case TypeKind.Struct: 213if (underlyingType.TypeKind == TypeKind.TypeParameter) 233case TypeKind.Enum: 239case TypeKind.Array: 245case TypeKind.Error: 250case TypeKind.Pointer: 251case TypeKind.FunctionPointer: 256case TypeKind.Submission: 1094else if (typeArgument.TypeKind == TypeKind.TypeParameter) 1270if (typeArgument.TypeKind == TypeKind.TypeParameter) 1370case TypeKind.Struct: 1373case TypeKind.Enum: 1374case TypeKind.Dynamic: 1377case TypeKind.Class: 1385case TypeKind.TypeParameter: 1391case TypeKind.Submission: 1402Debug.Assert(type.TypeKind is TypeKind.Class or TypeKind.Struct); 1452case TypeKind.Array: 1453case TypeKind.Class: 1454case TypeKind.Delegate: 1455case TypeKind.Enum: 1456case TypeKind.Struct:
Symbols\DynamicTypeSymbol.cs (3)
62public override TypeKind TypeKind 66return TypeKind.Dynamic; 202if (ReferenceEquals(this, t2) || t2.TypeKind == TypeKind.Dynamic)
Symbols\EnumConversions.cs (7)
13internal static TypeKind ToTypeKind(this DeclarationKind kind) 21return TypeKind.Class; 24return TypeKind.Submission; 27return TypeKind.Delegate; 30return TypeKind.Enum; 33return TypeKind.Interface; 37return TypeKind.Struct;
Symbols\ErrorTypeSymbol.cs (2)
223public sealed override TypeKind TypeKind 227return TypeKind.Error;
Symbols\ExtendedErrorTypeSymbol.cs (8)
223if ((object?)oldSymbol == null || oldSymbol.TypeKind != TypeKind.Error) 249internal static TypeKind ExtractNonErrorTypeKind(TypeSymbol oldSymbol) 251if (oldSymbol.TypeKind != TypeKind.Error) 266TypeKind commonTypeKind = TypeKind.Error; 272if ((object?)type != null && type.TypeKind != TypeKind.Error) 274if (commonTypeKind == TypeKind.Error) 277return TypeKind.Error; // no common kind.
Symbols\FunctionPointers\FunctionPointerTypeSymbol.cs (2)
75public override TypeKind TypeKind => TypeKind.FunctionPointer;
Symbols\FunctionTypeSymbol.cs (1)
102public override TypeKind TypeKind => TypeKindInternal.FunctionType;
Symbols\Metadata\PE\MetadataDecoder.cs (4)
397case TypeKind.Interface: 411case TypeKind.Delegate: 412case TypeKind.Enum: 413case TypeKind.Struct:
Symbols\Metadata\PE\NativeIntegerTypeDecoder.cs (11)
87case TypeKind.Array: 89case TypeKind.Pointer: 91case TypeKind.FunctionPointer: 93case TypeKind.TypeParameter: 94case TypeKind.Dynamic: 96case TypeKind.Class: 97case TypeKind.Struct: 98case TypeKind.Interface: 99case TypeKind.Delegate: 100case TypeKind.Enum: 103Debug.Assert(type.TypeKind == TypeKind.Error);
Symbols\Metadata\PE\PEMethodSymbol.cs (2)
1219if ((this.ContainingType.TypeKind == TypeKind.Class && this.IsRuntimeFinalizer(skipFirstMethodKindCheck: true)) || 1226if (_containingType.TypeKind == TypeKind.Delegate)
Symbols\Metadata\PE\PENamedTypeSymbol.cs (23)
68private TypeKind _lazyKind; 118if (this.TypeKind == TypeKind.Enum) 973if (this.TypeKind == TypeKind.Enum) 1178&& this.TypeKind == TypeKind.Enum) 1272if (this.TypeKind == TypeKind.Enum) 1331if (this.TypeKind == TypeKind.Struct) 1716case TypeKind.Class: 1717case TypeKind.Struct: 1718case TypeKind.Delegate: 1743public override TypeKind TypeKind 1747TypeKind result = _lazyKind; 1749if (result == TypeKind.Unknown) 1753result = TypeKind.Interface; 1759result = TypeKind.Class; 1769result = TypeKind.Enum; 1774result = TypeKind.Delegate; 1782result = TypeKind.Struct; 1893if (this.TypeKind == TypeKind.Struct) 1949var isOrdinaryEmbeddableStruct = (this.TypeKind == TypeKind.Struct) && (this.SpecialType == Microsoft.CodeAnalysis.SpecialType.None) && this.ContainingAssembly.IsLinked; 2091else if (TypeKind == TypeKind.Class && SpecialType != SpecialType.System_Enum) 2250if (this.TypeKind == TypeKind.Struct) 2278if (this.TypeKind == TypeKind.Struct) 2320var coClassType = ((object)type != null && (type.TypeKind == TypeKind.Class || type.IsErrorType())) ? (NamedTypeSymbol)type : null;
Symbols\MissingMetadataTypeSymbol.cs (1)
375t2.TypeKind == TypeKind.Dynamic &&
Symbols\NamedTypeSymbol.cs (13)
182if (TypeKind != TypeKind.Delegate) 367(thisParam.RefKind == RefKind.In && thisParam.Type.TypeKind != TypeKind.Struct)) 392var kind = TypeKind; 393return kind != TypeKind.Enum && kind != TypeKind.Struct && kind != TypeKind.Error; 406var kind = TypeKind; 407return kind == TypeKind.Struct || kind == TypeKind.Enum; 440return TypeKind == TypeKind.Submission; 459var name = (TypeKind == TypeKind.Submission) ? SynthesizedEntryPointSymbol.FactoryName : SynthesizedEntryPointSymbol.MainName; 804if (t2.TypeKind == TypeKind.Dynamic) 1622/// Requires less computation than <see cref="TypeSymbol.TypeKind"/> == <see cref="TypeKind.Interface"/>.
Symbols\NamespaceOrTypeSymbol.cs (1)
202TypeKind typeKind = kind.ToDeclarationKind().ToTypeKind();
Symbols\PointerTypeSymbol.cs (3)
165public override TypeKind TypeKind 169return TypeKind.Pointer; 219while (current.TypeKind == TypeKind.Pointer)
Symbols\PublicModel\TypeSymbol.cs (1)
135TypeKind ITypeSymbol.TypeKind
Symbols\Retargeting\RetargetingSymbolTranslator.cs (2)
848Debug.Assert(nts.TypeKind == TypeKind.Error || nts.PrimitiveTypeCode == Cci.PrimitiveTypeCode.NotPrimitive); 862Debug.Assert(ts.TypeKind == TypeKind.Error || ts.PrimitiveTypeCode == Cci.PrimitiveTypeCode.NotPrimitive);
Symbols\Source\ExplicitInterfaceHelpers.cs (3)
193case TypeKind.Class: 194case TypeKind.Struct: 195case TypeKind.Interface:
Symbols\Source\SourceAssemblySymbol.cs (1)
2198Debug.Assert(forwardedType.TypeKind != TypeKind.Error);
Symbols\Source\SourceDelegateMethodSymbol.cs (2)
76if (binder.Compilation.GetSpecialType(SpecialType.System_IAsyncResult).TypeKind != TypeKind.Error && 77binder.Compilation.GetSpecialType(SpecialType.System_AsyncCallback).TypeKind != TypeKind.Error &&
Symbols\Source\SourceEventSymbol.cs (4)
549else if (IsAbstract && ContainingType.TypeKind == TypeKind.Struct) 554else if (IsVirtual && ContainingType.TypeKind == TypeKind.Struct) 595else if (IsAbstract && !ContainingType.IsAbstract && (ContainingType.TypeKind == TypeKind.Class || ContainingType.TypeKind == TypeKind.Submission))
Symbols\Source\SourceFixedFieldSymbol.cs (2)
168public override TypeKind TypeKind 170get { return TypeKind.Struct; }
Symbols\Source\SourceMemberContainerSymbol.cs (40)
97public TypeKind TypeKind 99get { return (TypeKind)((_flags >> TypeKindOffset) & TypeKindMask); } 111public Flags(SpecialType specialType, TypeKind typeKind) 222TypeKind typeKind = declaration.Kind.ToTypeKind(); 274private DeclarationModifiers MakeModifiers(TypeKind typeKind, BindingDiagnosticBag diagnostics) 302case TypeKind.Class: 303case TypeKind.Submission: 313case TypeKind.Struct: 322case TypeKind.Interface: 325case TypeKind.Delegate: 354case TypeKind.Interface: 357case TypeKind.Struct: 358case TypeKind.Enum: 361case TypeKind.Delegate: 762public override TypeKind TypeKind 783return this.TypeKind == TypeKind.Interface; 1354case TypeKind.Class: 1355case TypeKind.Struct: 1361case TypeKind.Interface: 1364goto case TypeKind.Class; 1452if (this.TypeKind == TypeKind.Enum) 2186if (this.TypeKind == TypeKind.Delegate) 2245if (TypeKind != TypeKind.Struct) 2270Debug.Assert(TypeKind == TypeKind.Struct); 2294(type.TypeKind == TypeKind.Struct) && 2573if (f is null || !f.IsStatic || f.Type.TypeKind != TypeKind.Struct) continue; 2602if (f is null || !f.IsStatic || f.Type.TypeKind != TypeKind.Struct) continue; 3111case TypeKind.Struct: 3116case TypeKind.Enum: 3120case TypeKind.Class: 3121case TypeKind.Interface: 3122case TypeKind.Submission: 3333if (TypeKind is TypeKind.Class) 3340case TypeKind.Struct: 3341case TypeKind.Enum: 3342case TypeKind.Class: 3343case TypeKind.Interface: 3344case TypeKind.Submission: 3861Debug.Assert(TypeKind == TypeKind.Struct); 4564builder.AddNonTypeMember((this.TypeKind == TypeKind.Submission) ?
Symbols\Source\SourceMemberContainerSymbol_ImplementationChecks.cs (6)
513case TypeKind.Enum: 514case TypeKind.Delegate: 517case TypeKind.Class: 518case TypeKind.Struct: 519case TypeKind.Interface: 520case TypeKind.Submission: // we have to check that "override" is not used
Symbols\Source\SourceMemberFieldSymbol.cs (1)
559if (ContainingType.TypeKind != TypeKind.Struct)
Symbols\Source\SourceMethodSymbolWithAttributes.cs (2)
1030if (ContainingSymbol is NamedTypeSymbol { IsComImport: true, TypeKind: TypeKind.Class or TypeKind.Interface })
Symbols\Source\SourceNamedTypeSymbol.cs (8)
815case TypeKind.Delegate: 818case TypeKind.Enum: 819case TypeKind.Interface: 822case TypeKind.Struct: 823case TypeKind.Class: 1261if ((object)coClassType != null && coClassType.TypeKind == TypeKind.Class) 1391if (this.TypeKind == TypeKind.Struct) 1485if (this.TypeKind == TypeKind.Class)
Symbols\Source\SourceNamedTypeSymbol_Bases.cs (28)
281if (this.TypeKind == TypeKind.Enum) 311else if (baseType.TypeKind == TypeKind.Error && (object)partBase != null) 318else if ((object)partBase != null && !TypeSymbol.Equals(partBase, baseType, TypeCompareKind.ConsiderEverything) && partBase.TypeKind != TypeKind.Error) 468if (i == 0 && TypeKind == TypeKind.Class) // allow class in the first position 507if (baseType.TypeKind == TypeKind.Error) 511TypeKind guessTypeKind = baseType.GetNonErrorTypeKindGuess(); 512if (guessTypeKind == TypeKind.Interface) 519if ((baseType.TypeKind == TypeKind.Class || 520baseType.TypeKind == TypeKind.Delegate || 521baseType.TypeKind == TypeKind.Struct || 549case TypeKind.Interface: 583case TypeKind.Class: 584if (TypeKind == TypeKind.Class) 600case TypeKind.TypeParameter: 604case TypeKind.Error: 609case TypeKind.Dynamic: 613case TypeKind.Submission: 633(TypeKind != TypeKind.Class || baseType.TypeKind == TypeKind.Interface || ((TypeDeclarationSyntax)decl.SyntaxReference.GetSyntax()).ParameterList is null)) 660var typeKind = this.TypeKind; 662if (typeKind == TypeKind.Enum) 669bool isInterface = (typeKind == TypeKind.Interface); 711var typeKind = this.TypeKind; 714if (typeKind == TypeKind.Enum) 728case TypeKind.Class: 738case TypeKind.Struct: 742case TypeKind.Interface: 745case TypeKind.Delegate:
Symbols\Source\SourceNamedTypeSymbol_Enum.cs (2)
46if (this.TypeKind != TypeKind.Enum) 89if (this.TypeKind != TypeKind.Enum)
Symbols\Source\SourceOrdinaryMethodSymbol.cs (1)
235else if (parameter0RefKind == RefKind.In && parameter0Type.TypeKind != TypeKind.Struct)
Symbols\Source\SourceOrdinaryMethodSymbolBase.cs (5)
361else if (IsSealed && ContainingType.TypeKind == TypeKind.Struct) 383else if (IsAbstract && ContainingType.TypeKind == TypeKind.Struct) 388else if (IsVirtual && ContainingType.TypeKind == TypeKind.Struct) 398else if (IsAbstract && !ContainingType.IsAbstract && (ContainingType.TypeKind == TypeKind.Class || ContainingType.TypeKind == TypeKind.Submission))
Symbols\Source\SourcePropertyAccessorSymbol.cs (3)
528if (IsAbstract && !ContainingType.IsAbstract && (ContainingType.TypeKind == TypeKind.Class || ContainingType.TypeKind == TypeKind.Submission)) 533else if (IsVirtual && ContainingType.IsSealed && ContainingType.TypeKind != TypeKind.Struct) // error CS0106 on struct already
Symbols\Source\SourcePropertySymbolBase.cs (2)
870else if (IsAbstract && ContainingType.TypeKind == TypeKind.Struct) 875else if (IsVirtual && ContainingType.TypeKind == TypeKind.Struct)
Symbols\Source\ThisParameterSymbol.cs (1)
39if (ContainingType?.TypeKind != TypeKind.Struct)
Symbols\Symbol_Attributes.cs (7)
70case TypeKind.Class: 73case TypeKind.Delegate: 76case TypeKind.Enum: 79case TypeKind.Interface: 82case TypeKind.Struct: 85case TypeKind.TypeParameter: 88case TypeKind.Submission:
Symbols\SymbolExtensions.cs (3)
84return superType.TypeKind == TypeKind.Submission && subType.TypeKind == TypeKind.Submission; 250if (type.TypeKind == TypeKind.TypeParameter)
Symbols\Synthesized\SynthesizedContainer.cs (3)
56internal sealed override bool IsInterface => this.TypeKind == TypeKind.Interface; 96public override bool IsAbstract => (object)Constructor == null && this.TypeKind != TypeKind.Struct; 156internal override NamedTypeSymbol BaseTypeNoUseSiteDiagnostics => ContainingAssembly.GetSpecialType(this.TypeKind == TypeKind.Struct ? SpecialType.System_ValueType : SpecialType.System_Object);
Symbols\Synthesized\SynthesizedEmbeddedAttributeSymbol.cs (2)
74public override TypeKind TypeKind => TypeKind.Class;
Symbols\Synthesized\SynthesizedInstanceConstructor.cs (2)
84Debug.Assert(_containingType.TypeKind == TypeKind.Class); 88if (_containingType.TypeKind == TypeKind.Delegate)
Symbols\Synthesized\SynthesizedSubmissionConstructor.cs (1)
19Debug.Assert(containingType.TypeKind == TypeKind.Submission);
Symbols\TypeParameterSymbol.cs (7)
195public sealed override TypeKind TypeKind 199return TypeKind.TypeParameter; 393if (constraint.TypeKind == TypeKind.TypeParameter) 403Debug.Assert(constraint.TypeKind != TypeKind.TypeParameter); 413case TypeKind.Interface: 415case TypeKind.Error: 484if (constraintType.TypeKind == TypeKind.TypeParameter)
Symbols\TypeSymbol.cs (6)
108var interfaces = (baseType.TypeKind == TypeKind.TypeParameter) ? ((TypeParameterSymbol)baseType).EffectiveInterfacesNoUseSiteDiagnostics : baseType.InterfacesNoUseSiteDiagnostics(); 344var interfaces = (baseType.TypeKind == TypeKind.TypeParameter) ? ((TypeParameterSymbol)baseType).EffectiveInterfacesNoUseSiteDiagnostics : baseType.InterfacesNoUseSiteDiagnostics(); 485public abstract TypeKind TypeKind { get; } 507TypeKind.Pointer => Microsoft.Cci.PrimitiveTypeCode.Pointer, 508TypeKind.FunctionPointer => Microsoft.Cci.PrimitiveTypeCode.FunctionPointer, 2453TypeKind ITypeSymbolInternal.TypeKind => this.TypeKind;
Symbols\TypeSymbolExtensions.cs (68)
63if (type.TypeKind != TypeKind.TypeParameter) 109if (type.TypeKind == TypeKind.TypeParameter) 201return type.TypeKind == TypeKind.Enum; 296case TypeKind.Pointer: 297case TypeKind.Dynamic: 298case TypeKind.FunctionPointer: 314return type.TypeKind == TypeKind.Class; 320return type.TypeKind == TypeKind.Struct; 336return type.TypeKind == TypeKind.Dynamic; 342return type.TypeKind == TypeKind.TypeParameter; 348return type.TypeKind == TypeKind.Array; 354return type.TypeKind == TypeKind.Array && ((ArrayTypeSymbol)type).IsSZArray; 359return type.TypeKind == TypeKind.FunctionPointer; 366case TypeKind.Pointer: 367case TypeKind.FunctionPointer: 506return type.TypeKind == TypeKind.Delegate; 622case TypeKind.Class: 623case TypeKind.Struct: 624case TypeKind.Interface: 625case TypeKind.Enum: 626case TypeKind.Delegate: 627case TypeKind.Submission: 697case TypeKind.Class: 698case TypeKind.Struct: 699case TypeKind.Interface: 700case TypeKind.Enum: 701case TypeKind.Delegate: 716case TypeKind.Submission: 755case TypeKind.Dynamic: 756case TypeKind.TypeParameter: 757case TypeKind.Submission: 758case TypeKind.Enum: 761case TypeKind.Error: 762case TypeKind.Class: 763case TypeKind.Struct: 764case TypeKind.Interface: 765case TypeKind.Delegate: 833case TypeKind.Array: 837case TypeKind.Pointer: 841case TypeKind.FunctionPointer: 1076if (ReferenceEquals(parent2.OriginalDefinition, parent1OriginalDefinition) || parent1OriginalDefinition.TypeKind == TypeKind.Submission && parent2.TypeKind == TypeKind.Submission) 1116(type, parameter, unused) => type.TypeKind == TypeKind.TypeParameter && (parameter is null || TypeSymbol.Equals(type, parameter, TypeCompareKind.ConsiderEverything2)); 1127(type, parameterContainer, unused) => type.TypeKind == TypeKind.TypeParameter && (object)type.ContainingSymbol == (object)parameterContainer; 1136(type, parameters, unused) => type.TypeKind == TypeKind.TypeParameter && parameters.Contains((TypeParameterSymbol)type); 1145(type, _, _) => type.TypeKind == TypeKind.TypeParameter && type.ContainingSymbol is MethodSymbol; 1156private static readonly Func<TypeSymbol, object?, bool, bool> s_containsDynamicPredicate = (type, unused1, unused2) => type.TypeKind == TypeKind.Dynamic; 1194type.VisitType((TypeSymbol t, object? _, bool _) => t.TypeKind is TypeKind.Pointer or TypeKind.FunctionPointer, null) is object; 1222internal static TypeKind GetNonErrorTypeKindGuess(this TypeSymbol type) 1397case TypeKind.Struct: 1400case TypeKind.Array: 1401case TypeKind.Class: 1402case TypeKind.Delegate: 1403case TypeKind.Dynamic: 1404case TypeKind.Error: 1405case TypeKind.Interface: 1406case TypeKind.Pointer: 1407case TypeKind.FunctionPointer: 1410case TypeKind.Enum: 1413case TypeKind.TypeParameter: 1416case TypeKind.Submission: 1443case TypeKind.Pointer: 1444case TypeKind.FunctionPointer: 1446case TypeKind.Array: 1578return type.IsReferenceType && type.TypeKind != TypeKind.TypeParameter; 1586return type.IsValueType && type.TypeKind != TypeKind.TypeParameter; 1912if (taskType.TypeKind == TypeKind.Error)
Symbols\TypeWithAnnotations.cs (4)
192if (typeSymbol.TypeKind != TypeKind.TypeParameter) 262public TypeKind TypeKind => Type.TypeKind; 622if (type.TypeKind != TypeKind.Array) 935Debug.Assert(underlying.TypeKind == TypeKind.TypeParameter);
Symbols\VarianceSafety.cs (11)
75case TypeKind.Class: 76case TypeKind.Struct: 77case TypeKind.Enum: 79case TypeKind.Interface: 80case TypeKind.Delegate: 370case TypeKind.Class: 371case TypeKind.Struct: 372case TypeKind.Enum: // Can't be generic, but can be nested in generic. 373case TypeKind.Interface: 374case TypeKind.Delegate: 375case TypeKind.Error:
Symbols\Wrapped\WrappedNamedTypeSymbol.cs (1)
111public override TypeKind TypeKind
Utilities\TypeSymbolExtensions.cs (9)
183case TypeKind.TypeParameter: 186case TypeKind.Class: 187case TypeKind.Struct: 188case TypeKind.Error: 189case TypeKind.Interface: 268case TypeKind.Class: 269case TypeKind.Error: 271case TypeKind.Interface: 273case TypeKind.Struct:
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 (35)
ConvertToRecordEngine.cs (5)
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 (4)
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 (2)
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.CodeStyle.UnitTests (9)
NamingStylesTests.cs (9)
212[InlineData("class [|c2|] { }", "class C2 { }", TypeKind.Class, Accessibility.Private)] 213[InlineData("struct [|c2|] { }", "struct C2 { }", TypeKind.Struct, Accessibility.Private)] 214[InlineData("interface [|c2|] { }", "interface C2 { }", TypeKind.Interface, Accessibility.Private)] 215[InlineData("delegate void [|c2|]();", "delegate void C2();", TypeKind.Delegate, Accessibility.Private)] 216[InlineData("enum [|c2|] { }", "enum C2 { }", TypeKind.Enum, Accessibility.Private)] 234var alternateSymbolKind = TypeKind.Class.Equals(symbolKind) ? TypeKind.Interface : TypeKind.Class;
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (111)
Diagnostics\GenerateType\GenerateTypeTests_Dialog.cs (82)
356typeKind: TypeKind.Interface, 396typeKind: TypeKind.Struct, 436typeKind: TypeKind.Enum, 471typeKind: TypeKind.Enum, 512typeKind: TypeKind.Enum, 551typeKind: TypeKind.Interface, 595typeKind: TypeKind.Interface, 640typeKind: TypeKind.Interface, 685typeKind: TypeKind.Interface, 723typeKind: TypeKind.Interface, 759typeKind: TypeKind.Interface, 799typeKind: TypeKind.Interface, 842typeKind: TypeKind.Interface, 879typeKind: TypeKind.Interface, 923typeKind: TypeKind.Interface, 971typeKind: TypeKind.Interface, 1021typeKind: TypeKind.Interface, 1077typeKind: TypeKind.Interface, 1122typeKind: TypeKind.Interface, 1171typeKind: TypeKind.Interface, 1230typeKind: TypeKind.Interface, 1269typeKind: TypeKind.Interface, 1315typeKind: TypeKind.Interface, 1355typeKind: TypeKind.Interface, 1402typeKind: TypeKind.Interface, 1443typeKind: TypeKind.Interface, 1482typeKind: TypeKind.Class, 1527typeKind: TypeKind.Class, 1566typeKind: TypeKind.Class, 1612typeKind: TypeKind.Class, 1652typeKind: TypeKind.Class, 1698typeKind: TypeKind.Class, 1736typeKind: TypeKind.Class, 1776typeKind: TypeKind.Class, 1821typeKind: TypeKind.Class, 1865typeKind: TypeKind.Class, 1916typeKind: TypeKind.Class, 1954typeKind: TypeKind.Module, 2005typeKind: TypeKind.Interface, 2027typeKind: TypeKind.Interface, 2057typeKind: TypeKind.Class, 2094typeKind: TypeKind.Class, 2132typeKind: TypeKind.Class, 2170typeKind: TypeKind.Class, 2207typeKind: TypeKind.Class, 2237typeKind: TypeKind.Class, 2288typeKind: TypeKind.Structure, 2324typeKind: TypeKind.Delegate, 2359typeKind: TypeKind.Delegate, 2392typeKind: TypeKind.Delegate, 2425typeKind: TypeKind.Delegate, 2458typeKind: TypeKind.Delegate, 2487typeKind: TypeKind.Delegate, 2516typeKind: TypeKind.Delegate, 2546typeKind: TypeKind.Delegate, 2581typeKind: TypeKind.Delegate, 2616typeKind: TypeKind.Delegate, 2649typeKind: TypeKind.Delegate, 2682typeKind: TypeKind.Delegate, 2712typeKind: TypeKind.Delegate, 2741typeKind: TypeKind.Delegate, 2776typeKind: TypeKind.Delegate, 2811typeKind: TypeKind.Delegate, 2844typeKind: TypeKind.Delegate, 2877typeKind: TypeKind.Delegate, 2907typeKind: TypeKind.Delegate, 2936typeKind: TypeKind.Delegate, 2970typeKind: TypeKind.Delegate, 3001typeKind: TypeKind.Delegate, 3031typeKind: TypeKind.Class, 3068typeKind: TypeKind.Class, 3105typeKind: TypeKind.Class, 3148typeKind: TypeKind.Class, 3197typeKind: TypeKind.Class, 3323typeKind: TypeKind.Delegate, 3348typeKind: TypeKind.Delegate, 3383typeKind: TypeKind.Delegate, 3410typeKind: TypeKind.Delegate, 3451typeKind: TypeKind.Class, 3484typeKind: TypeKind.Class, 3517typeKind: TypeKind.Delegate, 3556typeKind: TypeKind.Delegate,
Diagnostics\NamingStyles\EditorConfigNamingStyleParserTests.cs (14)
181new SymbolKindOrTypeKind(TypeKind.Delegate) 229new SymbolKindOrTypeKind(TypeKind.Delegate) 343[InlineData("interface", new object[] { TypeKind.Interface })] 344[InlineData("*", new object[] { SymbolKind.Namespace, TypeKind.Class, TypeKind.Struct, TypeKind.Interface, TypeKind.Enum, SymbolKind.Property, MethodKind.Ordinary, MethodKind.LocalFunction, SymbolKind.Field, SymbolKind.Event, TypeKind.Delegate, SymbolKind.Parameter, SymbolKind.TypeParameter, SymbolKind.Local })] 345[InlineData(null, new object[] { SymbolKind.Namespace, TypeKind.Class, TypeKind.Struct, TypeKind.Interface, TypeKind.Enum, SymbolKind.Property, MethodKind.Ordinary, MethodKind.LocalFunction, SymbolKind.Field, SymbolKind.Event, TypeKind.Delegate, SymbolKind.Parameter, SymbolKind.TypeParameter, SymbolKind.Local })] 454var expectedApplicableTypeKindList = new[] { new SymbolKindOrTypeKind(TypeKind.Interface) };
NamingStylesTests.cs (9)
212[InlineData("class [|c2|] { }", "class C2 { }", TypeKind.Class, Accessibility.Private)] 213[InlineData("struct [|c2|] { }", "struct C2 { }", TypeKind.Struct, Accessibility.Private)] 214[InlineData("interface [|c2|] { }", "interface C2 { }", TypeKind.Interface, Accessibility.Private)] 215[InlineData("delegate void [|c2|]();", "delegate void C2();", TypeKind.Delegate, Accessibility.Private)] 216[InlineData("enum [|c2|] { }", "enum C2 { }", TypeKind.Enum, Accessibility.Private)] 234var alternateSymbolKind = TypeKind.Class.Equals(symbolKind) ? TypeKind.Interface : TypeKind.Class;
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.Emit.UnitTests (35)
CodeGen\CodeGenAsyncTests.cs (3)
67Assert.Equal(TypeKind.Struct, stateMachine.TypeKind); 76Assert.Equal(TypeKind.Struct, stateMachine.TypeKind); 85Assert.Equal(TypeKind.Class, stateMachine.TypeKind);
CodeGen\CodeGenAwaitUsingTests.cs (1)
2402Assert.Equal(TypeKind.Error, comp.GetWellKnownType(WellKnownType.System_IAsyncDisposable).TypeKind);
CodeGen\CodeGenFunctionPointersTests.cs (2)
302Assert.Equal(TypeKind.FunctionPointer, field.Type.TypeKind); 378Assert.Equal(TypeKind.FunctionPointer, field.Type.TypeKind);
CodeGen\CodeGenTupleTest.cs (6)
3344Assert.Equal(TypeKind.Error, mTuple.TupleUnderlyingType.TypeKind); 3347Assert.Equal(TypeKind.Error, mTuple.TypeKind); 11160Assert.Equal(TypeKind.Struct, m1Tuple.TypeKind); 11424Assert.Equal(TypeKind.Struct, m1Tuple.TypeKind); 12742Assert.Equal(TypeKind.Struct, m1Tuple.TypeKind); 23961Assert.Equal(TypeKind.Class, compilation.GetWellKnownType(WellKnownType.System_ValueTuple_T2).TypeKind);
Emit\EmitMetadataTests.cs (6)
317Assert.Equal(TypeKind.Interface, i1.TypeKind); 318Assert.Equal(TypeKind.Interface, i2.TypeKind); 319Assert.Equal(TypeKind.Interface, i3.TypeKind); 320Assert.Equal(TypeKind.Class, classA.TypeKind); 321Assert.Equal(TypeKind.Class, classB.TypeKind); 2074Assert.Equal(TypeKind.Interface, beginInvoke.ReturnType.TypeKind);
Emit\NoPiaEmbedTypes.cs (17)
1175Assert.Equal(TypeKind.Interface, itest1.TypeKind); 1197Assert.Equal(TypeKind.Struct, test2.TypeKind); 1218Assert.Equal(TypeKind.Interface, itest3.TypeKind); 1231Assert.Equal(TypeKind.Struct, test5.TypeKind); 1249Assert.Equal(TypeKind.Interface, itest6.TypeKind); 1252Assert.Equal(TypeKind.Interface, itest7.TypeKind); 1255Assert.Equal(TypeKind.Interface, itest8.TypeKind); 1259Assert.Equal(TypeKind.Enum, test9.TypeKind); 1314Assert.Equal(TypeKind.Struct, test10.TypeKind); 1338Assert.Equal(TypeKind.Delegate, test11.TypeKind); 1417Assert.Equal(TypeKind.Interface, itest13.TypeKind); 1438Assert.Equal(TypeKind.Interface, itest14.TypeKind); 1448Assert.Equal(TypeKind.Interface, itest16.TypeKind); 1452Assert.Equal(TypeKind.Interface, itest17.TypeKind); 1500Assert.Equal(TypeKind.Interface, itest18.TypeKind); 1734Assert.Equal(TypeKind.Interface, itest28.TypeKind); 1737Assert.Equal(TypeKind.Interface, itest29.TypeKind);
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.ExpressionEvaluator.ExpressionCompiler (2)
Symbols\EENamedTypeSymbol.cs (2)
289public override TypeKind TypeKind 291get { return TypeKind.Class; }
Microsoft.CodeAnalysis.CSharp.ExpressionEvaluator.ExpressionCompiler.UnitTests (13)
DynamicTests.cs (10)
57Assert.Equal(TypeKind.Dynamic, method.ReturnType.TypeKind); 98Assert.Equal(TypeKind.Dynamic, ((ArrayTypeSymbol)method.ReturnType).ElementType.TypeKind); 139Assert.Equal(TypeKind.Dynamic, ((NamedTypeSymbol)method.ReturnType).TypeArguments().Single().TypeKind); 180Assert.Equal(TypeKind.Dynamic, method.ReturnType.TypeKind); 220Assert.Equal(TypeKind.Dynamic, ((ArrayTypeSymbol)method.ReturnType).ElementType.TypeKind); 265Assert.Equal(TypeKind.Dynamic, ((NamedTypeSymbol)method.ReturnType).TypeArguments().Single().TypeKind); 656Assert.Equal(TypeKind.Dynamic, method.ReturnType.TypeKind); 695Assert.Equal(TypeKind.Dynamic, ((ArrayTypeSymbol)method.ReturnType).ElementType.TypeKind); 734Assert.Equal(TypeKind.Dynamic, ((NamedTypeSymbol)method.ReturnType).TypeArguments().Single().TypeKind); 984Assert.Equal(TypeKind.Dynamic, ((MethodSymbol)methodData.Method).ReturnType.TypeKind);
ExpressionCompilerTests.cs (1)
2156Assert.Equal(TypeKind.TypeParameter, returnType.TypeKind);
ManagedAddressOfTests.cs (1)
307Assert.Equal(TypeKind.Pointer, returnType.TypeKind);
WinMdTests.cs (1)
235Assert.Equal(TypeKind.Class, actualReturnType.TypeKind); // not error
Microsoft.CodeAnalysis.CSharp.Features (54)
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 (5)
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 (5)
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 (4)
1935TypeKind.Struct => symbol.IsRecord ? CSharpFeaturesResources.record_struct : CSharpFeaturesResources.struct_, 1936TypeKind.Class => symbol.IsRecord ? CSharpFeaturesResources.record_ : FeaturesResources.class_, 2515{ ContainingType.TypeKind: TypeKind.Interface } and not INamedTypeSymbol 2520IFieldSymbol { ContainingType.TypeKind: TypeKind.Enum }
ExtractMethod\CSharpMethodExtractor.cs (2)
182if (type.TypeKind is TypeKind.Error or 183TypeKind.Unknown)
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 (2)
43return classType?.TypeKind is TypeKind.Class or TypeKind.Struct;
GenerateMember\GenerateParameterizedMember\CSharpGenerateConversionService.cs (5)
62ISet<TypeKind> classInterfaceModuleStructTypes, 88ISet<TypeKind> classInterfaceModuleStructTypes, 114ISet<TypeKind> classInterfaceModuleStructTypes, 142ISet<TypeKind> classInterfaceModuleStructTypes, 173ISet<TypeKind> classInterfaceModuleStructTypes,
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 (2)
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 (160)
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 (3)
1681Assert.Equal(TypeKind.Dynamic, ((BoundConversion)boundNode.Expression).Operand.Type.TypeKind); 1701Assert.Equal(TypeKind.Dynamic, info.ElementType.TypeKind); //NB: differs from explicit case 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 (6)
224Assert.Equal(TypeKind.Struct, type.TypeKind); 239Assert.Equal(TypeKind.Struct, type.TypeKind); 727Assert.Equal(TypeKind.Error, type.TypeKind); 735Assert.Equal(TypeKind.Error, type.TypeKind); 15393Assert.Equal(TypeKind.Interface, symbol.TypeKind); 15423Assert.Equal(TypeKind.TypeParameter, symbol.TypeKind);
Semantics\NullableReferenceTypesTests.cs (31)
3327Assert.Equal(TypeKind.Class, typeInfo.Type.TypeKind); 112891Assert.Equal(TypeKind.Struct, compilation1.GetTypeByMetadataName("A").TypeKind); 112892Assert.Equal(TypeKind.Enum, compilation1.GetTypeByMetadataName("B").TypeKind); 112893Assert.Equal(TypeKind.Class, compilation1.GetTypeByMetadataName("C").TypeKind); 112894Assert.Equal(TypeKind.Delegate, compilation1.GetTypeByMetadataName("D").TypeKind); 112895Assert.Equal(TypeKind.Interface, compilation1.GetTypeByMetadataName("I1").TypeKind); 112911Assert.Equal(TypeKind.Struct, compilation2.GetTypeByMetadataName("A").TypeKind); 112912Assert.Equal(TypeKind.Enum, compilation2.GetTypeByMetadataName("B").TypeKind); 112913Assert.Equal(TypeKind.Class, compilation2.GetTypeByMetadataName("C").TypeKind); 112914Assert.Equal(TypeKind.Delegate, compilation2.GetTypeByMetadataName("D").TypeKind); 112915Assert.Equal(TypeKind.Interface, compilation2.GetTypeByMetadataName("I1").TypeKind); 112922Assert.Equal(TypeKind.Struct, compilation3.GetTypeByMetadataName("A").TypeKind); 112923Assert.Equal(TypeKind.Enum, compilation3.GetTypeByMetadataName("B").TypeKind); 112924Assert.Equal(TypeKind.Class, compilation3.GetTypeByMetadataName("C").TypeKind); 112925Assert.Equal(TypeKind.Delegate, compilation3.GetTypeByMetadataName("D").TypeKind); 112926Assert.Equal(TypeKind.Interface, compilation3.GetTypeByMetadataName("I1").TypeKind); 112947Assert.Equal(TypeKind.Class, a.TypeKind); 112949Assert.Equal(TypeKind.Class, b.TypeKind); 112951Assert.Equal(TypeKind.Class, c.TypeKind); 112953Assert.Equal(TypeKind.Class, d.TypeKind); 112955Assert.Equal(TypeKind.Interface, i1.TypeKind); 113015Assert.Equal(TypeKind.Class, a.TypeKind); 113017Assert.Equal(TypeKind.Class, b.TypeKind); 113019Assert.Equal(TypeKind.Class, c.TypeKind); 113021Assert.Equal(TypeKind.Class, d.TypeKind); 113023Assert.Equal(TypeKind.Interface, i1.TypeKind); 113031Assert.Equal(TypeKind.Struct, compilation7.GetTypeByMetadataName("A").TypeKind); 113032Assert.Equal(TypeKind.Enum, compilation7.GetTypeByMetadataName("B").TypeKind); 113033Assert.Equal(TypeKind.Class, compilation7.GetTypeByMetadataName("C").TypeKind); 113034Assert.Equal(TypeKind.Delegate, compilation7.GetTypeByMetadataName("D").TypeKind); 113035Assert.Equal(TypeKind.Interface, compilation7.GetTypeByMetadataName("I1").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\OverloadResolutionTests.cs (2)
978Assert.Equal(TypeKind.Error, type.TypeKind); 984Assert.Equal(TypeKind.Error, ((NamedTypeSymbol)type).TypeArguments()[0].TypeKind);
Semantics\PrimaryConstructorTests.cs (7)
402if (c.TypeKind == TypeKind.Struct) 488Assert.Equal(c.TypeKind != TypeKind.Struct ? 1 : 2, c.InstanceConstructors.Length); 497if (c.TypeKind == TypeKind.Struct) 718case TypeKind.Class: 757case TypeKind.Class: 793case TypeKind.Class: 825case TypeKind.Class:
Semantics\QueryTests.cs (2)
3382Assert.NotEqual(TypeKind.Error, typeInfo2.Type.TypeKind); 3391Assert.NotEqual(TypeKind.Error, typeInfo1.Type.TypeKind);
Semantics\RecordStructTests.cs (2)
394Assert.Equal(TypeKind.Struct, point.TypeKind); 484Assert.Equal(TypeKind.Struct, point.TypeKind);
Semantics\RecordTests.cs (1)
119Assert.Equal(TypeKind.Class, point.TypeKind);
Semantics\ScriptSemanticsTests.cs (11)
251Assert.Equal(TypeKind.Error, summary.Type.TypeKind); 252Assert.Equal(TypeKind.Error, summary.ConvertedType.TypeKind); 454Assert.Equal(TypeKind.Class, members[0].TypeKind); 459Assert.Equal(TypeKind.Class, members[0].TypeKind); 463Assert.Equal(TypeKind.Interface, members[0].TypeKind); 467Assert.Equal(TypeKind.Struct, members[0].TypeKind); 471Assert.Equal(TypeKind.Enum, members[0].TypeKind); 475Assert.Equal(TypeKind.Delegate, members[0].TypeKind); 568Assert.Equal(TypeKind.Error, summary.Type.TypeKind); 569Assert.Equal(TypeKind.Error, summary.ConvertedType.TypeKind); 602Assert.NotEqual(TypeKind.Submission, type.TypeKind);
Semantics\UnsafeTests.cs (11)
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); 6021Assert.Equal(TypeKind.Pointer, pointerType.TypeKind); 7348Assert.Equal(TypeKind.Pointer, type.TypeKind); 7853Assert.Equal(TypeKind.Enum, type.TypeKind);
Semantics\UseSiteErrorTests.cs (35)
2299Assert.Equal(TypeKind.Struct, compilation1.GetTypeByMetadataName("A").TypeKind); 2300Assert.Equal(TypeKind.Enum, compilation1.GetTypeByMetadataName("B").TypeKind); 2301Assert.Equal(TypeKind.Class, compilation1.GetTypeByMetadataName("C").TypeKind); 2302Assert.Equal(TypeKind.Delegate, compilation1.GetTypeByMetadataName("D").TypeKind); 2303Assert.Equal(TypeKind.Interface, compilation1.GetTypeByMetadataName("I1").TypeKind); 2317Assert.Equal(TypeKind.Struct, compilation2.GetTypeByMetadataName("A").TypeKind); 2318Assert.Equal(TypeKind.Enum, compilation2.GetTypeByMetadataName("B").TypeKind); 2319Assert.Equal(TypeKind.Class, compilation2.GetTypeByMetadataName("C").TypeKind); 2320Assert.Equal(TypeKind.Delegate, compilation2.GetTypeByMetadataName("D").TypeKind); 2321Assert.Equal(TypeKind.Interface, compilation2.GetTypeByMetadataName("I1").TypeKind); 2328Assert.Equal(TypeKind.Struct, compilation3.GetTypeByMetadataName("A").TypeKind); 2329Assert.Equal(TypeKind.Enum, compilation3.GetTypeByMetadataName("B").TypeKind); 2330Assert.Equal(TypeKind.Class, compilation3.GetTypeByMetadataName("C").TypeKind); 2331Assert.Equal(TypeKind.Delegate, compilation3.GetTypeByMetadataName("D").TypeKind); 2332Assert.Equal(TypeKind.Interface, compilation3.GetTypeByMetadataName("I1").TypeKind); 2353Assert.Equal(TypeKind.Class, a.TypeKind); 2355Assert.Equal(TypeKind.Class, b.TypeKind); 2357Assert.Equal(TypeKind.Class, c.TypeKind); 2359Assert.Equal(TypeKind.Class, d.TypeKind); 2361Assert.Equal(TypeKind.Interface, i1.TypeKind); 2373Assert.Equal(TypeKind.Struct, compilation5.GetTypeByMetadataName("A").TypeKind); 2374Assert.Equal(TypeKind.Enum, compilation5.GetTypeByMetadataName("B").TypeKind); 2375Assert.Equal(TypeKind.Class, compilation5.GetTypeByMetadataName("C").TypeKind); 2376Assert.Equal(TypeKind.Delegate, compilation5.GetTypeByMetadataName("D").TypeKind); 2377Assert.Equal(TypeKind.Interface, compilation5.GetTypeByMetadataName("I1").TypeKind); 2398Assert.Equal(TypeKind.Class, a.TypeKind); 2400Assert.Equal(TypeKind.Class, b.TypeKind); 2402Assert.Equal(TypeKind.Class, c.TypeKind); 2404Assert.Equal(TypeKind.Class, d.TypeKind); 2406Assert.Equal(TypeKind.Interface, i1.TypeKind); 2414Assert.Equal(TypeKind.Struct, compilation7.GetTypeByMetadataName("A").TypeKind); 2415Assert.Equal(TypeKind.Enum, compilation7.GetTypeByMetadataName("B").TypeKind); 2416Assert.Equal(TypeKind.Class, compilation7.GetTypeByMetadataName("C").TypeKind); 2417Assert.Equal(TypeKind.Delegate, compilation7.GetTypeByMetadataName("D").TypeKind); 2418Assert.Equal(TypeKind.Interface, compilation7.GetTypeByMetadataName("I1").TypeKind);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (774)
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 (6)
1602.Single(method => method.Parameters.Single().Type.TypeKind == TypeKind.TypeParameter); 1735Single(method => method.Parameters.Single().Type.TypeKind == TypeKind.TypeParameter); 1739Assert.Equal(TypeKind.TypeParameter, actualSymbol.GetParameterTypes().Single().Type.TypeKind); 1761Single(method => method.Parameters.Single().Type.TypeKind == TypeKind.TypeParameter); 1765Assert.Equal(TypeKind.TypeParameter, actualSymbol.GetParameterTypes().Single().Type.TypeKind); 6540Assert.Equal(TypeKind.Error, ((INamedTypeSymbol)actualSymbol1).TypeArguments.Single().TypeKind);
Symbols\AccessorOverriddenOrHiddenMembersTests.cs (1)
1025Assert.Equal(TypeKind.Class, classDisposable.TypeKind);
Symbols\AssemblyAndNamespaceTests.cs (2)
382Assert.Equal(TypeKind.Class, objectType.TypeKind); 434Assert.Equal(TypeKind.Class, taskType.TypeKind);
Symbols\CompilationCreationTests.cs (13)
2459Assert.Equal(TypeKind.Class, type3.TypeKind); 2460Assert.Equal(TypeKind.Interface, asm5[1].GlobalNamespace.GetTypeMembers("I1").Single().TypeKind); 2591private bool HasSingleTypeOfKind(CSharpCompilation c, TypeKind kind, string fullName) 2618Assert.False(HasSingleTypeOfKind(c, TypeKind.Struct, "System.Int32")); 2620Assert.True(HasSingleTypeOfKind(c, TypeKind.Struct, "System.Int32")); 2621Assert.False(HasSingleTypeOfKind(c, TypeKind.Class, "System.Linq.Enumerable")); 2623Assert.True(HasSingleTypeOfKind(c, TypeKind.Class, "System.Linq.Enumerable")); 2624Assert.False(HasSingleTypeOfKind(c, TypeKind.Class, "System.Uri")); 2626Assert.False(HasSingleTypeOfKind(c, TypeKind.Class, "System.Linq.Enumerable")); 2627Assert.True(HasSingleTypeOfKind(c, TypeKind.Class, "System.Uri")); 2629Assert.False(HasSingleTypeOfKind(c, TypeKind.Class, "System.Uri")); 2630Assert.True(HasSingleTypeOfKind(c, TypeKind.Struct, "System.Int32")); 2632Assert.False(HasSingleTypeOfKind(c, TypeKind.Struct, "System.Int32"));
Symbols\CorLibrary\CorTypes.cs (7)
37Assert.Equal(TypeKind.Error, t.TypeKind); 46Assert.Equal(TypeKind.Error, p.Type.TypeKind); 69Assert.Equal(TypeKind.Error, t.TypeKind); 73Assert.NotEqual(TypeKind.Error, t.TypeKind); 130Assert.NotEqual(TypeKind.Error, t.TypeKind); 134Assert.Equal(TypeKind.Error, t.TypeKind); 170Assert.Equal(TypeKind.Error, t.TypeKind);
Symbols\ExtensionMethodTests.cs (1)
55Assert.Equal(TypeKind.TypeParameter, parameter.Type.TypeKind);
Symbols\GenericConstraintTests.cs (1)
4935if (t.TypeKind == TypeKind.TypeParameter)
Symbols\Metadata\MetadataTypeTests.cs (6)
88Assert.Equal(TypeKind.Class, class1.TypeKind); 138Assert.Equal(TypeKind.Class, type1.TypeKind); 186Assert.Equal(TypeKind.Interface, type1.TypeKind); 236Assert.Equal(TypeKind.Struct, type1.TypeKind); 306Assert.Equal(TypeKind.Array, type2.TypeKind); 307Assert.Equal(TypeKind.Array, type3.TypeKind);
Symbols\Metadata\PE\LoadCustomModifiers.cs (1)
167Assert.Equal(TypeKind.Array, propertyType.TypeKind);
Symbols\Metadata\PE\LoadingEvents.cs (13)
197Assert.Equal(TypeKind.Interface, @interface.TypeKind); 202Assert.Equal(TypeKind.Class, @class.TypeKind); 224Assert.Equal(TypeKind.Interface, @interface.TypeKind); 229Assert.Equal(TypeKind.Class, @class.TypeKind); 256Assert.Equal(TypeKind.Interface, @interface.TypeKind); 261Assert.Equal(TypeKind.Class, @class.TypeKind); 292Assert.Equal(TypeKind.Interface, defInterface.TypeKind); 297Assert.Equal(TypeKind.Interface, defInterface.TypeKind); 301Assert.Equal(TypeKind.Class, @class.TypeKind); 333Assert.Equal(TypeKind.Interface, outerInterface.TypeKind); 339Assert.Equal(TypeKind.Class, outerClass.TypeKind); 343Assert.Equal(TypeKind.Interface, innerInterface.TypeKind); 365Assert.Equal(TypeKind.Class, innerClass.TypeKind);
Symbols\Metadata\PE\LoadingGenericTypeParameters.cs (1)
74Assert.Equal(TypeKind.TypeParameter, varC1_T.TypeKind);
Symbols\Metadata\PE\LoadingMethods.cs (28)
377Assert.Equal(TypeKind.Struct, byrefReturnMethod.ReturnType.TypeKind); 389Assert.Equal(TypeKind.Interface, @interface.TypeKind); 394Assert.Equal(TypeKind.Class, @class.TypeKind); 413Assert.Equal(TypeKind.Interface, interface1.TypeKind); 418Assert.Equal(TypeKind.Interface, interface2.TypeKind); 423Assert.Equal(TypeKind.Class, @class.TypeKind); 449Assert.Equal(TypeKind.Interface, @interface.TypeKind); 455Assert.Equal(TypeKind.Class, @class.TypeKind); 485Assert.Equal(TypeKind.Interface, @interface.TypeKind); 491Assert.Equal(TypeKind.Class, @class.TypeKind); 517Assert.Equal(TypeKind.Interface, cyclicInterface.TypeKind); 520Assert.Equal(TypeKind.Interface, implementedInterface.TypeKind); 525Assert.Equal(TypeKind.Class, @class.TypeKind); 545Assert.Equal(TypeKind.Interface, cyclicInterface.TypeKind); 548Assert.Equal(TypeKind.Class, @class.TypeKind); 576Assert.Equal(TypeKind.Interface, defInterface.TypeKind); 581Assert.Equal(TypeKind.Interface, defInterface.TypeKind); 585Assert.Equal(TypeKind.Class, @class.TypeKind); 612Assert.Equal(TypeKind.Class, baseClass.TypeKind); 615Assert.Equal(TypeKind.Class, derivedClass.TypeKind); 637Assert.Equal(TypeKind.Interface, @interface.TypeKind); 640Assert.Equal(TypeKind.Class, @class.TypeKind); 670Assert.Equal(TypeKind.Interface, @interface.TypeKind); 673Assert.Equal(TypeKind.Class, @class.TypeKind); 704Assert.Equal(TypeKind.Interface, outerInterface.TypeKind); 710Assert.Equal(TypeKind.Class, outerClass.TypeKind); 714Assert.Equal(TypeKind.Interface, innerInterface.TypeKind); 736Assert.Equal(TypeKind.Class, innerClass.TypeKind);
Symbols\Metadata\PE\LoadingProperties.cs (15)
32Assert.Equal(TypeKind.Interface, @interface.TypeKind); 37Assert.Equal(TypeKind.Class, @class.TypeKind); 59Assert.Equal(TypeKind.Interface, @interface.TypeKind); 64Assert.Equal(TypeKind.Class, @class.TypeKind); 91Assert.Equal(TypeKind.Interface, @interface.TypeKind); 96Assert.Equal(TypeKind.Class, @class.TypeKind); 127Assert.Equal(TypeKind.Interface, defInterface.TypeKind); 132Assert.Equal(TypeKind.Interface, defInterface.TypeKind); 136Assert.Equal(TypeKind.Class, @class.TypeKind); 168Assert.Equal(TypeKind.Interface, outerInterface.TypeKind); 174Assert.Equal(TypeKind.Class, outerClass.TypeKind); 178Assert.Equal(TypeKind.Interface, innerInterface.TypeKind); 200Assert.Equal(TypeKind.Class, innerClass.TypeKind); 230Assert.Equal(TypeKind.Interface, @interface.TypeKind); 254Assert.Equal(TypeKind.Class, @class.TypeKind);
Symbols\Metadata\PE\NoPia.cs (4)
268Assert.Equal(TypeKind.Interface, param[0].Type.TypeKind); 269Assert.Equal(TypeKind.Interface, param[1].Type.TypeKind); 602Assert.Equal(TypeKind.Interface, param[0].Type.TypeKind); 603Assert.Equal(TypeKind.Interface, param[1].Type.TypeKind);
Symbols\Metadata\PE\NoPiaInstantiationOfGenericClassAndStruct.cs (2)
143if (m.ReturnType.TypeKind != TypeKind.Struct) 448if (m.ReturnType.TypeKind != TypeKind.Struct)
Symbols\Metadata\PE\TypeForwarders.cs (3)
106Assert.NotEqual(TypeKind.Error, funcType.TypeKind); 1492Assert.NotEqual(TypeKind.Error, type.TypeKind); 1761Assert.NotEqual(TypeKind.Error, type.TypeKind);
Symbols\Metadata\PE\TypeKindTests.cs (6)
40Assert.Equal(TypeKind.Class, obj.TypeKind); 46Assert.Equal(TypeKind.Class, @enum.TypeKind); 52Assert.Equal(TypeKind.Struct, int32.TypeKind); 58Assert.Equal(TypeKind.Delegate, func.TypeKind); 68Assert.Equal(TypeKind.Interface, ienumerable.TypeKind); 75Assert.Equal(TypeKind.Enum, typeCode.TypeKind);
Symbols\MissingSpecialMember.cs (11)
158Assert.Equal(TypeKind.Error, specialType.TypeKind); 163Assert.Equal(TypeKind.Class, lookupType.TypeKind); 236Assert.Equal(TypeKind.Struct, specialType.TypeKind); 240Assert.Equal(TypeKind.Struct, lookupType.TypeKind); 272Assert.Equal(TypeKind.Class, wellKnownType.TypeKind); 276Assert.Equal(TypeKind.Class, lookupType.TypeKind); 305Assert.Equal(TypeKind.Error, wellKnownType.TypeKind); 309Assert.Equal(TypeKind.Enum, lookupType.TypeKind); 382Assert.Equal(TypeKind.Class, wellKnownType.TypeKind); 385Assert.Equal(TypeKind.Class, lookupType.TypeKind); 499Assert.Equal(TypeKind.Class, wellKnown.TypeKind);
Symbols\MockNamedTypeSymbol.cs (5)
20private readonly TypeKind _typeKind; 144public override TypeKind TypeKind 151get { return _typeKind == TypeKind.Interface; } 172public MockNamedTypeSymbol(string name, IEnumerable<Symbol> children, TypeKind kind = TypeKind.Class)
Symbols\MockSymbolTests.cs (2)
69NamedTypeSymbol container = new MockNamedTypeSymbol("TestClass", Enumerable.Empty<Symbol>(), TypeKind.Class); 117result = new MockNamedTypeSymbol(name, childSymbols, TypeKind.Class);
Symbols\Retargeting\NoPia.cs (6)
570Assert.Equal(TypeKind.Interface, param[0].Type.TypeKind); 571Assert.Equal(TypeKind.Interface, param[1].Type.TypeKind); 871Assert.Equal(TypeKind.Interface, param[0].Type.TypeKind); 872Assert.Equal(TypeKind.Interface, param[1].Type.TypeKind); 1175Assert.Equal(TypeKind.Interface, param[0].Type.TypeKind); 1176Assert.Equal(TypeKind.Interface, param[1].Type.TypeKind);
Symbols\Retargeting\RetargetingTests.cs (18)
345Assert.Equal(TypeKind.Error, sourceType.BaseType().TypeKind); 347Assert.Equal(TypeKind.Error, sourceType.EnumUnderlyingType.TypeKind); 354Assert.Equal(TypeKind.Error, retargetingType.BaseType().TypeKind); 356Assert.Equal(TypeKind.Error, retargetingType.EnumUnderlyingType.TypeKind); 382Assert.Equal(TypeKind.Error, sourceType.BaseType().TypeKind); 384Assert.Equal(TypeKind.Error, sourceType.EnumUnderlyingType.TypeKind); 391Assert.Equal(TypeKind.Error, retargetingType.BaseType().TypeKind); 393Assert.Equal(TypeKind.Error, retargetingType.EnumUnderlyingType.TypeKind); 442Assert.Equal(TypeKind.Error, sourceType.BaseType().TypeKind); 448Assert.Equal(TypeKind.Error, retargetingType.BaseType().TypeKind); 523Assert.Equal(TypeKind.Error, sourceType.Interfaces().Single().TypeKind); 525Assert.Equal(TypeKind.Error, sourceType.BaseType().TypeKind); 530Assert.Equal(TypeKind.Error, retargetingType.Interfaces().Single().TypeKind); 532Assert.Equal(TypeKind.Error, retargetingType.BaseType().TypeKind); 581Assert.Equal(TypeKind.Error, sourceType.Interfaces().Single().TypeKind); 587Assert.Equal(TypeKind.Error, retargetingType.Interfaces().Single().TypeKind); 650Assert.Equal(TypeKind.Error, sourceTypeParameterConstraint.TypeKind); 657Assert.Equal(TypeKind.Error, retargetingTypeParameterConstraint.TypeKind);
Symbols\Source\BaseClassTests.cs (1)
1898Assert.Equal(TypeKind.Class, derived.TypeKind);
Symbols\Source\CustomModifierCopyTests.cs (4)
779Assert.Equal(TypeKind.Dynamic, classMethod.ParameterTypesWithAnnotations.Single().Type.TypeKind); 822Assert.Equal(TypeKind.Dynamic, interfaceMethod.ParameterTypesWithAnnotations.Single().Type.TypeKind); 1259Assert.Equal(TypeKind.Dynamic, interfaceMethod.ReturnType.TypeKind); 1300Assert.Equal(TypeKind.Dynamic, classMethod.ReturnType.TypeKind);
Symbols\Source\DelegateTests.cs (4)
110Assert.Equal(TypeKind.Delegate, fieldType.TypeKind); 130Assert.Equal(TypeKind.Delegate, v.TypeKind); 162Assert.Equal(TypeKind.Interface, beginInvoke.ReturnType.TypeKind); 208Assert.Equal(TypeKind.Delegate, d.TypeKind);
Symbols\Source\EnumTests.cs (1)
759Assert.Equal(TypeKind.Enum, member.Type.TypeKind);
Symbols\Source\FieldTests.cs (6)
65Assert.Equal(TypeKind.Class, sym.Type.TypeKind); 92Assert.Equal(TypeKind.Class, f.Type.TypeKind); 180Assert.Equal(TypeKind.Struct, sym.Type.TypeKind); 209Assert.Equal(TypeKind.Class, sym.Type.TypeKind); 214Assert.Equal(TypeKind.Interface, sym.Type.TypeKind); 219Assert.Equal(TypeKind.Struct, sym.Type.TypeKind);
Symbols\Source\MethodTests.cs (11)
367Assert.Equal(TypeKind.Class, refP.TypeKind); 375Assert.Equal(TypeKind.Struct, outP.TypeKind); 406Assert.Equal(TypeKind.Struct, m.ReturnType.TypeKind); 1667Assert.Equal(TypeKind.Interface, @interface.TypeKind); 1672Assert.Equal(TypeKind.Class, @class.TypeKind); 1711Assert.Equal(TypeKind.Interface, @interface.TypeKind); 1716Assert.Equal(TypeKind.Class, @class.TypeKind); 1756Assert.Equal(TypeKind.Interface, @interface.TypeKind); 1762Assert.Equal(TypeKind.Class, @class.TypeKind); 1807Assert.Equal(TypeKind.Interface, @interface.TypeKind); 1812Assert.Equal(TypeKind.Class, @class.TypeKind);
Symbols\Source\PropertyTests.cs (7)
1750Assert.Equal(TypeKind.Interface, @interface.TypeKind); 1755Assert.Equal(TypeKind.Class, @class.TypeKind); 1784Assert.Equal(TypeKind.Interface, @interface.TypeKind); 1789Assert.Equal(TypeKind.Class, @class.TypeKind); 1822Assert.Equal(TypeKind.Interface, @interface.TypeKind); 1827Assert.Equal(TypeKind.Class, @class.TypeKind); 1957Assert.Equal(TypeKind.Class, @class.TypeKind);
Symbols\SymbolDistinguisherTests.cs (2)
318Assert.NotEqual(TypeKind.Error, validType.TypeKind); 319Assert.Equal(TypeKind.Error, errorType.TypeKind);
Symbols\SymbolErrorTests.cs (15)
1577Assert.Equal(TypeKind.Struct, (n as FieldSymbol).Type.TypeKind); 1688Assert.Equal(TypeKind.Error, classCInterface.TypeKind); 1693Assert.Equal(TypeKind.Error, structSField.Type.TypeKind); 2334Assert.Equal(TypeKind.Error, baseType.TypeKind); 2340Assert.Equal(TypeKind.Error, mem1.Type.TypeKind); 2346Assert.Equal(TypeKind.Error, param.Type.TypeKind); 2576Assert.Equal(TypeKind.Error, baseType.TypeKind); 2581Assert.Equal(TypeKind.Error, baseType.TypeKind); 2586Assert.Equal(TypeKind.Error, baseType.TypeKind); 3361Assert.Equal(TypeKind.Error, ptype.Type.TypeKind); 3367Assert.Equal(TypeKind.Error, base1.TypeKind); 3372Assert.Equal(TypeKind.Error, mem2.Type.TypeKind); 3375Assert.Equal(TypeKind.Error, mem3.ReturnType.TypeKind); 3601Assert.Equal(TypeKind.Error, base1.TypeKind); 19284Assert.Equal(TypeKind.Class, Base.TypeKind);
Symbols\TypeTests.cs (20)
281Assert.Equal(TypeKind.Struct, type3.TypeKind); 288Assert.Equal(TypeKind.Interface, type4.TypeKind); 299Assert.Equal(TypeKind.Interface, type3.TypeKind); 307Assert.Equal(TypeKind.Class, type4.TypeKind); 473Assert.Equal(TypeKind.Array, elemType1.Type.TypeKind); 487Assert.Equal(TypeKind.Array, elemType2.TypeKind); 497Assert.Equal(TypeKind.Array, retType.TypeKind); 518Assert.Equal(TypeKind.Array, p3.Type.TypeKind); 855Assert.Equal(TypeKind.Interface, igoo.TypeKind); 868Assert.Equal(TypeKind.Class, classA.TypeKind); 880Assert.Equal(TypeKind.Struct, structS.TypeKind); 907Assert.Equal(TypeKind.Class, varA.Type.TypeKind); 1310Assert.Equal(TypeKind.Class, baseType.TypeKind); 1311Assert.Equal(TypeKind.Interface, interface1.TypeKind); 1312Assert.Equal(TypeKind.Interface, interface2.TypeKind); 1330Assert.Equal(TypeKind.Error, derived.BaseType().TypeKind); 1334Assert.Equal(TypeKind.Error, i.TypeKind); 1367Assert.Equal(TypeKind.Error, typeSymbol.TypeKind); 1705Assert.Equal(TypeKind.Enum, memType.GetNullableUnderlyingType().TypeKind); 1773Assert.Equal(TypeKind.Interface, ((ITypeSymbol)tinfo.Type).TypeKind);
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (8)
Parsing\ReadOnlyStructs.cs (8)
48Assert.Equal(TypeKind.Struct, s1.TypeKind); 54Assert.Equal(TypeKind.Struct, s2.TypeKind); 60Assert.Equal(TypeKind.Struct, s3.TypeKind); 122Assert.Equal(TypeKind.Class, s1.TypeKind); 128Assert.Equal(TypeKind.Delegate, s2.TypeKind); 134Assert.Equal(TypeKind.Interface, s3.TypeKind); 157Assert.Equal(TypeKind.Struct, s1.TypeKind); 163Assert.Equal(TypeKind.Struct, s2.TypeKind);
Microsoft.CodeAnalysis.CSharp.Test.Utilities (24)
Extensions.cs (8)
433if ((typeSym.TypeKind == TypeKind.Interface || typeSym.TypeKind == TypeKind.Class || typeSym.TypeKind == TypeKind.Struct || typeSym.TypeKind == TypeKind.Delegate)) 475else if (typeSym.TypeKind == TypeKind.Array) 673return type.TypeKind == TypeKind.Dynamic; 678return type.TypeKind == TypeKind.Delegate; 795return type.TypeKind == TypeKind.Enum ? ((INamedTypeSymbol)type).EnumUnderlyingType : type;
FunctionPointerUtilities.cs (1)
29Assert.Equal(TypeKind.FunctionPointer, symbol.TypeKind);
UsesIsNullableVisitor.cs (15)
170case TypeKind.Class: 171case TypeKind.Delegate: 172case TypeKind.Interface: 173case TypeKind.Struct: 174case TypeKind.Enum: 183case TypeKind.Array: 185case TypeKind.Class: 186case TypeKind.Delegate: 187case TypeKind.Error: 188case TypeKind.Interface: 189case TypeKind.Struct: 191case TypeKind.Dynamic: 192case TypeKind.Enum: 194case TypeKind.Pointer: 196case TypeKind.TypeParameter:
Microsoft.CodeAnalysis.CSharp.WinRT.UnitTests (1)
Metadata\WinMdEventTests.cs (1)
3347Assert.Equal(TypeKind.Error, fieldType.TypeKind);
Microsoft.CodeAnalysis.CSharp.Workspaces (41)
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 (4)
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 (2)
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.DiagnosticsTests.Utilities (5)
Diagnostics\AbstractUserDiagnosticTest_GenerateTypeDialog.cs (2)
44TypeKind typeKind = TypeKind.Class,
NamingStyles\NamingStylesTestOptionSets.cs (3)
113case TypeKind typeKind: 135ImmutableArray.Create(new SymbolSpecification.SymbolKindOrTypeKind(TypeKind.Class)), 615ImmutableArray.Create(new SymbolSpecification.SymbolKindOrTypeKind(TypeKind.Interface)),
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (4)
Diagnostics\GenerateType\TestGenerateTypeOptionsService.cs (4)
22public TypeKind TypeKind = TypeKind.Class; 74TypeKind typeKind = TypeKind.Class,
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (20)
CodeGeneration\AbstractCodeGenerationTests.cs (1)
125attributes: default, accessibility: default, modifiers: default, TypeKind.Class, name);
CodeGeneration\CodeGenerationTests.cs (2)
518TypeKind typeKind = TypeKind.Class,
CodeGeneration\CodeGenerationTests.CSharp.cs (9)
261[InlineData("struct", TypeKind.Struct)] 262[InlineData("interface", TypeKind.Interface)] 263[InlineData("enum", TypeKind.Enum)] 264public async Task AddFileType(string kindString, TypeKind typeKind) 321typeKind: TypeKind.Struct); 338typeKind: TypeKind.Struct); 353typeKind: TypeKind.Interface); 367typeKind: TypeKind.Enum); 383typeKind: TypeKind.Enum,
CodeGeneration\CodeGenerationTests.VisualBasic.cs (5)
236typeKind: TypeKind.Struct); 251typeKind: TypeKind.Struct); 264typeKind: TypeKind.Interface); 277typeKind: TypeKind.Enum, 292typeKind: TypeKind.Enum,
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.ExpressionEvaluator.ExpressionCompiler (1)
PDB\PdbHelpers.cs (1)
82if (type.TypeKind == TypeKind.Enum)
Microsoft.CodeAnalysis.Features (135)
AbstractRemoveUnusedParametersAndValuesDiagnosticAnalyzer.SymbolStartAnalyzer.BlockAnalyzer.cs (1)
150if (value.Type.TypeKind == TypeKind.Dynamic)
AbstractUnsealClassCodeFixProvider.cs (1)
40type.TypeKind == TypeKind.Class && type.IsSealed && !type.IsStatic)
AbstractUseAutoPropertyAnalyzer.cs (3)
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 (2)
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 (2)
91if (enclosingSymbol.TypeKind is not (TypeKind.Struct or TypeKind.Class))
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 })
ConvertAnonymousType\AbstractConvertAnonymousTypeToClassCodeRefactoringProvider.cs (1)
319isRecord, TypeKind.Class, className, capturedTypeParameters, members: members);
ConvertCast\AbstractConvertCastCodeRefactoringProvider.cs (1)
52if (type is { TypeKind: TypeKind.Error })
ConvertForEachToFor\AbstractConvertForEachToForCodeRefactoringProvider.cs (1)
279if (collectionType.TypeKind == TypeKind.Interface && knownCollectionInterfaces.Contains(collectionType.OriginalDefinition))
ConvertTupleToStruct\AbstractConvertTupleToStructCodeRefactoringProvider.cs (1)
910TypeKind.Struct, structName, typeParameters, members: members, containingAssembly: containingAssembly);
EditAndContinue\AbstractEditAndContinueAnalyzer.cs (12)
347TypeKind.Class => FeaturesResources.class_, 348TypeKind.Interface => FeaturesResources.interface_, 349TypeKind.Delegate => FeaturesResources.delegate_, 350TypeKind.Enum => FeaturesResources.enum_, 351TypeKind.TypeParameter => FeaturesResources.type_parameter, 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 }) 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)
ExtractClass\ExtractClassWithDialogCodeAction.cs (1)
96TypeKind.Class,
ExtractInterface\AbstractExtractInterfaceService.cs (3)
149typeKind: TypeKind.Interface, 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 (2)
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 (4)
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 (11)
23protected static readonly ISet<TypeKind> EnumType = new HashSet<TypeKind> { TypeKind.Enum }; 24protected static readonly ISet<TypeKind> ClassInterfaceModuleStructTypes = new HashSet<TypeKind> 26TypeKind.Class, 27TypeKind.Module, 28TypeKind.Struct, 29TypeKind.Interface 35ISet<TypeKind> typeKinds) 46if (typeToGenerateIn.TypeKind == TypeKind.Interface && isStatic)
GenerateMember\GenerateConstructor\AbstractGenerateConstructorService.State.cs (4)
400return TypeToGenerateIn?.TypeKind is (TypeKind?)TypeKind.Class or (TypeKind?)TypeKind.Struct;
GenerateMember\GenerateParameterizedMember\AbstractGenerateConversionService.cs (2)
26protected abstract bool TryInitializeImplicitConversionState(SemanticDocument document, SyntaxNode expression, ISet<TypeKind> classInterfaceModuleStructTypes, CancellationToken cancellationToken, out SyntaxToken identifierToken, out IMethodSymbol methodSymbol, out INamedTypeSymbol typeToGenerateIn); 27protected abstract bool TryInitializeExplicitConversionState(SemanticDocument document, SyntaxNode expression, ISet<TypeKind> classInterfaceModuleStructTypes, CancellationToken cancellationToken, out SyntaxToken identifierToken, out IMethodSymbol methodSymbol, out INamedTypeSymbol typeToGenerateIn);
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 (9)
43if (options.TypeKind == TypeKind.Delegate) 139if (_state.BaseTypeOrInterfaceOpt.TypeKind == TypeKind.Interface || argumentList.Count == 0) 219if (!(parameters.Count == 0 && options is { TypeKind: TypeKind.Struct })) 276if (_state.BaseTypeOrInterfaceOpt == null || _state.BaseTypeOrInterfaceOpt.TypeKind == TypeKind.Interface) 286if (_state.BaseTypeOrInterfaceOpt != null && _state.BaseTypeOrInterfaceOpt.TypeKind == TypeKind.Interface) 310private TypeKind DetermineTypeKind() 313? TypeKind.Struct 315? TypeKind.Interface 316: TypeKind.Class;
GenerateType\AbstractGenerateTypeService.State.cs (5)
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 294not TypeKind.Module)
GenerateType\GenerateTypeOptionsResult.cs (2)
22public TypeKind TypeKind { get; } 30TypeKind typeKind,
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 (3)
85return !symbol.IsStatic && namedType.TypeKind is TypeKind.Interface or TypeKind.Class or TypeKind.Struct;
InheritanceMargin\AbstractInheritanceMarginService_Helpers.cs (3)
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)
152private static TypeKind GetNewTypeKind(INamedTypeSymbol oldType)
PopulateSwitchExpressionHelpers.cs (1)
28if (switchExpressionType?.TypeKind == TypeKind.Enum)
PopulateSwitchStatementHelpers.cs (1)
57if (switchExpressionType?.TypeKind == TypeKind.Enum)
PullMemberUp\MemberAndDestinationValidator.cs (2)
17if (destination.TypeKind is not TypeKind.Interface and not TypeKind.Class)
PullMemberUp\MembersPuller.cs (5)
71TypeKind.Interface => PullMembersIntoInterfaceAsync(document, pullMembersUpOptions, fallbackOptions, cancellationToken), 73TypeKind.Class or TypeKind.Module => PullMembersIntoClassAsync(document, pullMembersUpOptions, fallbackOptions, cancellationToken), 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 (8)
40if (containingType != null && containingType.TypeKind == TypeKind.Enum) 60case TypeKind.Class: 64case TypeKind.Delegate: 68case TypeKind.Enum: 72case TypeKind.Interface: 76case TypeKind.Module: 80case TypeKind.Struct: 84case TypeKind.Error:
Snippets\SnippetFunctionService.cs (1)
59if (typeSymbol?.TypeKind != TypeKind.Enum)
Microsoft.CodeAnalysis.Test.Utilities (12)
Diagnostics\CouldHaveMoreSpecificTypeAnalyzer.cs (11)
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; 265if ((targetTypeKind == sourceTypeKind && (targetTypeKind == TypeKind.Class || targetTypeKind == TypeKind.Interface)) || 266(targetTypeKind == TypeKind.Class && (sourceTypeKind == TypeKind.Structure || sourceTypeKind == TypeKind.Interface) && targetType.SpecialType == SpecialType.System_Object))
Diagnostics\EmptyArrayAnalyzer.cs (1)
76&& elementType?.TypeKind != TypeKind.Pointer)
Microsoft.CodeAnalysis.VisualBasic (655)
Analysis\FlowAnalysis\DataFlowPass.vb (2)
457If receiverOpt.Type Is Nothing OrElse receiverOpt.Type.TypeKind <> TypeKind.Structure Then 1273ElseIf type.TypeKind = TypeKind.TypeParameter Then
Analysis\FlowAnalysis\RegionReachableWalker.vb (1)
9Imports TypeKind = Microsoft.CodeAnalysis.TypeKind
Analysis\IteratorAndAsyncAnalysis\IteratorAndAsyncCaptureWalker.vb (1)
11Imports TypeKind = Microsoft.CodeAnalysis.TypeKind
Binding\BackstopBinder.vb (1)
16Imports TypeKind = Microsoft.CodeAnalysis.TypeKind
Binding\BasesBeingResolvedBinder.vb (1)
14Imports TypeKind = Microsoft.CodeAnalysis.TypeKind
Binding\Binder.vb (2)
17Imports TypeKind = Microsoft.CodeAnalysis.TypeKind 456If type.TypeKind = TypeKind.Error AndAlso TypeOf type Is MissingMetadataTypeSymbol.TopLevel Then
Binding\Binder_AnonymousTypes.vb (1)
13Imports TypeKind = Microsoft.CodeAnalysis.TypeKind
Binding\Binder_Attributes.vb (1)
15Imports TypeKind = Microsoft.CodeAnalysis.TypeKind
Binding\Binder_ConditionalAccess.vb (1)
11Imports TypeKind = Microsoft.CodeAnalysis.TypeKind
Binding\Binder_Conversions.vb (7)
12Imports TypeKind = Microsoft.CodeAnalysis.TypeKind 782Case TypeKind.Delegate 789Case TypeKind.Interface 1218If targetType.TypeKind <> TypeKind.Delegate AndAlso targetType.TypeKind <> TypeKind.Error Then 1370If(targetDelegateType.TypeKind = TypeKind.Delegate AndAlso targetDelegateType.IsFromCompilation(Me.Compilation), 1422If(targetDelegateType.TypeKind = TypeKind.Delegate AndAlso targetDelegateType.IsFromCompilation(Me.Compilation),
Binding\Binder_Delegates.vb (3)
10Imports TypeKind = Microsoft.CodeAnalysis.TypeKind 234ElseIf targetType.TypeKind <> TypeKind.Delegate Then 236If targetType.TypeKind <> TypeKind.Error Then
Binding\Binder_Diagnostics.vb (1)
8Imports TypeKind = Microsoft.CodeAnalysis.TypeKind
Binding\Binder_Expressions.vb (22)
1049type.TypeKind <> TYPEKIND.Class Then 1189Case TYPEKIND.Class 1192Case TYPEKIND.Interface 1195Case TYPEKIND.Enum 1198Case TYPEKIND.Structure 2580If currentType.TypeKind = TYPEKIND.Submission AndAlso Not currentMember.IsShared Then 2581If memberDeclaringType.TypeKind = TYPEKIND.Submission Then 2715If CaseInsensitiveComparison.Equals(leftType.Name, leftName) AndAlso leftType.TypeKind <> TYPEKIND.TypeParameter Then 2792Dim leftTypeKind As TYPEKIND = leftTypeSymbol.TypeKind 2794If leftTypeKind = TYPEKIND.Class OrElse leftTypeKind = TYPEKIND.Structure OrElse leftTypeKind = TYPEKIND.Module Then 2877If type.TypeKind = TYPEKIND.TypeParameter Then 3773Case TYPEKIND.Array, TYPEKIND.Enum 3775Case TYPEKIND.Class 3781Case TYPEKIND.TypeParameter, TYPEKIND.Interface 3783Case TYPEKIND.Structure 3810Case TYPEKIND.Class 3813Case TYPEKIND.Structure 3816Case TYPEKIND.Error
Binding\Binder_Invocation.vb (1)
288ElseIf targetType.Kind = SymbolKind.NamedType AndAlso targetType.TypeKind = TypeKind.Delegate Then
Binding\Binder_Latebound.vb (1)
12Imports TypeKind = Microsoft.CodeAnalysis.TypeKind
Binding\Binder_Lookup.vb (35)
16Imports TypeKind = Microsoft.CodeAnalysis.TypeKind 580Case TypeKind.Class, TypeKind.Module, TypeKind.Structure, TypeKind.Delegate, TypeKind.Array, TypeKind.Enum 583Case TypeKind.Submission 586Case TypeKind.Interface 589Case TypeKind.TypeParameter 592Case TypeKind.Error 606Case TypeKind.Class, TypeKind.Structure, TypeKind.Delegate, TypeKind.Array, TypeKind.Enum 609Case TypeKind.Module 612Case TypeKind.Submission 615Case TypeKind.Interface 618Case TypeKind.TypeParameter 621Case TypeKind.Error 931Case TypeKind.Class, TypeKind.Module, TypeKind.Structure 936Case TypeKind.Interface 941Case TypeKind.TypeParameter 1092Case TypeKind.Class, TypeKind.Module, TypeKind.Structure 1104Case TypeKind.Interface 1116Case TypeKind.TypeParameter 1697Case TypeKind.Interface 1710Case TypeKind.TypeParameter 1964(container.TypeKind = TypeKind.Class OrElse container.TypeKind = TypeKind.Structure) AndAlso
Binding\Binder_ObjectInitializer.vb (18)
80Case TypeKind.Delegate 84Case TypeKind.Structure 206Case TypeKind.Class 215Case TypeKind.Interface 221Case TypeKind.Error, 222TypeKind.Interface 228Case TypeKind.Array 234Case TypeKind.Class, 235TypeKind.Delegate, 236TypeKind.Enum, 237TypeKind.Module, 238TypeKind.Structure 292Case TypeKind.Error 299Case TypeKind.TypeParameter 320Case TypeKind.Enum, TypeKind.Structure 323Case TypeKind.Module 330Case TypeKind.Array
Binding\Binder_SelectCase.vb (1)
12Imports TypeKind = Microsoft.CodeAnalysis.TypeKind
Binding\Binder_Statements.vb (1)
970If Me.ContainingType IsNot Nothing AndAlso Me.ContainingType.TypeKind = TYPEKIND.Structure Then
Binding\Binder_Utils.vb (6)
1161Case TypeKind.Module 1180Case TypeKind.Interface 1189Case TypeKind.Structure 1241Case TypeKind.Module 1253Case TypeKind.Interface 1262Case TypeKind.Structure
Binding\Binder_WithBlock.vb (1)
11Imports TypeKind = Microsoft.CodeAnalysis.TypeKind
Binding\BinderFactory.vb (1)
386containingType.TypeKind = TypeKind.Delegate Then
Binding\Binders\AliasAndImportsClause.vb (1)
14Imports TypeKind = Microsoft.CodeAnalysis.TypeKind
Binding\DocumentationCommentBinder.vb (1)
44If commentedNamedType IsNot Nothing AndAlso commentedNamedType.TypeKind <> TypeKind.Delegate Then
Binding\DocumentationCommentParamBinder.vb (1)
30If namedType.TypeKind = TypeKind.Delegate Then
Binding\EarlyWellKnownAttributeBinder.vb (1)
14Imports TypeKind = Microsoft.CodeAnalysis.TypeKind
Binding\ExecutableCodeBinder.vb (1)
16Imports TypeKind = Microsoft.CodeAnalysis.TypeKind
Binding\GetTypeBinder.vb (1)
10Imports TypeKind = Microsoft.CodeAnalysis.TypeKind
Binding\IgnoreBaseClassesBinder.vb (1)
14Imports TypeKind = Microsoft.CodeAnalysis.TypeKind
Binding\ImportAliasesBinder.vb (1)
16Imports TypeKind = Microsoft.CodeAnalysis.TypeKind
Binding\ImportedTypesAndNamespacesMembersBinder.vb (1)
16Imports TypeKind = Microsoft.CodeAnalysis.TypeKind
Binding\LocationSpecificBinder.vb (1)
15Imports TypeKind = Microsoft.CodeAnalysis.TypeKind
Binding\LookupResult.vb (1)
740If symbol1.Kind <> SymbolKind.Field OrElse symbol2.Kind <> SymbolKind.Field OrElse symbol1.ContainingType.TypeKind <> TypeKind.Enum Then
Binding\MemberSemanticModel.vb (1)
14Imports TypeKind = Microsoft.CodeAnalysis.TypeKind
Binding\MethodBodyBinder.vb (1)
14Imports TypeKind = Microsoft.CodeAnalysis.TypeKind
Binding\MethodTypeParametersBinder.vb (1)
15Imports TypeKind = Microsoft.CodeAnalysis.TypeKind
Binding\NamedTypeBinder.vb (1)
16Imports TypeKind = Microsoft.CodeAnalysis.TypeKind
Binding\NamespaceBinder.vb (1)
16Imports TypeKind = Microsoft.CodeAnalysis.TypeKind
Binding\OptionStrictOffBinder.vb (1)
9Imports TypeKind = Microsoft.CodeAnalysis.TypeKind
Binding\ProjectImportsBinder.vb (1)
14Imports TypeKind = Microsoft.CodeAnalysis.TypeKind
Binding\SourceFileBinder.vb (1)
14Imports TypeKind = Microsoft.CodeAnalysis.TypeKind
Binding\SourceModuleBinder.vb (1)
15Imports TypeKind = Microsoft.CodeAnalysis.TypeKind
Binding\SpeculativeStatementBinder.vb (1)
14Imports TypeKind = Microsoft.CodeAnalysis.TypeKind
Binding\TypesOfImportedNamespacesMembersBinder.vb (1)
16Imports TypeKind = Microsoft.CodeAnalysis.TypeKind
BoundTree\BoundNewT.vb (1)
16Debug.Assert(Type.TypeKind = TypeKind.TypeParameter)
CodeGen\EmitAddress.vb (1)
471If receiverType.TypeKind = TypeKind.TypeParameter Then
CodeGen\EmitExpression.vb (5)
294(receiverType.IsReferenceType AndAlso receiverType.TypeKind = TypeKind.TypeParameter) 493Debug.Assert(thisType.TypeKind <> TypeKind.TypeParameter) 615If elementType.TypeKind = TypeKind.TypeParameter Then 1590If ((type IsNot Nothing) AndAlso (type.TypeKind = TypeKind.TypeParameter) AndAlso constantValue.IsNull) Then 1710Return AllowedToTakeRef(left, AddressKind.Writeable) AndAlso Not (left.Kind = BoundKind.ArrayAccess AndAlso left.Type.TypeKind = TypeKind.TypeParameter)
CodeGen\EmitStatement.vb (2)
367Debug.Assert(receiver.Type.TypeKind <> TypeKind.TypeParameter) 914If (operandType IsNot Nothing) AndAlso (operandType.TypeKind = TypeKind.TypeParameter) Then
CodeGen\Optimizer\Optimizer.vb (1)
9Imports TypeKind = Microsoft.CodeAnalysis.TypeKind
CodeGen\Optimizer\StackScheduler.Analyzer.vb (1)
11Imports TypeKind = Microsoft.CodeAnalysis.TypeKind
CodeGen\Optimizer\StackScheduler.Rewriter.vb (1)
11Imports TypeKind = Microsoft.CodeAnalysis.TypeKind
CodeGen\Optimizer\StackScheduler.vb (1)
10Imports TypeKind = Microsoft.CodeAnalysis.TypeKind
CommandLine\VisualBasicCommandLineArguments.vb (1)
17Imports TypeKind = Microsoft.CodeAnalysis.TypeKind
Compilation\ClsComplianceChecker.vb (26)
186If symbol.TypeKind = TypeKind.Delegate Then 340ElseIf symbol.TypeKind = TypeKind.Enum Then 439If type.TypeKind = TypeKind.Delegate AndAlso type.IsImplicitlyDeclared AndAlso TryCast(type, NamedTypeSymbol)?.AssociatedSymbol Is symbol Then 591Case TypeKind.Array 593Case TypeKind.Error, TypeKind.TypeParameter 595Case TypeKind.Class, TypeKind.Structure, TypeKind.Interface, TypeKind.Delegate, TypeKind.Enum, TypeKind.Submission, TypeKind.Module 617Case TypeKind.Array 619Case TypeKind.Error, TypeKind.TypeParameter 621Case TypeKind.Class, TypeKind.Structure, TypeKind.Interface, TypeKind.Delegate, TypeKind.Enum, TypeKind.Submission, TypeKind.Module 636If type.TypeKind = TypeKind.Error Then 892Dim typeKind As TypeKind = xType.TypeKind 897If typeKind = TypeKind.Array Then
Compilation\DocumentationComments\DocumentationCommentCompiler.Common.vb (7)
737Case TypeKind.Class 739Case TypeKind.Delegate 741Case TypeKind.Enum 743Case TypeKind.Interface 745Case TypeKind.Module 747Case TypeKind.Structure 768If namedType.TypeKind <> TypeKind.Delegate Then
Compilation\DocumentationComments\DocumentationCommentCompiler.Includes.vb (5)
123If namedType.TypeKind = TYPEKIND.Delegate Then 131Me.ParamAndParamRefSupported = namedType.TypeKind = TYPEKIND.Delegate 132Me.TypeParamSupported = namedType.TypeKind <> TYPEKIND.Enum AndAlso namedType.TypeKind <> TYPEKIND.Module 133Me.TypeParamRefSupported = namedType.TypeKind <> TYPEKIND.Module
Compilation\DocumentationComments\DocumentationCommentCompiler.NamedType.vb (5)
107If namedType.TypeKind = TypeKind.Delegate Then 116If namedType.TypeKind = TypeKind.Delegate Then 127If namedType.TypeKind = TypeKind.Enum Then 132ElseIf namedType.TypeKind = TypeKind.Enum OrElse namedType.TypeKind = TypeKind.Module Then
Compilation\MethodCompiler.vb (1)
856If sourceTypeSymbol.TypeKind = TypeKind.Class AndAlso sourceTypeSymbol.GetAttributes().IndexOfAttribute(sourceTypeSymbol, AttributeDescription.DesignerGeneratedAttribute) > -1 Then
Compilation\SemanticModel.vb (1)
968If highestExpr.Type IsNot Nothing AndAlso highestExpr.Type.TypeKind <> TypeKind.Error Then
Compilation\SyntaxTreeSemanticModel.vb (2)
17Imports TypeKind = Microsoft.CodeAnalysis.TypeKind 1080Debug.Assert(typeSymbol.TypeKind = TYPEKIND.Delegate)
Compilation\VisualBasicCompilation.vb (3)
1538If mainType Is Nothing OrElse (mainType.TypeKind <> TYPEKIND.Class AndAlso mainType.TypeKind <> TYPEKIND.Structure AndAlso mainType.TypeKind <> TYPEKIND.Module) Then
Emit\EditAndContinue\PEDeltaAssemblyBuilder.vb (1)
190If propertyType.TypeKind = TypeKind.TypeParameter Then
Emit\NamedTypeReference.vb (1)
48Return m_UnderlyingNamedType.TypeKind = TypeKind.Enum
Emit\NamedTypeSymbolAdapter.vb (8)
36Return AdaptedNamedTypeSymbol.TypeKind = TypeKind.Enum 230If AdaptedNamedTypeSymbol.TypeKind = TypeKind.Submission Then 449Case TypeKind.Enum, TypeKind.Interface, TypeKind.Delegate 960Case TypeKind.Module, TypeKind.Enum, TypeKind.Structure
Emit\NoPia\EmbeddedType.vb (3)
129Case TypeKind.Enum, TypeKind.Delegate, TypeKind.Interface
Emit\NoPia\EmbeddedTypesManager.vb (16)
208Case TypeKind.Interface 223Case TypeKind.Structure, 224TypeKind.Enum, 225TypeKind.Delegate 243Debug.Assert(type.TypeKind = TypeKind.Class OrElse type.TypeKind = TypeKind.Module) 318Debug.Assert(namedType.TypeKind = TypeKind.Structure OrElse 319namedType.TypeKind = TypeKind.Enum OrElse 320namedType.TypeKind = TypeKind.Delegate) 323If namedType.TypeKind = TypeKind.Structure OrElse namedType.TypeKind = TypeKind.Enum Then 369If containerKind = TypeKind.Interface OrElse 370containerKind = TypeKind.Delegate OrElse 371(containerKind = TypeKind.Structure AndAlso (field.AdaptedFieldSymbol.IsShared OrElse field.AdaptedFieldSymbol.DeclaredAccessibility <> Accessibility.Public)) Then 403Case TypeKind.Structure, TypeKind.Enum
Emit\SymbolTranslator.vb (3)
324If symbol.ContainingType.TypeKind = TypeKind.Submission Then 338If symbol.ContainingType.TypeKind = TypeKind.Submission Then 345Debug.Assert(symbol.ContainingType.TypeKind <> TypeKind.Submission)
Lowering\AsyncRewriter\AsyncRewriter.AsyncMethodToClassRewriter.Expressions.vb (1)
16Imports TypeKind = Microsoft.CodeAnalysis.TypeKind
Lowering\AsyncRewriter\AsyncRewriter.AsyncMethodToClassRewriter.Spilling.vb (1)
488If type.TypeKind <> TypeKind.Structure Then
Lowering\AsyncRewriter\AsyncRewriter.vb (5)
91Dim kind = If(compilationState.Compilation.Options.EnableEditAndContinue, TypeKind.Class, TypeKind.Struct) 141If frameType.TypeKind = TypeKind.Class Then 185If Me.F.CurrentType.TypeKind = TypeKind.Class Then 200If StateMachineType.TypeKind = TypeKind.Class Then
Lowering\AsyncRewriter\AsyncStateMachine.vb (4)
14Private ReadOnly _typeKind As TypeKind 17Protected Friend Sub New(slotAllocatorOpt As VariableSlotAllocator, compilationState As TypeCompilationState, asyncMethod As MethodSymbol, asyncMethodOrdinal As Integer, typeKind As TypeKind) 22asyncMethod.ContainingAssembly.GetSpecialType(If(typeKind = TypeKind.Struct, SpecialType.System_ValueType, SpecialType.System_Object)), 30Public Overrides ReadOnly Property TypeKind As TypeKind
Lowering\Diagnostics\DiagnosticsPass.vb (1)
15Imports TypeKind = Microsoft.CodeAnalysis.TypeKind
Lowering\ExpressionLambdaRewriter\ExpressionLambdaRewriter.vb (2)
17Imports TypeKind = Microsoft.CodeAnalysis.TypeKind 446Debug.Assert(delegateType.TypeKind = TYPEKIND.Delegate)
Lowering\ExpressionLambdaRewriter\ExpressionLambdaRewriter_BinaryOperator.vb (1)
16Imports TypeKind = Microsoft.CodeAnalysis.TypeKind
Lowering\ExpressionLambdaRewriter\ExpressionLambdaRewriter_ConditionalExpresion.vb (1)
16Imports TypeKind = Microsoft.CodeAnalysis.TypeKind
Lowering\ExpressionLambdaRewriter\ExpressionLambdaRewriter_Conversion.vb (1)
15Imports TypeKind = Microsoft.CodeAnalysis.TypeKind
Lowering\ExpressionLambdaRewriter\ExpressionLambdaRewriter_UnaryOperator.vb (1)
16Imports TypeKind = Microsoft.CodeAnalysis.TypeKind
Lowering\IteratorRewriter\IteratorStateMachine.vb (2)
62Public Overrides ReadOnly Property TypeKind As TypeKind 64Return TypeKind.Class
Lowering\LambdaRewriter\LambdaCapturedVariable.vb (1)
13Imports TypeKind = Microsoft.CodeAnalysis.TypeKind
Lowering\LambdaRewriter\LambdaFrame.vb (2)
207Public Overrides ReadOnly Property TypeKind As TypeKind 209Return TypeKind.Class
Lowering\LambdaRewriter\LambdaFrameCopyConstructor.vb (1)
12Imports TypeKind = Microsoft.CodeAnalysis.TypeKind
Lowering\LocalRewriter\LocalRewriter_AnonymousTypeCreationExpression.vb (1)
12Imports TypeKind = Microsoft.CodeAnalysis.TypeKind
Lowering\LocalRewriter\LocalRewriter_AsNewLocalDeclarations.vb (1)
11Imports TypeKind = Microsoft.CodeAnalysis.TypeKind
Lowering\LocalRewriter\LocalRewriter_AssignmentOperator.vb (1)
12Imports TypeKind = Microsoft.CodeAnalysis.TypeKind
Lowering\LocalRewriter\LocalRewriter_BinaryOperators.vb (1)
12Imports TypeKind = Microsoft.CodeAnalysis.TypeKind
Lowering\LocalRewriter\LocalRewriter_Block.vb (1)
11Imports TypeKind = Microsoft.CodeAnalysis.TypeKind
Lowering\LocalRewriter\LocalRewriter_Call.vb (1)
12Imports TypeKind = Microsoft.CodeAnalysis.TypeKind
Lowering\LocalRewriter\LocalRewriter_ConditionalAccess.vb (1)
11Imports TypeKind = Microsoft.CodeAnalysis.TypeKind
Lowering\LocalRewriter\LocalRewriter_ConditionalExpressions.vb (1)
11Imports TypeKind = Microsoft.CodeAnalysis.TypeKind
Lowering\LocalRewriter\LocalRewriter_Constant.vb (1)
11Imports TypeKind = Microsoft.CodeAnalysis.TypeKind
Lowering\LocalRewriter\LocalRewriter_Continue.vb (1)
10Imports TypeKind = Microsoft.CodeAnalysis.TypeKind
Lowering\LocalRewriter\LocalRewriter_DimStatement.vb (1)
11Imports TypeKind = Microsoft.CodeAnalysis.TypeKind
Lowering\LocalRewriter\LocalRewriter_DoLoop.vb (1)
11Imports TypeKind = Microsoft.CodeAnalysis.TypeKind
Lowering\LocalRewriter\LocalRewriter_Exit.vb (1)
10Imports TypeKind = Microsoft.CodeAnalysis.TypeKind
Lowering\LocalRewriter\LocalRewriter_ExpressionStatement.vb (1)
10Imports TypeKind = Microsoft.CodeAnalysis.TypeKind
Lowering\LocalRewriter\LocalRewriter_FieldAccess.vb (1)
11Imports TypeKind = Microsoft.CodeAnalysis.TypeKind
Lowering\LocalRewriter\LocalRewriter_FieldOrPropertyInitializer.vb (1)
12Imports TypeKind = Microsoft.CodeAnalysis.TypeKind
Lowering\LocalRewriter\LocalRewriter_ForEach.vb (1)
12Imports TypeKind = Microsoft.CodeAnalysis.TypeKind
Lowering\LocalRewriter\LocalRewriter_ForTo.vb (1)
12Imports TypeKind = Microsoft.CodeAnalysis.TypeKind
Lowering\LocalRewriter\LocalRewriter_Goto.vb (1)
10Imports TypeKind = Microsoft.CodeAnalysis.TypeKind
Lowering\LocalRewriter\LocalRewriter_Label.vb (1)
12Imports TypeKind = Microsoft.CodeAnalysis.TypeKind
Lowering\LocalRewriter\LocalRewriter_Lambda.vb (1)
10Imports TypeKind = Microsoft.CodeAnalysis.TypeKind
Lowering\LocalRewriter\LocalRewriter_LateAddressOf.vb (1)
11Imports TypeKind = Microsoft.CodeAnalysis.TypeKind
Lowering\LocalRewriter\LocalRewriter_LateBindingHelpers.vb (1)
12Imports TypeKind = Microsoft.CodeAnalysis.TypeKind
Lowering\LocalRewriter\LocalRewriter_LateInvocation.vb (1)
12Imports TypeKind = Microsoft.CodeAnalysis.TypeKind
Lowering\LocalRewriter\LocalRewriter_LateMemberAccess.vb (1)
10Imports TypeKind = Microsoft.CodeAnalysis.TypeKind
Lowering\LocalRewriter\LocalRewriter_NullableHelpers.vb (1)
12Imports TypeKind = Microsoft.CodeAnalysis.TypeKind
Lowering\LocalRewriter\LocalRewriter_OmittedArgument.vb (1)
10Imports TypeKind = Microsoft.CodeAnalysis.TypeKind
Lowering\LocalRewriter\LocalRewriter_PreviousSubmissionReference.vb (1)
15Debug.Assert(targetType.TypeKind = TypeKind.Submission)
Lowering\LocalRewriter\LocalRewriter_Query.vb (1)
11Imports TypeKind = Microsoft.CodeAnalysis.TypeKind
Lowering\LocalRewriter\LocalRewriter_Redim.vb (1)
10Imports TypeKind = Microsoft.CodeAnalysis.TypeKind
Lowering\LocalRewriter\LocalRewriter_RedimClause.vb (1)
12Imports TypeKind = Microsoft.CodeAnalysis.TypeKind
Lowering\LocalRewriter\LocalRewriter_Return.vb (1)
11Imports TypeKind = Microsoft.CodeAnalysis.TypeKind
Lowering\LocalRewriter\LocalRewriter_SelectCase.vb (1)
14Imports TypeKind = Microsoft.CodeAnalysis.TypeKind
Lowering\LocalRewriter\LocalRewriter_StringConcat.vb (1)
12Imports TypeKind = Microsoft.CodeAnalysis.TypeKind
Lowering\LocalRewriter\LocalRewriter_SyncLock.vb (1)
12Imports TypeKind = Microsoft.CodeAnalysis.TypeKind
Lowering\LocalRewriter\LocalRewriter_Throw.vb (1)
11Imports TypeKind = Microsoft.CodeAnalysis.TypeKind
Lowering\LocalRewriter\LocalRewriter_Try.vb (1)
11Imports TypeKind = Microsoft.CodeAnalysis.TypeKind
Lowering\LocalRewriter\LocalRewriter_UnaryOperators.vb (1)
12Imports TypeKind = Microsoft.CodeAnalysis.TypeKind
Lowering\LocalRewriter\LocalRewriter_UnstructuredExceptionHandling.vb (1)
12Imports TypeKind = Microsoft.CodeAnalysis.TypeKind
Lowering\LocalRewriter\LocalRewriter_Using.vb (1)
12Imports TypeKind = Microsoft.CodeAnalysis.TypeKind
Lowering\LocalRewriter\LocalRewriter_While.vb (1)
11Imports TypeKind = Microsoft.CodeAnalysis.TypeKind
Lowering\LocalRewriter\LocalRewriter_With.vb (1)
12Imports TypeKind = Microsoft.CodeAnalysis.TypeKind
Lowering\StateMachineRewriter\SynthesizedContainer.vb (1)
110Public MustOverride Overrides ReadOnly Property TypeKind As TypeKind
Lowering\UseTwiceRewriter.vb (1)
12Imports TypeKind = Microsoft.CodeAnalysis.TypeKind
Lowering\WithExpressionRewriter.vb (1)
12Imports TypeKind = Microsoft.CodeAnalysis.TypeKind
OptionsValidator.vb (1)
11Imports TypeKind = Microsoft.CodeAnalysis.TypeKind
Semantics\AccessCheck.vb (7)
12Imports TypeKind = Microsoft.CodeAnalysis.TypeKind 232If containingType.TypeKind = TypeKind.Submission Then 287If originalContainingType.TypeKind = TypeKind.Submission Then 444Case TypeKind.Interface 446Case TypeKind.TypeParameter 506Case TypeKind.Interface 511Case TypeKind.TypeParameter
Semantics\Conversions.vb (22)
1741If destination.TypeKind = TypeKind.Enum AndAlso 1746If source.TypeKind = TypeKind.Enum AndAlso 1750ElseIf source.TypeKind = TypeKind.Enum AndAlso destination.TypeKind = TypeKind.Enum Then 1992(src.TypeKind <> TypeKind.Class OrElse DirectCast(src, NamedTypeSymbol).IsNotInheritable) AndAlso 2014(dst.TypeKind <> TypeKind.Class OrElse DirectCast(dst, NamedTypeSymbol).IsNotInheritable) AndAlso 2447If Not base.IsErrorType() AndAlso base.TypeKind = TypeKind.Class AndAlso 2860Case TypeKind.Class, 2861TypeKind.Module 2867Case TypeKind.Delegate 2873Case TypeKind.Interface 2879Case TypeKind.Array 2898Return typeKind = TypeKind.Class OrElse typeKind = TypeKind.Module OrElse typeKind = TypeKind.Delegate 2903Return typeKind = TypeKind.Enum OrElse typeKind = TypeKind.Structure 2907Return type.TypeKind = TypeKind.Delegate 2911Return type.TypeKind = TypeKind.Array 3360If type.TypeKind = TypeKind.Enum Then 3779ElseIf constraint.TypeKind = TypeKind.Enum AndAlso 3943ElseIf constraint.TypeKind = TypeKind.Enum AndAlso
Semantics\Operators.vb (1)
14Imports TypeKind = Microsoft.CodeAnalysis.TypeKind
Semantics\OverloadResolution.vb (5)
15Imports TypeKind = Microsoft.CodeAnalysis.TypeKind 2050left.TypeKind = TypeKind.Enum AndAlso right.TypeKind <> TypeKind.Enum Then 2066right.TypeKind = TypeKind.Enum AndAlso left.TypeKind <> TypeKind.Enum Then
Semantics\TypeInference\TypeArgumentInference.vb (5)
1784Dim fixedTypeTypeKind As TypeKind = fixedType.TypeKind 1786If fixedTypeTypeKind <> TypeKind.Class AndAlso fixedTypeTypeKind <> TypeKind.Interface Then 1810If fixedTypeTypeKind = TypeKind.Class Then 1813Debug.Assert(fixedTypeTypeKind = TypeKind.Interface)
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 (18)
199symbol.TypeKind = TypeKind.Delegate AndAlso 254Case TypeKind.Class, 255TypeKind.Submission 257Case TypeKind.Delegate 259Case TypeKind.Enum 261Case TypeKind.Interface 263Case TypeKind.Module 265Case TypeKind.Struct 267Case TypeKind.Error 324Case TypeKind.Class 335Case TypeKind.Delegate 449Private Shared Function GetTypeKindKeyword(typeKind As TypeKind) As SyntaxKind 451Case TypeKind.Enum 453Case TypeKind.Class 455Case TypeKind.Delegate 457Case TypeKind.Interface 459Case TypeKind.Module 461Case TypeKind.Struct
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\AnonymousTypes\AnonymousType_SymbolCollection.vb (2)
107Case TypeKind.Class 115Case TypeKind.Delegate
Symbols\AnonymousTypes\AnonymousTypeManager_Templates.vb (2)
218Case TypeKind.Delegate 221Case TypeKind.Class
Symbols\AnonymousTypes\PublicSymbols\AnonymousDelegate_TypePublicSymbol.vb (2)
121Public Overrides ReadOnly Property TypeKind As TypeKind 123Return TypeKind.Delegate
Symbols\AnonymousTypes\PublicSymbols\AnonymousType_TypePublicSymbol.vb (2)
147Public Overrides ReadOnly Property TypeKind As TypeKind 149Return TypeKind.Class
Symbols\AnonymousTypes\PublicSymbols\AnonymousTypeOrDelegatePublicSymbol.vb (3)
20Debug.Assert((TypeKind = TypeKind.Class AndAlso TypeOf Me Is AnonymousTypePublicSymbol) OrElse 21(TypeKind = TypeKind.Delegate AndAlso TypeOf Me Is AnonymousDelegatePublicSymbol)) 63Public MustOverride Overrides ReadOnly Property TypeKind As TYPEKIND
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousDelegate_TemplateSymbol.vb (2)
160Public Overrides ReadOnly Property TypeKind As TypeKind 162Return TypeKind.Delegate
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType_TemplateSymbol.vb (2)
134Public Overrides ReadOnly Property TypeKind As TypeKind 136Return TypeKind.Class
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousTypeOrDelegateTemplateSymbol.vb (5)
53Debug.Assert(TypeKind = TypeKind.Class OrElse TypeKind = TypeKind.Delegate) 60If TypeKind = TypeKind.Delegate AndAlso typeDescr.Fields.IsSubDescription() Then 67Debug.Assert(TypeKind = TypeKind.Delegate) 120Public MustOverride Overrides ReadOnly Property TypeKind As TypeKind
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousTypeOrDelegateTypeParameterSymbol.vb (2)
59If _container.TypeKind = TypeKind.Delegate Then 66Debug.Assert(_container.TypeKind = TypeKind.Class)
Symbols\ArrayTypeSymbol.vb (3)
255Public Overrides ReadOnly Property TypeKind As TypeKind 257Return TypeKind.Array 355While (current.TypeKind = TypeKind.Array)
Symbols\AssemblySymbol.vb (1)
706If result Is Nothing OrElse result.TypeKind = TypeKind.Error Then
Symbols\Attributes\AttributeData.vb (1)
16Imports TypeKind = Microsoft.CodeAnalysis.TypeKind
Symbols\BaseTypeAnalysis.vb (2)
124If this.TypeKind = TypeKind.Class Then 233If currentNamedType.TypeKind = TypeKind.Class Then
Symbols\ConstraintsHelper.vb (21)
162Case TypeKind.Class 215Case TypeKind.Interface, 216TypeKind.Error 218Case TypeKind.Module 222Case TypeKind.TypeParameter 247Case TypeKind.Array, 248TypeKind.Delegate, 249TypeKind.Enum, 250TypeKind.Structure 804Case TypeKind.Array, 805TypeKind.Enum, 806TypeKind.Structure 811Debug.Assert(baseType.TypeKind <> TypeKind.TypeParameter) 836Case TypeKind.TypeParameter 841Case TypeKind.Error 906Case TypeKind.Enum, 907TypeKind.Structure 910Case TypeKind.TypeParameter 922If typeArgument.TypeKind = TypeKind.Class Then 1081If type.TypeKind = TypeKind.TypeParameter Then 1118Debug.Assert(type.TypeKind = TypeKind.Class)
Symbols\EmbeddedSymbols\EmbeddedSymbolManager.SymbolsCollection.vb (3)
14Imports TypeKind = Microsoft.CodeAnalysis.TypeKind 333Debug.Assert(type.TypeKind = TypeKind.Module OrElse type.TypeKind = TypeKind.Class AndAlso type.IsNotInheritable)
Symbols\ErrorTypeSymbol.vb (3)
13Imports TypeKind = Microsoft.CodeAnalysis.TypeKind 109Public NotOverridable Overrides ReadOnly Property TypeKind As TypeKind 111Return TypeKind.Error
Symbols\EventSymbol.vb (2)
14Imports TypeKind = Microsoft.CodeAnalysis.TypeKind 170If type IsNot Nothing AndAlso type.TypeKind = TypeKind.Delegate Then
Symbols\FieldSymbol.vb (1)
13Imports TypeKind = Microsoft.CodeAnalysis.TypeKind
Symbols\Metadata\PE\MetadataDecoder.vb (4)
349Case TypeKind.Interface 359Case TypeKind.Delegate, 360TypeKind.Enum, 361TypeKind.Structure
Symbols\Metadata\PE\PEFieldSymbol.vb (1)
16Imports TypeKind = Microsoft.CodeAnalysis.TypeKind
Symbols\Metadata\PE\PEMethodSymbol.vb (1)
391If Not IsShared AndAlso String.Equals(name, WellKnownMemberNames.DelegateInvokeName, StringComparison.Ordinal) AndAlso _containingType.TypeKind = TypeKind.Delegate Then
Symbols\Metadata\PE\PENamedTypeSymbol.vb (21)
19Imports TypeKind = Microsoft.CodeAnalysis.TypeKind 379If _lazyEnumUnderlyingType Is Nothing AndAlso TypeKind = TypeKind.Enum Then 417If (_lazyTypeKind = TypeKind.Unknown AndAlso 419Me.TypeKind <> TypeKind.Module Then 441If Me.TypeKind = TypeKind.Module Then 669Dim ensureParameterlessConstructor As Boolean = (TypeKind = TypeKind.Structure OrElse TypeKind = TypeKind.Enum) AndAlso Not IsShared 994Public Overrides ReadOnly Property TypeKind As TypeKind 996If _lazyTypeKind = TypeKind.Unknown Then 998Dim result As TypeKind 1001result = TypeKind.Interface 1005result = TypeKind.Class 1013result = TypeKind.Enum 1017result = TypeKind.Delegate 1021result = TypeKind.Structure 1025result = TypeKind.Module 1033Return CType(_lazyTypeKind, TypeKind) 1148Case TypeKind.Structure 1157Case TypeKind.Enum 1293If (typeKind = TypeKind.Class OrElse typeKind = TypeKind.Module) AndAlso
Symbols\Metadata\PE\PENamespaceSymbol.vb (2)
61Dim modules = GetTypeMembers().WhereAsArray(Function(t) t.TypeKind = TYPEKIND.Module) 70Return GetTypeMembers(name).WhereAsArray(Function(t) t.TypeKind = TYPEKIND.Module)
Symbols\MethodSymbol.vb (1)
540If firstType.TypeKind <> TYPEKIND.Array Then
Symbols\MissingModuleSymbol.vb (1)
14Imports TypeKind = Microsoft.CodeAnalysis.TypeKind
Symbols\NamedTypeSymbol.vb (10)
15Imports TypeKind = Microsoft.CodeAnalysis.TypeKind 224If TypeKind <> TypeKind.Delegate Then 436Return TypeKind <> TypeKind.Enum AndAlso TypeKind <> TypeKind.Structure AndAlso 437TypeKind <> TypeKind.Error 449Return TypeKind = TypeKind.Enum OrElse TypeKind = TypeKind.Structure 564Return TypeKind = TypeKind.Submission 580Dim name = If(TypeKind = TypeKind.Submission, SynthesizedEntryPointSymbol.FactoryName, SynthesizedEntryPointSymbol.MainName) 812If Me.TypeKind = TypeKind.Interface Then
Symbols\NamedTypeSymbolExtensions.vb (1)
110Return container.TypeKind = TypeKind.Module OrElse container.IsScriptClass
Symbols\NamespaceSymbol.vb (1)
53Return GetTypeMembers(name).WhereAsArray(Function(t) t.TypeKind = TypeKind.Module)
Symbols\ParameterSymbol.vb (1)
13Imports TypeKind = Microsoft.CodeAnalysis.TypeKind
Symbols\Retargeting\RetargetingModuleSymbol.vb (1)
15Imports TypeKind = Microsoft.CodeAnalysis.TypeKind
Symbols\Retargeting\RetargetingNamedTypeSymbol.vb (2)
17Imports TypeKind = Microsoft.CodeAnalysis.TypeKind 413Public Overrides ReadOnly Property TypeKind As TypeKind
Symbols\Source\IAttributeTargetSymbol.vb (1)
13Imports TypeKind = Microsoft.CodeAnalysis.TypeKind
Symbols\Source\ImplementsHelper.vb (1)
396ElseIf interfaceType.TypeKind = TypeKind.Error Then
Symbols\Source\ImplicitNamedTypeSymbol.vb (2)
18Imports TypeKind = Microsoft.CodeAnalysis.TypeKind 58Return If(Me.TypeKind = TypeKind.Submission, Nothing, baseType)
Symbols\Source\OverrideHidingHelper.vb (3)
27Case TypeKind.Class, TypeKind.Interface, TypeKind.Structure
Symbols\Source\SourceComplexParameterSymbol.vb (2)
341If (flags And SourceParameterFlags.ParamArray) <> 0 AndAlso paramType.TypeKind <> TypeKind.Error Then 342If paramType.TypeKind <> TypeKind.Array Then
Symbols\Source\SourceDeclareMethodSymbol.vb (1)
44If ContainingType.TypeKind <> TypeKind.Module Then
Symbols\Source\SourceDelegateMethodSymbol.vb (1)
12Imports TypeKind = Microsoft.CodeAnalysis.TypeKind
Symbols\Source\SourceFieldSymbol.vb (1)
15Imports TypeKind = Microsoft.CodeAnalysis.TypeKind
Symbols\Source\SourceMemberContainerTypeSymbol.vb (36)
35[Class] = CUShort(TypeKind.Class) << TypeKindShift 36[Structure] = CUShort(TypeKind.Structure) << TypeKindShift 37[Interface] = CUShort(TypeKind.Interface) << TypeKindShift 38[Enum] = CUShort(TypeKind.Enum) << TypeKindShift 39[Delegate] = CUShort(TypeKind.Delegate) << TypeKindShift 40[Module] = CUShort(TypeKind.Module) << TypeKindShift 41Submission = CUShort(TypeKind.Submission) << TypeKindShift 243If type.TypeKind = TypeKind.Module Then 337Case TypeKind.Interface 340Case TypeKind.Delegate 343Case TypeKind.Class, TypeKind.Enum, TypeKind.Structure 346Case TypeKind.Module, TypeKind.Submission 1268Public Overrides ReadOnly Property TypeKind As TypeKind 1270Return CType((_flags And SourceTypeFlags.TypeKindMask) >> CUInt(SourceTypeFlags.TypeKindShift), TypeKind) 1276Return Me.TypeKind = TypeKind.Interface 1654If TypeKind <> TypeKind.Delegate Then 2663propertySymbol.ContainingType.TypeKind = TypeKind.Structure Then 2714If TypeKind = TypeKind.Submission Then 2727ElseIf TypeKind = TypeKind.Class OrElse 2728TypeKind = TypeKind.Structure OrElse 2729TypeKind = TypeKind.Enum OrElse 2730(TypeKind = TypeKind.Module AndAlso isShared) Then 2778If TypeKind <> TypeKind.Structure OrElse isShared Then 2793If TypeKind = TypeKind.Submission Then 2796ElseIf TypeKind = TypeKind.Class OrElse TypeKind = TypeKind.Module Then 3489Dim myTypeKind As TypeKind = Me.TypeKind 3492If myTypeKind = TypeKind.Class OrElse myTypeKind = TypeKind.Interface OrElse myTypeKind = TypeKind.Structure OrElse myTypeKind = TypeKind.Module Then 3496Dim canDeclareOperators As Boolean = (myTypeKind <> TypeKind.Module AndAlso myTypeKind <> TypeKind.Interface)
Symbols\Source\SourceMemberFieldSymbol.vb (2)
13Imports TypeKind = Microsoft.CodeAnalysis.TypeKind 515If container.TypeKind = TypeKind.Structure AndAlso
Symbols\Source\SourceMemberMethodSymbol.vb (6)
756Case TypeKind.Interface, TypeKind.Structure, TypeKind.Enum, TypeKind.Delegate 760Case TypeKind.Class, TypeKind.Module
Symbols\Source\SourceMethodSymbol.vb (4)
97If container.TypeKind = TYPEKIND.Structure Then 230If container.TypeKind = TYPEKIND.Module Then 238ElseIf container.TypeKind = TYPEKIND.Structure Then 406If container.TypeKind = TYPEKIND.Structure AndAlso methodSym.ParameterCount = 0 Then
Symbols\Source\SourceNamedTypeSymbol.vb (39)
17Imports TypeKind = Microsoft.CodeAnalysis.TypeKind 240If TypeKind = TypeKind.Delegate Then 268ElseIf TypeKind = TypeKind.Enum Then 1110Case TypeKind.TypeParameter 1114Case TypeKind.Interface, TypeKind.Enum, TypeKind.Delegate, TypeKind.Structure, TypeKind.Module, TypeKind.Array ' array can't really occur 1118Case TypeKind.Error, TypeKind.Unknown 1121Case TypeKind.Class 1181Case TypeKind.TypeParameter 1185Case TypeKind.Unknown 1188Case TypeKind.Interface, TypeKind.Error 1232Case TypeKind.TypeParameter 1236Case TypeKind.Unknown 1239Case TypeKind.Interface, TypeKind.Error 1375Case TypeKind.Submission 1381Case TypeKind.Class 1384Case TypeKind.Interface 1387Case TypeKind.Enum 1390Case TypeKind.Structure 1393Case TypeKind.Delegate 1396Case TypeKind.Module 1498Debug.Assert(Me.TypeKind <> TypeKind.Interface) 1500If TypeKind = TypeKind.Enum Then 1503ElseIf TypeKind = TypeKind.Delegate Then 2178Case TypeKind.Class 2205Case TypeKind.Interface 2225Case TypeKind.Module 2260Dim defaultAutoLayoutSize = If(Me.TypeKind = TypeKind.Structure, 1, 0) 2391If Me.TypeKind = TypeKind.Module Then 2441If Me.TypeKind = TypeKind.Structure Then 2484If Me.TypeKind = TypeKind.Module Then 2609If Me.TypeKind = TypeKind.Class AndAlso Not Me.IsGenericType Then
Symbols\Source\SourceNamedTypeSymbol_ComClass.vb (2)
956Public Overrides ReadOnly Property TypeKind As TypeKind 958Return TypeKind.Interface
Symbols\Source\SourceNamedTypeSymbol_GroupClass.vb (5)
17If Me.TypeKind = TypeKind.Class AndAlso Not Me.IsGenericType Then 216If named.TypeKind = TypeKind.Class AndAlso Not named.IsNotInheritable Then 250named.TypeKind = TypeKind.Class AndAlso 301If Me.TypeKind = TypeKind.Class Then 309Debug.Assert(Me.TypeKind = TypeKind.Class)
Symbols\Source\SourcePropertyAccessorSymbol.vb (2)
91Case TypeKind.Structure 96Case TypeKind.Module
Symbols\Source\SourcePropertySymbol.vb (1)
17Imports TypeKind = Microsoft.CodeAnalysis.TypeKind
Symbols\Source\SourceWithEventsBackingFieldSymbol.vb (1)
12Imports TypeKind = Microsoft.CodeAnalysis.TypeKind
Symbols\Source\SynthesizedMainTypeEntryPoint.vb (1)
14Imports TypeKind = Microsoft.CodeAnalysis.TypeKind
Symbols\Source\SynthesizedMyGroupCollectionPropertyAccessorSymbol.vb (1)
15Imports TypeKind = Microsoft.CodeAnalysis.TypeKind
Symbols\Source\SynthesizedSubmissionConstructorSymbol.vb (1)
27Debug.Assert(container.TypeKind = TypeKind.Submission)
Symbols\SubstitutedNamedType.vb (2)
14Imports TypeKind = Microsoft.CodeAnalysis.TypeKind 206Public NotOverridable Overrides ReadOnly Property TypeKind As TypeKind
Symbols\Symbol_Attributes.vb (8)
13Imports TypeKind = Microsoft.CodeAnalysis.TypeKind 97Case TypeKind.Class, 98TypeKind.Module 101Case TypeKind.Structure 104Case TypeKind.Interface 107Case TypeKind.Enum 110Case TypeKind.Delegate 113Case TypeKind.Submission
Symbols\SymbolExtensions.vb (6)
35Case TypeKind.Class 37Case TypeKind.Enum 39Case TypeKind.Interface 41Case TypeKind.Structure 43Case TypeKind.Module 45Case TypeKind.Delegate
Symbols\SynthesizedSymbols\SynthesizedEventDelegateSymbol.vb (2)
355Public Overrides ReadOnly Property TypeKind As TYPEKIND 357Return TypeKind.Delegate
Symbols\Tuples\TupleTypeSymbol.vb (2)
144Public Overrides ReadOnly Property TypeKind As TypeKind 148Return TypeKind.Struct
Symbols\TypedConstant.vb (1)
18Imports TypeKind = Microsoft.CodeAnalysis.TypeKind
Symbols\TypeParameterSymbol.vb (3)
146Public NotOverridable Overrides ReadOnly Property TypeKind As TypeKind 148Return TypeKind.TypeParameter 246If (constraint.TypeKind = TypeKind.TypeParameter) Then
Symbols\TypeSymbol.vb (2)
271Public MustOverride ReadOnly Property TypeKind As TYPEKIND 570Private ReadOnly Property ITypeSymbol_TypeKind As TypeKind Implements ITypeSymbol.TypeKind, ITypeSymbolInternal.TypeKind
Symbols\TypeSymbolExtensions.vb (46)
118Return type.TypeKind = TypeKind.Enum 140Return type.TypeKind = TypeKind.Class 146Return type.TypeKind = TypeKind.Structure 152Return type.TypeKind = TypeKind.Module 233Return type.TypeKind = TypeKind.Delegate 410Case TypeKind.Array, TypeKind.Delegate, TypeKind.Enum, TypeKind.Structure, TypeKind.Module 412Case TypeKind.Interface, TypeKind.TypeParameter, TypeKind.Unknown 414Case TypeKind.Error, TypeKind.Class, TypeKind.Submission 635Case TypeKind.Array 637Case TypeKind.TypeParameter 735fieldType.TypeKind = TypeKind.Enum 746If type.TypeKind = TypeKind.TypeParameter Then 761Return (type.TypeKind = TypeKind.TypeParameter) AndAlso 774Return (type.TypeKind = TypeKind.TypeParameter) AndAlso 790Private ReadOnly s_isTypeParameterFunc As Func(Of TypeSymbol, Object, Boolean) = Function(type, arg) (type.TypeKind = TypeKind.TypeParameter) 830Case TypeKind.Class, 831TypeKind.Struct, 832TypeKind.Interface, 833TypeKind.Enum, 834TypeKind.Delegate 845Case TypeKind.Submission 855Case TypeKind.Dynamic, 856TypeKind.TypeParameter, 857TypeKind.Submission, 858TypeKind.Enum, 859TypeKind.Module 863Case TypeKind.Class, 864TypeKind.Struct, 865TypeKind.Interface, 866TypeKind.Delegate, 867TypeKind.Error 883Case TypeKind.Array 1060If type.TypeKind = TypeKind.Class Then 1066If typeArgument.TypeKind = TypeKind.Delegate Then 1082If type.TypeKind = TypeKind.Delegate Then 1096If type.TypeKind = TypeKind.Delegate Then 1131If type.TypeKind = TypeKind.TypeParameter Then 1139If type.TypeKind = TypeKind.TypeParameter Then
Symbols\UnboundGenericType.vb (2)
16Imports TypeKind = Microsoft.CodeAnalysis.TypeKind 203Public Overrides ReadOnly Property TypeKind As TypeKind
Symbols\Wrapped\WrappedNamedTypeSymbol.vb (1)
78Public Overrides ReadOnly Property TypeKind As 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.EditorFeatures.UnitTests (79)
Diagnostics\GenerateType\GenerateTypeTests_Dialog.vb (79)
229typeKind:=TypeKind.Interface, 259typeKind:=TypeKind.Structure, 289typeKind:=TypeKind.Enum, 322typeKind:=TypeKind.Interface, 360typeKind:=TypeKind.Interface, 393typeKind:=TypeKind.Interface, 425typeKind:=TypeKind.Interface, 459typeKind:=TypeKind.Interface, 491typeKind:=TypeKind.Interface, 532typeKind:=TypeKind.Interface, 573typeKind:=TypeKind.Interface, 605typeKind:=TypeKind.Interface, 643typeKind:=TypeKind.Interface, 684typeKind:=TypeKind.Interface, 740typeKind:=TypeKind.Interface, 776typeKind:=TypeKind.Interface, 819typeKind:=TypeKind.Interface, 857typeKind:=TypeKind.Interface, 899typeKind:=TypeKind.Interface, 936typeKind:=TypeKind.Class, 986typeKind:=TypeKind.Class, 1023typeKind:=TypeKind.Class, 1073typeKind:=TypeKind.Class, 1112typeKind:=TypeKind.Class, 1150typeKind:=TypeKind.Class, 1192typeKind:=TypeKind.Class, 1235typeKind:=TypeKind.Class, 1278typeKind:=TypeKind.Class, 1313typeKind:=TypeKind.Class, 1338typeKind:=TypeKind.Interface, 1378typeKind:=TypeKind.Interface, 1399typeKind:=TypeKind.Interface, 1428typeKind:=TypeKind.Module, 1453typeKind:=TypeKind.Module, 1481typeKind:=TypeKind.Module, 1507typeKind:=TypeKind.Structure, 1538typeKind:=TypeKind.Class, 1569typeKind:=TypeKind.Class, 1598typeKind:=TypeKind.Class, 1623typeKind:=TypeKind.Class, 1671typeKind:=TypeKind.Delegate, 1701typeKind:=TypeKind.Delegate, 1727typeKind:=TypeKind.Delegate, 1751typeKind:=TypeKind.Delegate, 1779typeKind:=TypeKind.Delegate, 1807typeKind:=TypeKind.Delegate, 1835typeKind:=TypeKind.Delegate, 1863typeKind:=TypeKind.Delegate, 1891typeKind:=TypeKind.Delegate, 1915typeKind:=TypeKind.Delegate, 1943typeKind:=TypeKind.Delegate, 1967typeKind:=TypeKind.Delegate, 1993typeKind:=TypeKind.Delegate, 2017typeKind:=TypeKind.Delegate, 2045typeKind:=TypeKind.Delegate, 2069typeKind:=TypeKind.Delegate, 2094typeKind:=TypeKind.Delegate, 2121typeKind:=TypeKind.Delegate) 2150typeKind:=TypeKind.Class, 2175typeKind:=TypeKind.Class, 2209typeKind:=TypeKind.Delegate, 2244typeKind:=TypeKind.Delegate, 2276typeKind:=TypeKind.Class, 2297typeKind:=TypeKind.Class, 2322typeKind:=TypeKind.Class, 2351typeKind:=TypeKind.Class, 2387typeKind:=TypeKind.Delegate, 2425typeKind:=TypeKind.Delegate, 2466typeKind:=TypeKind.Class, 2488typeKind:=TypeKind.Delegate, 2512typeKind:=TypeKind.Delegate, 2539typeKind:=TypeKind.Class, 2562typeKind:=TypeKind.Class, 2587typeKind:=TypeKind.Class, 2614typeKind:=TypeKind.Class, 2640typeKind:=TypeKind.Delegate, 2666typeKind:=TypeKind.Delegate, 2693typeKind:=TypeKind.Class, 2720typeKind:=TypeKind.Class,
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (33)
Attributes\AttributeTests_Conditional.vb (1)
21Imports TypeKind = Microsoft.CodeAnalysis.TypeKind
Attributes\AttributeTests_MarshalAs.vb (1)
15Imports TypeKind = Microsoft.CodeAnalysis.TypeKind
CodeGen\CodeGenAsyncTests.vb (2)
51Assert.Equal(TypeKind.Structure, stateMachine.TypeKind) 61Assert.Equal(TypeKind.Class, stateMachine.TypeKind)
CodeGen\CodeGenScriptTests.vb (1)
249Assert.NotEqual(type.TypeKind, TypeKind.Submission)
CodeGen\CodeGenTuples.vb (5)
5750Assert.Equal(TypeKind.Error, mTuple.TupleUnderlyingType.TypeKind) 5753Assert.Equal(TypeKind.Struct, mTuple.TypeKind) 15035Assert.Equal(TypeKind.Struct, m1Tuple.TypeKind) 16293Assert.Equal(TypeKind.Struct, m1Tuple.TypeKind) 20072Assert.Equal(TypeKind.Class, comp.GetWellKnownType(WellKnownType.System_ValueTuple_T2).TypeKind)
Emit\CompilationEmitTests.vb (1)
2039Assert.Equal(m.Single().TypeKind, TypeKind.Module)
Emit\EmitMetadata.vb (5)
388Assert.Equal(TypeKind.Interface, i1.TypeKind) 389Assert.Equal(TypeKind.Interface, i2.TypeKind) 390Assert.Equal(TypeKind.Interface, i3.TypeKind) 391Assert.Equal(TypeKind.Class, classA.TypeKind) 392Assert.Equal(TypeKind.Class, classB.TypeKind)
Emit\NoPiaEmbedTypes.vb (17)
1001Assert.Equal(TypeKind.Interface, itest1.TypeKind) 1023Assert.Equal(TypeKind.Structure, test2.TypeKind) 1044Assert.Equal(TypeKind.Interface, itest3.TypeKind) 1057Assert.Equal(TypeKind.Structure, test5.TypeKind) 1075Assert.Equal(TypeKind.Interface, itest6.TypeKind) 1078Assert.Equal(TypeKind.Interface, itest7.TypeKind) 1081Assert.Equal(TypeKind.Interface, itest8.TypeKind) 1085Assert.Equal(TypeKind.Enum, test9.TypeKind) 1141Assert.Equal(TypeKind.Structure, test10.TypeKind) 1165Assert.Equal(TypeKind.Delegate, test11.TypeKind) 1244Assert.Equal(TypeKind.Interface, itest13.TypeKind) 1265Assert.Equal(TypeKind.Interface, itest14.TypeKind) 1275Assert.Equal(TypeKind.Interface, itest16.TypeKind) 1279Assert.Equal(TypeKind.Interface, itest17.TypeKind) 1328Assert.Equal(TypeKind.Interface, itest18.TypeKind) 1545Assert.Equal(TypeKind.Interface, type1.TypeKind) 1548Assert.Equal(TypeKind.Interface, type2.TypeKind)
Microsoft.CodeAnalysis.VisualBasic.ExpressionEvaluator.ExpressionCompiler (6)
EvaluationContext.vb (1)
515If type.TypeKind <> TypeKind.Class Then
Rewriters\CapturedVariableRewriter.vb (2)
95Debug.Assert(meParameter.Type.TypeKind = TypeKind.Class) ' Illegal in structures and modules. 98Debug.Assert(baseType.TypeKind = TypeKind.Class) ' Illegal in structures and modules.
SymbolExtensions.vb (1)
27If type.TypeKind = TypeKind.TypeParameter Then
Symbols\EENamedTypeSymbol.vb (2)
251Public Overrides ReadOnly Property TypeKind As TypeKind 253Return TypeKind.Module
Microsoft.CodeAnalysis.VisualBasic.ExpressionEvaluator.ExpressionCompiler.UnitTests (2)
ExpressionCompilerTests.vb (1)
2078Assert.Equal(returnType.TypeKind, TypeKind.TypeParameter)
WinMdTests.vb (1)
175Assert.Equal(actualReturnType.TypeKind, TypeKind.Class) ' not error
Microsoft.CodeAnalysis.VisualBasic.Features (35)
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 (4)
1853Case TypeKind.Structure 1855Case TypeKind.Module 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
GenerateMember\GenerateParameterizedMember\VisualBasicGenerateConversionService.vb (5)
55Protected Overrides Function TryInitializeExplicitConversionState(document As SemanticDocument, expression As SyntaxNode, classInterfaceModuleStructTypes As ISet(Of TypeKind), cancellationToken As CancellationToken, ByRef identifierToken As SyntaxToken, ByRef methodSymbol As IMethodSymbol, ByRef typeToGenerateIn As INamedTypeSymbol) As Boolean 69Protected Overrides Function TryInitializeImplicitConversionState(document As SemanticDocument, expression As SyntaxNode, classInterfaceModuleStructTypes As ISet(Of TypeKind), cancellationToken As CancellationToken, ByRef identifierToken As SyntaxToken, ByRef methodSymbol As IMethodSymbol, ByRef typeToGenerateIn As INamedTypeSymbol) As Boolean 83Private Shared Function TryGetConversionMethodAndTypeToGenerateIn(document As SemanticDocument, expression As SyntaxNode, classInterfaceModuleStructTypes As ISet(Of TypeKind), cancellationToken As CancellationToken, ByRef methodSymbol As IMethodSymbol, ByRef typeToGenerateIn As INamedTypeSymbol) As Boolean 113Private Shared Function TryGetExplicitConversionMethodAndTypeToGenerateIn(document As SemanticDocument, castExpression As CastExpressionSyntax, classInterfaceModuleStructTypes As ISet(Of TypeKind), cancellationToken As CancellationToken, ByRef methodSymbol As IMethodSymbol, ByRef typeToGenerateIn As INamedTypeSymbol) As Boolean 129Private Shared Function TryGetImplicitConversionMethodAndTypeToGenerateIn(document As SemanticDocument, expression As SyntaxNode, classInterfaceModuleStructTypes As ISet(Of TypeKind), cancellationToken As CancellationToken, ByRef methodSymbol As IMethodSymbol, ByRef typeToGenerateIn As INamedTypeSymbol) As Boolean
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 (581)
Binding\ForEachTests.vb (1)
4537Assert.NotEqual(TypeKind.Error, localSymbolType.TypeKind)
Compilation\MyTemplateTests.vb (2)
238Assert.Equal(TypeKind.Class, semanticSummary.Type.TypeKind) 240Assert.Equal(TypeKind.Class, semanticSummary.ConvertedType.TypeKind)
Compilation\SemanticModelGetDeclaredSymbolAPITests.vb (12)
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) 745Assert.Equal(TypeKind.Delegate, typeSymbol10.TypeKind) 2772Assert.Equal(TypeKind.Enum, local.Type.TypeKind) 2954Assert.Equal(TypeKind.Class, symbol.TypeKind)
DeclaringSyntaxNodeTests.vb (2)
552If nt.TypeKind = TypeKind.Delegate AndAlso nt.Name.EndsWith("EventHandler", StringComparison.Ordinal) Then 588If nt.TypeKind = TypeKind.Delegate AndAlso nt.Name.EndsWith("EventHandler", StringComparison.Ordinal) Then
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\FieldInitializerBindingTests.vb (9)
447Assert.Equal(TypeKind.Array, ary.Type.TypeKind) 452Assert.Equal(TypeKind.Array, ary.Type.TypeKind) 457Assert.Equal(TypeKind.Array, ary.Type.TypeKind) 462Assert.Equal(TypeKind.Class, ary.Type.TypeKind) 506Assert.Equal(TypeKind.Structure, field.Type.TypeKind) 512Assert.Equal(TypeKind.Structure, field.Type.TypeKind) 518Assert.Equal(TypeKind.Structure, field.Type.TypeKind) 523Assert.Equal(TypeKind.Class, field.Type.TypeKind) 528Assert.Equal(TypeKind.Delegate, field.Type.TypeKind)
Semantics\GetExtendedSemanticInfoTests.vb (284)
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) 1430Assert.Equal(TypeKind.Error, paramSym.Type.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\UseSiteErrorTests.vb (35)
598Assert.Equal(TypeKind.Struct, compilation1.GetTypeByMetadataName("A").TypeKind) 599Assert.Equal(TypeKind.Enum, compilation1.GetTypeByMetadataName("B").TypeKind) 600Assert.Equal(TypeKind.Class, compilation1.GetTypeByMetadataName("C").TypeKind) 601Assert.Equal(TypeKind.Delegate, compilation1.GetTypeByMetadataName("D").TypeKind) 602Assert.Equal(TypeKind.Interface, compilation1.GetTypeByMetadataName("I1").TypeKind) 618Assert.Equal(TypeKind.Struct, compilation2.GetTypeByMetadataName("A").TypeKind) 619Assert.Equal(TypeKind.Enum, compilation2.GetTypeByMetadataName("B").TypeKind) 620Assert.Equal(TypeKind.Class, compilation2.GetTypeByMetadataName("C").TypeKind) 621Assert.Equal(TypeKind.Delegate, compilation2.GetTypeByMetadataName("D").TypeKind) 622Assert.Equal(TypeKind.Interface, compilation2.GetTypeByMetadataName("I1").TypeKind) 629Assert.Equal(TypeKind.Struct, compilation3.GetTypeByMetadataName("A").TypeKind) 630Assert.Equal(TypeKind.Enum, compilation3.GetTypeByMetadataName("B").TypeKind) 631Assert.Equal(TypeKind.Class, compilation3.GetTypeByMetadataName("C").TypeKind) 632Assert.Equal(TypeKind.Delegate, compilation3.GetTypeByMetadataName("D").TypeKind) 633Assert.Equal(TypeKind.Interface, compilation3.GetTypeByMetadataName("I1").TypeKind) 654Assert.Equal(TypeKind.Class, a.TypeKind) 656Assert.Equal(TypeKind.Class, b.TypeKind) 658Assert.Equal(TypeKind.Class, c.TypeKind) 660Assert.Equal(TypeKind.Class, d.TypeKind) 662Assert.Equal(TypeKind.Interface, i1.TypeKind) 671Assert.Equal(TypeKind.Struct, compilation5.GetTypeByMetadataName("A").TypeKind) 672Assert.Equal(TypeKind.Enum, compilation5.GetTypeByMetadataName("B").TypeKind) 673Assert.Equal(TypeKind.Class, compilation5.GetTypeByMetadataName("C").TypeKind) 674Assert.Equal(TypeKind.Delegate, compilation5.GetTypeByMetadataName("D").TypeKind) 675Assert.Equal(TypeKind.Interface, compilation5.GetTypeByMetadataName("I1").TypeKind) 696Assert.Equal(TypeKind.Class, a.TypeKind) 698Assert.Equal(TypeKind.Class, b.TypeKind) 700Assert.Equal(TypeKind.Class, c.TypeKind) 702Assert.Equal(TypeKind.Class, d.TypeKind) 704Assert.Equal(TypeKind.Interface, i1.TypeKind) 712Assert.Equal(TypeKind.Struct, compilation7.GetTypeByMetadataName("A").TypeKind) 713Assert.Equal(TypeKind.Enum, compilation7.GetTypeByMetadataName("B").TypeKind) 714Assert.Equal(TypeKind.Class, compilation7.GetTypeByMetadataName("C").TypeKind) 715Assert.Equal(TypeKind.Delegate, compilation7.GetTypeByMetadataName("D").TypeKind) 716Assert.Equal(TypeKind.Interface, compilation7.GetTypeByMetadataName("I1").TypeKind)
Semantics\XmlLiteralSemanticModelTests.vb (2)
530Assert.Equal(TypeKind.Error, semanticSummary.Type.TypeKind) 532Assert.Equal(TypeKind.Error, semanticSummary.ConvertedType.TypeKind)
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (178)
SymbolsTests\AssemblyAndNamespaceTests.vb (1)
527Assert.Equal(TypeKind.Class, objectType.TypeKind)
SymbolsTests\CompilationCreationTests.vb (13)
1920Assert.Equal(TypeKind.[Class], type3.TypeKind) 1921Assert.Equal(TypeKind.[Interface], asm5(1).GlobalNamespace.GetTypeMembers("I1").Single().TypeKind) 2024Private Function HasSingleTypeOfKind(c As VisualBasicCompilation, kind As TypeKind, fullName As String) As Boolean 2046Assert.False(HasSingleTypeOfKind(c, TypeKind.Structure, "System.Int32")) 2048Assert.True(HasSingleTypeOfKind(c, TypeKind.Structure, "System.Int32")) 2049Assert.False(HasSingleTypeOfKind(c, TypeKind.Class, "System.Linq.Enumerable")) 2051Assert.True(HasSingleTypeOfKind(c, TypeKind.Class, "System.Linq.Enumerable")) 2052Assert.False(HasSingleTypeOfKind(c, TypeKind.Class, "System.Uri")) 2054Assert.False(HasSingleTypeOfKind(c, TypeKind.Class, "System.Linq.Enumerable")) 2055Assert.True(HasSingleTypeOfKind(c, TypeKind.Class, "System.Uri")) 2057Assert.False(HasSingleTypeOfKind(c, TypeKind.Class, "System.Uri")) 2058Assert.True(HasSingleTypeOfKind(c, TypeKind.Structure, "System.Int32")) 2060Assert.False(HasSingleTypeOfKind(c, TypeKind.Structure, "System.Int32"))
SymbolsTests\CorLibrary\CorTypes.vb (7)
23Assert.Equal(TypeKind.Error, t.TypeKind) 32Assert.Equal(TypeKind.Error, p.TypeKind) 49Assert.Equal(TypeKind.Error, t.TypeKind) 51Assert.NotEqual(TypeKind.Error, t.TypeKind) 98Assert.NotEqual(TypeKind.Error, t.TypeKind) 100Assert.Equal(TypeKind.Error, t.TypeKind) 132Assert.Equal(TypeKind.Error, t.TypeKind)
SymbolsTests\ExtensionMethods\ExtensionMethodTests.vb (1)
1062Assert.Equal(TypeKind.Module, module2.TypeKind)
SymbolsTests\Metadata\MetadataTypeTests.vb (8)
78Assert.Equal(TypeKind.Module, a.TypeKind) 83Assert.Equal(TypeKind.Module, a.TypeKind) 121Assert.Equal(TypeKind.Class, class1.TypeKind) 174Assert.Equal(TypeKind.Class, type1.TypeKind) 229Assert.Equal(TypeKind.Interface, type1.TypeKind) 282Assert.Equal(TypeKind.Structure, type1.TypeKind) 339Assert.Equal(TypeKind.Array, type2.TypeKind) 340Assert.Equal(TypeKind.Array, type3.TypeKind)
SymbolsTests\Metadata\PE\LoadingEvents.vb (13)
163Assert.Equal(TypeKind.[Interface], [interface].TypeKind) 166Assert.Equal(TypeKind.[Class], [class].TypeKind) 178Assert.Equal(TypeKind.[Interface], [interface].TypeKind) 181Assert.Equal(TypeKind.[Class], [class].TypeKind) 196Assert.Equal(TypeKind.[Interface], [interface].TypeKind) 199Assert.Equal(TypeKind.[Class], [class].TypeKind) 214Assert.Equal(TypeKind.[Interface], defInterface.TypeKind) 217Assert.Equal(TypeKind.[Interface], defInterface.TypeKind) 220Assert.Equal(TypeKind.[Class], [class].TypeKind) 236Assert.Equal(TypeKind.[Interface], outerInterface.TypeKind) 240Assert.Equal(TypeKind.[Class], outerClass.TypeKind) 243Assert.Equal(TypeKind.[Interface], innerInterface.TypeKind) 258Assert.Equal(TypeKind.[Class], innerClass.TypeKind)
SymbolsTests\Metadata\PE\LoadingGenericTypeParameters.vb (1)
73Assert.Equal(TypeKind.TypeParameter, C1_T.TypeKind)
SymbolsTests\Metadata\PE\LoadingMethods.vb (18)
384Assert.Equal(TypeKind.Interface, [interface].TypeKind) 389Assert.Equal(TypeKind.Class, [class].TypeKind) 407Assert.Equal(TypeKind.Interface, interface1.TypeKind) 412Assert.Equal(TypeKind.Interface, interface2.TypeKind) 417Assert.Equal(TypeKind.Class, [class].TypeKind) 439Assert.Equal(TypeKind.Interface, [interface].TypeKind) 445Assert.Equal(TypeKind.Class, [class].TypeKind) 471Assert.Equal(TypeKind.Interface, [interface].TypeKind) 477Assert.Equal(TypeKind.Class, [class].TypeKind) 502Assert.Equal(TypeKind.Interface, cyclicInterface.TypeKind) 505Assert.Equal(TypeKind.Interface, implementedInterface.TypeKind) 510Assert.Equal(TypeKind.Class, [class].TypeKind) 534Assert.Equal(TypeKind.Interface, [interface].TypeKind) 537Assert.Equal(TypeKind.Class, [class].TypeKind) 564Assert.Equal(TypeKind.Interface, outerInterface.TypeKind) 570Assert.Equal(TypeKind.Class, outerClass.TypeKind) 574Assert.Equal(TypeKind.Interface, innerInterface.TypeKind) 595Assert.Equal(TypeKind.Class, innerClass.TypeKind)
SymbolsTests\Metadata\PE\NoPia.vb (4)
194Assert.Equal(TypeKind.[Interface], param(0).[Type].TypeKind) 195Assert.Equal(TypeKind.[Interface], param(1).[Type].TypeKind) 468Assert.Equal(TypeKind.[Interface], param(0).[Type].TypeKind) 469Assert.Equal(TypeKind.[Interface], param(1).[Type].TypeKind)
SymbolsTests\Metadata\PE\NoPiaInstantiationOfGenericClassAndStruct.vb (2)
123If m.ReturnType.TypeKind <> TypeKind.Structure Then 374If m.ReturnType.TypeKind <> TypeKind.Structure Then
SymbolsTests\Metadata\PE\TypeForwarders.vb (1)
93Assert.NotEqual(TypeKind.Error, funcType.TypeKind)
SymbolsTests\Metadata\PE\TypeKindTests.vb (7)
35Assert.Equal(TypeKind.Class, obj.TypeKind) 40Assert.Equal(TypeKind.Class, [enum].TypeKind) 45Assert.Equal(TypeKind.Structure, int32.TypeKind) 50Assert.Equal(TypeKind.Delegate, func.TypeKind) 58Assert.Equal(TypeKind.Interface, ienumerable.TypeKind) 64Assert.Equal(TypeKind.Enum, typeCode.TypeKind) 93Assert.Equal(TypeKind.Class, multicastDelegate.TypeKind)
SymbolsTests\MockSymbolTests.vb (2)
48Dim container As NamedTypeSymbol = New MockNamedTypeSymbol("TestClass", Enumerable.Empty(Of Symbol), TypeKind.Class) 94result = New MockNamedTypeSymbol(name, childSymbols, TypeKind.Class)
SymbolsTests\Retargeting\NoPia.vb (2)
478Assert.Equal(TypeKind.[Interface], param(0).[Type].TypeKind) 479Assert.Equal(TypeKind.[Interface], param(1).[Type].TypeKind)
SymbolsTests\Retargeting\RetargetingTests.vb (14)
362Assert.Equal(TypeKind.Error, sourceType.BaseType.TypeKind) 364Assert.Equal(TypeKind.Error, sourceType.EnumUnderlyingType.TypeKind) 371Assert.Equal(TypeKind.Error, retargetingType.BaseType.TypeKind) 373Assert.Equal(TypeKind.Error, retargetingType.EnumUnderlyingType.TypeKind) 400Assert.Equal(TypeKind.Error, sourceType.BaseType.TypeKind) 402Assert.Equal(TypeKind.Error, sourceType.EnumUnderlyingType.TypeKind) 409Assert.Equal(TypeKind.Error, retargetingType.BaseType.TypeKind) 411Assert.Equal(TypeKind.Error, retargetingType.EnumUnderlyingType.TypeKind) 540Assert.Equal(TypeKind.Error, sourceType.BaseType.TypeKind) 546Assert.Equal(TypeKind.Error, retargetingType.BaseType.TypeKind) 674Assert.Equal(TypeKind.Error, sourceTypeParameterConstraint.TypeKind) 681Assert.Equal(TypeKind.Error, retargetingTypeParameterConstraint.TypeKind) 1013Assert.Equal(TypeKind.Delegate, CType(sourceType.GetMembers.Item(1), SourceNamedTypeSymbol).TypeKind) 1014Assert.Equal(TypeKind.Delegate, CType(sourceType.GetMembers.Item(2), SourceNamedTypeSymbol).TypeKind)
SymbolsTests\Source\BaseClassTests.vb (1)
2230Assert.Equal(TypeKind.Class, derived.TypeKind)
SymbolsTests\Source\BindingsTests.vb (19)
180Assert.Equal(TypeKind.Class, DirectCast(typeContext.ContainingNamespaceOrType, NamedTypeSymbol).TypeKind) 187Assert.Equal(TypeKind.Interface, DirectCast(typeContext.ContainingNamespaceOrType, NamedTypeSymbol).TypeKind) 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) 471Assert.Equal(TypeKind.Error, sysCollectionsType.TypeKind) 477Assert.Equal(TypeKind.Class, importsOrangeSymInfo.Type.TypeKind) 488Assert.Equal(TypeKind.Class, importsYellowSymInfo.Type.TypeKind) 500Assert.Equal(TypeKind.Error, interfaceIAmbigSymInfo.Type.TypeKind) 508Assert.Equal(TypeKind.Interface, DirectCast(sortedSymbols(0), NamedTypeSymbol).TypeKind) 511Assert.Equal(TypeKind.Interface, DirectCast(sortedSymbols(1), NamedTypeSymbol).TypeKind) 518Assert.Equal(TypeKind.Class, classYellowSymInfo.Type.TypeKind) 524Assert.Equal(TypeKind.Class, DirectCast(symbols(0), NamedTypeSymbol).TypeKind) 532Assert.Equal(TypeKind.Error, elvisSymInfo.Type.TypeKind) 539Assert.Equal(TypeKind.Interface, iEnumSymInfo.Type.TypeKind) 681Assert.Equal(TypeKind.Class, info.Type.TypeKind)
SymbolsTests\Source\DelegateTests.vb (1)
246Assert.Equal(TypeKind.Delegate, funcDel.TypeKind)
SymbolsTests\Source\EnumTests.vb (1)
908Assert.Equal(TypeKind.Enum, member.Type.TypeKind)
SymbolsTests\Source\EventTests.vb (10)
22Imports TypeKind = Microsoft.CodeAnalysis.TypeKind 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) 1718Assert.Equal(TypeKind.Delegate, DirectCast(mems(0), NamedTypeSymbol).TypeKind)
SymbolsTests\Source\FieldTests.vb (3)
104Assert.Equal(TypeKind.Class, classD.TypeKind) 149Assert.Equal(TypeKind.Array, fieldU.Type.TypeKind) 158Assert.Equal(TypeKind.Array, fieldV.Type.TypeKind) ' v is a 2d array of a 1d array.
SymbolsTests\Source\MethodTests.vb (5)
60Assert.Equal(TypeKind.Class, classD.TypeKind) 476Assert.Equal(TypeKind.Class, classD.TypeKind) 535Assert.Equal(TypeKind.Array, m2p4.Type.TypeKind) 625Assert.Equal(TypeKind.Class, classD.TypeKind) 995Assert.Equal(TypeKind.Structure, mem4.Type.TypeKind)
SymbolsTests\Source\PropertyTests.vb (4)
5399Assert.Equal(TypeKind.[Interface], [interface].TypeKind) 5404Assert.Equal(TypeKind.[Class], [class].TypeKind) 5442Assert.Equal(TypeKind.[Interface], [interface].TypeKind) 5447Assert.Equal(TypeKind.[Class], [class].TypeKind)
SymbolsTests\Source\TypeBindingTests.vb (4)
44Assert.Equal(TypeKind.Array, typeA.TypeKind) 53Assert.Equal(TypeKind.Array, typeB.TypeKind) 87Assert.Equal(TypeKind.Structure, typeA.TypeKind) 239Assert.Equal(TypeKind.Array, typeH.TypeKind)
SymbolsTests\Source\TypeTests.vb (21)
92Assert.Equal(TypeKind.Interface, ifaceA.TypeKind) 110Assert.Equal(TypeKind.Class, classB.TypeKind) 127Assert.Equal(TypeKind.Delegate, delegateB.TypeKind) 148Assert.Equal(TypeKind.Enum, enumE.TypeKind) 163Assert.Equal(TypeKind.Structure, structI.TypeKind) 178Assert.Equal(TypeKind.Module, moduleM.TypeKind) 240Assert.Equal(TypeKind.Class, outerClass.TypeKind) 256Assert.Equal(TypeKind.Class, i1Class.TypeKind) 266Assert.Equal(TypeKind.Interface, i3Interface.TypeKind) 276Assert.Equal(TypeKind.Enum, i4Enum.TypeKind) 290Assert.Equal(TypeKind.Structure, i2Arity1.TypeKind) 304Assert.Equal(TypeKind.Structure, i2Arity2.TypeKind) 553Assert.Equal(TypeKind.Enum, enumE.TypeKind) 606Assert.Equal(TypeKind.Class, classA.TypeKind) 616Assert.Equal(TypeKind.Interface, igoo.TypeKind) 626Assert.Equal(TypeKind.Structure, structS.TypeKind) 694Assert.Equal(TypeKind.Class, varA.Type.TypeKind) 736Assert.Equal(TypeKind.Structure, mem1.Type.TypeKind) 744Assert.Equal(TypeKind.Array, mem2.ReturnType.TypeKind) 756Assert.Equal(TypeKind.Array, param.Type.TypeKind) 926Assert.Equal(TypeKind.Interface, type2.TypeKind)
SymbolsTests\SymbolErrorTests.vb (1)
22510Assert.Equal(TypeKind.Error, errTypeSym.TypeKind)
SymbolsTests\WellKnownTypeValidationTests.vb (14)
38Assert.Equal(TypeKind.Error, special.TypeKind) 43Assert.Equal(TypeKind.Class, lookup.TypeKind) 122Assert.Equal(TypeKind.Structure, special.TypeKind) 126Assert.Equal(TypeKind.Structure, lookup.TypeKind) 160Assert.Equal(TypeKind.Class, wellKnown.TypeKind) 163Assert.Equal(TypeKind.Error, wellKnown.TypeKind) 168Assert.Equal(TypeKind.Class, lookup.TypeKind) 210Assert.Equal(If(wellKnown.DeclaringCompilation Is comp, TypeKind.Enum, TypeKind.Error), wellKnown.TypeKind) 213Assert.Equal(TypeKind.Enum, lookup.TypeKind) 300Assert.Equal(TypeKind.Class, wellKnown.TypeKind) 303Assert.Equal(TypeKind.Class, lookup.TypeKind) 416Assert.Equal(TypeKind.Class, wellKnown.TypeKind) 441Assert.Equal(TypeKind.Error, wellKnown.TypeKind)
Microsoft.CodeAnalysis.VisualBasic.Test.Utilities (13)
Extensions.vb (6)
224Dim typeSymTypeKind As TypeKind = typeSym.TypeKind 225If typeSymTypeKind = TypeKind.Interface OrElse typeSymTypeKind = TypeKind.Class OrElse 226typeSymTypeKind = TypeKind.Structure OrElse typeSymTypeKind = TypeKind.Delegate Then 260ElseIf typeSymTypeKind = TypeKind.Array Then
MockSymbols.vb (7)
47Return GetTypeMembers().WhereAsArray(Function(t) t.TypeKind = TypeKind.Module) 51Return GetTypeMembers(name).WhereAsArray(Function(t) t.TypeKind = TypeKind.Module) 125Private ReadOnly _kind As TypeKind 129Public Sub New(name As String, children As IEnumerable(Of Symbol), Optional kind As TypeKind = TypeKind.Class) 347Public Overrides ReadOnly Property TypeKind As TypeKind 355Return _kind = TypeKind.Interface
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 (144)
AbstractFlagsEnumGenerator.cs (1)
36if (typeSymbol.TypeKind != TypeKind.Enum)
Classification\ClassificationExtensions.cs (8)
12TypeKind.Class => type.IsRecord ? ClassificationTypeNames.RecordClassName : ClassificationTypeNames.ClassName, 13TypeKind.Module => ClassificationTypeNames.ModuleName, 14TypeKind.Struct => type.IsRecord ? ClassificationTypeNames.RecordStructName : ClassificationTypeNames.StructName, 15TypeKind.Interface => ClassificationTypeNames.InterfaceName, 16TypeKind.Enum => ClassificationTypeNames.EnumName, 17TypeKind.Delegate => ClassificationTypeNames.DelegateName, 18TypeKind.TypeParameter => ClassificationTypeNames.TypeParameterName, 19TypeKind.Dynamic => ClassificationTypeNames.Keyword,
CodeGenerationArrayTypeSymbol.cs (2)
50public override TypeKind TypeKind => TypeKind.Array;
CodeGenerationConstructedNamedTypeSymbol.cs (1)
93public override TypeKind TypeKind => _constructedFrom.TypeKind;
CodeGenerationHelpers.cs (1)
153if (namedType.TypeKind != TypeKind.Enum)
CodeGenerationNamedTypeSymbol.cs (3)
34TypeKind typeKind, 68public override TypeKind TypeKind { get; } 100return this.TypeKind == TypeKind.Delegate
CodeGenerationPointerTypeSymbol.cs (2)
25public override TypeKind TypeKind => TypeKind.Pointer;
CodeGenerationSymbolFactory.cs (3)
420TypeKind typeKind, string name, 439bool isRecord, TypeKind typeKind, string name, 490typeKind: TypeKind.Delegate,
CodeGenerationTypeParameterSymbol.cs (2)
70public override TypeKind TypeKind => TypeKind.TypeParameter;
CodeGenerationTypeSymbol.cs (3)
36public abstract TypeKind TypeKind { get; } 48public bool IsValueType => TypeKind is TypeKind.Struct or TypeKind.Enum;
Editing\SymbolEditorExtensions.cs (1)
30if (baseOrInterfaceType.TypeKind != TypeKind.Error)
Editing\SyntaxGenerator.cs (10)
772TypeKind.Class => ClassDeclaration( 781TypeKind.Struct => StructDeclaration( 789TypeKind.Interface => InterfaceDeclaration( 795TypeKind.Enum => EnumDeclaration( 802TypeKind.Delegate => type.GetMembers(WellKnownMemberNames.DelegateInvokeName) is [IMethodSymbol invoke, ..] 858case TypeKind.Class: 859case TypeKind.Struct: 860case TypeKind.Interface: 861case TypeKind.Enum: 862case TypeKind.Delegate:
EditorConfigNamingStyleParser_SymbolSpec.cs (13)
125private static readonly SymbolKindOrTypeKind _class = new(TypeKind.Class); 126private static readonly SymbolKindOrTypeKind _struct = new(TypeKind.Struct); 127private static readonly SymbolKindOrTypeKind _interface = new(TypeKind.Interface); 128private static readonly SymbolKindOrTypeKind _enum = new(TypeKind.Enum); 134private static readonly SymbolKindOrTypeKind _delegate = new(TypeKind.Delegate); 385case TypeKind.Class: 388case TypeKind.Struct: 391case TypeKind.Interface: 394case TypeKind.Enum: 397case TypeKind.Delegate: 400case TypeKind.Module: 403case TypeKind.Pointer: 406case TypeKind.TypeParameter:
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 (5)
22if (type?.TypeKind == TypeKind.Interface) 54t => t.TypeKind is TypeKind.Class or 55TypeKind.Struct or 56TypeKind.Delegate or 57TypeKind.Enum);
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 (2)
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 (10)
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 (12)
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(); 263case TypeKind.Array: 264case TypeKind.Delegate: 625if (type != null && type.IsValueType && type.TypeKind == TypeKind.Enum) 677if (type.TypeKind != TypeKind.Struct)
NamingStyleRules.cs (2)
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\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 (4)
219private static TypeKind GetTypeKind(INamedTypeSymbol x) 222var k = x.TypeKind; 223return k == TypeKind.Module ? TypeKind.Class : k;
SymbolEquivalenceComparer.EquivalenceVisitor.cs (7)
285var xTypeKind = GetTypeKind(x); 286var yTypeKind = GetTypeKind(y); 288if (xTypeKind == TypeKind.Error || 289yTypeKind == TypeKind.Error) 306var typeKind1 = GetTypeKind(type1); 309var typeKind2 = GetTypeKind(type2); 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 (19)
75new SymbolKindOrTypeKind(TypeKind.Class), 76new SymbolKindOrTypeKind(TypeKind.Struct), 77new SymbolKindOrTypeKind(TypeKind.Interface), 78new SymbolKindOrTypeKind(TypeKind.Delegate), 79new SymbolKindOrTypeKind(TypeKind.Enum), 80new SymbolKindOrTypeKind(TypeKind.Module), 81new SymbolKindOrTypeKind(TypeKind.Pointer), 88new SymbolKindOrTypeKind(TypeKind.TypeParameter), 313foreach (var typeKindElement in symbolKindListElement.Elements(nameof(TypeKind))) 382public SymbolKindOrTypeKind(TypeKind typeKind) 393public TypeKind? TypeKind => (_category == SymbolCategory.Type) ? (TypeKind)_kind : null; 400SymbolCategory.Type => symbol is ITypeSymbol type && type.TypeKind == (TypeKind)_kind, 409SymbolCategory.Type => new XElement(nameof(TypeKind), GetTypeKindString((TypeKind)_kind)), 414private static string GetTypeKindString(TypeKind typeKind) 421CodeAnalysis.TypeKind.Structure => nameof(CodeAnalysis.TypeKind.Struct), 463=> new((TypeKind)Enum.Parse(typeof(TypeKind), typeKindElement.Value));
SymbolUsageAnalysis.Walker.cs (1)
383symbol.GetSymbolType()?.TypeKind != TypeKind.Delegate)
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (1)
Options\OptionsTestHelpers.cs (1)
154ImmutableArray.Create(new SymbolSpecification.SymbolKindOrTypeKind(TypeKind.Class)),
Microsoft.CodeAnalysis.Workspaces.UnitTests (8)
CodeStyle\NamingStylePreferencesUpgradeTests.cs (3)
190[InlineData(typeof(TypeKind), nameof(TypeKind.Struct), nameof(TypeKind.Structure))]
EditorConfigParsing\NamingStyleParserTests.cs (5)
157symbolKind => Assert.Equal(new SymbolKindOrTypeKind(TypeKind.Class), symbolKind), 158symbolKind => Assert.Equal(new SymbolKindOrTypeKind(TypeKind.Struct), symbolKind), 159symbolKind => Assert.Equal(new SymbolKindOrTypeKind(TypeKind.Interface), symbolKind), 160symbolKind => Assert.Equal(new SymbolKindOrTypeKind(TypeKind.Enum), symbolKind), 166symbolKind => Assert.Equal(new SymbolKindOrTypeKind(TypeKind.Delegate), symbolKind),
Microsoft.VisualStudio.LanguageServices (80)
CommonControls\MemberSelectionViewModel.cs (4)
32TypeKind destinationTypeKind = TypeKind.Class, 142public void UpdateMembersBasedOnDestinationKind(TypeKind destinationType) 147var isInterface = destinationType == TypeKind.Interface;
ExtractClass\ExtractClassViewModel.cs (1)
41destinationTypeKind: TypeKind.Class);
ExtractInterface\ExtractInterfaceDialogViewModel.cs (1)
44destinationTypeKind: TypeKind.Interface,
GenerateType\GenerateTypeDialogViewModel.cs (11)
38private Dictionary<string, TypeKind> _typeKindMap; 136public TypeKind SelectedTypeKind 145private void PopulateTypeKind(TypeKind typeKind, string csharpKey, string visualBasicKey) 154private void PopulateTypeKind(TypeKind typeKind, string visualBasicKey) 183_typeKindMap = new Dictionary<string, TypeKind>(); 210PopulateTypeKind(TypeKind.Class, "class", "Class"); 215PopulateTypeKind(TypeKind.Enum, "enum", "Enum"); 220PopulateTypeKind(TypeKind.Structure, "struct", "Structure"); 225PopulateTypeKind(TypeKind.Interface, "interface", "Interface"); 230PopulateTypeKind(TypeKind.Delegate, "delegate", "Delegate"); 236PopulateTypeKind(TypeKind.Module, "Module");
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 (2)
13private readonly TypeKind _typeKind; 21public TypeKind Kind
Library\ObjectBrowser\ObjectList.cs (8)
204case TypeKind.Interface: 208case TypeKind.Struct: 212case TypeKind.Enum: 216case TypeKind.Delegate: 220case TypeKind.Class: 224case TypeKind.Module: 444if (typeSymbol.TypeKind == TypeKind.Module) 449if (typeSymbol.TypeKind == TypeKind.Interface && typeSymbol.Interfaces.IsEmpty)
Library\VsNavInfo\NavInfoFactory.cs (6)
82else if (typeSymbol.TypeKind == TypeKind.Pointer) 86else if (typeSymbol.TypeKind == TypeKind.Array) 98if (typeSymbol.TypeKind is TypeKind.Error or 99TypeKind.Unknown or 100TypeKind.Dynamic or 101TypeKind.TypeParameter)
Progression\GraphBuilder.cs (8)
558case TypeKind.Class: 563case TypeKind.Delegate: 568case TypeKind.Enum: 573case TypeKind.Interface: 578case TypeKind.Module: 583case TypeKind.Struct: 588case TypeKind.Error: 628if (field.ContainingType.TypeKind == TypeKind.Enum)
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\GraphProvider.cs (18)
200IsAnyTypeKind(n, TypeKind.Class, TypeKind.Interface, TypeKind.Struct, TypeKind.Enum, TypeKind.Delegate))) 227IsAnyTypeKind(n, TypeKind.Class, TypeKind.Struct))) 245IsAnyTypeKind(n, TypeKind.Class, TypeKind.Struct))) 257IsAnyTypeKind(n, TypeKind.Class, TypeKind.Struct) && 273IsAnyTypeKind(n, TypeKind.Interface))) 284IsAnyTypeKind(n, TypeKind.Interface))) 295IsAnyTypeKind(n, TypeKind.Class, TypeKind.Struct) && 307IsAnyTypeKind(n, TypeKind.Class, TypeKind.Struct) && 343private static bool IsAnyTypeKind(GraphNode node, params TypeKind[] typeKinds)
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)
Progression\RoslynGraphProperties.cs (1)
81dataType: typeof(TypeKind),
Microsoft.VisualStudio.LanguageServices.CSharp (29)
CodeModel\CSharpCodeModelService.cs (14)
685if (typeSymbol.TypeKind == TypeKind.Unknown) 698if (typeSymbol.TypeKind == TypeKind.Array) 702else if (typeSymbol.TypeKind == TypeKind.Pointer) 707typeSymbol.TypeKind is TypeKind.Dynamic or 708TypeKind.Unknown) 757if (typeSymbol.TypeKind is TypeKind.Class or 758TypeKind.Interface or 759TypeKind.Enum or 760TypeKind.Struct or 761TypeKind.Delegate) 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 (13)
35Debug.Assert(typeSymbol.TypeKind == TypeKind.Delegate); 71case TypeKind.Enum: 75case TypeKind.Struct: 79case TypeKind.Interface: 83case TypeKind.Class: 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 (16)
GlyphExtensionsTests.cs (16)
72pointedAtType: (INamedTypeSymbol)CreateSymbolMock(SymbolKind.NamedType, typeKind: TypeKind.Class)); 81containingType: (INamedTypeSymbol)CreateSymbolMock(SymbolKind.NamedType, typeKind: TypeKind.Enum)); 101elementType: (INamedTypeSymbol)CreateSymbolMock(SymbolKind.NamedType, typeKind: TypeKind.Class)); 106target: (INamedTypeSymbol)CreateSymbolMock(SymbolKind.NamedType, typeKind: TypeKind.Class)); 116typeKind: TypeKind.Class); 120typeKind: TypeKind.Delegate); 124typeKind: TypeKind.Enum); 128typeKind: TypeKind.Module); 132typeKind: TypeKind.Interface); 136typeKind: TypeKind.Struct); 140typeKind: TypeKind.Error); 146typeKind: TypeKind.Unknown)); 188TypeKind typeKind = TypeKind.Unknown) 205TypeKind typeKind = TypeKind.Unknown)
Microsoft.VisualStudio.LanguageServices.Implementation (46)
CodeModel\AbstractCodeModelObject_CodeGen.cs (1)
243TypeKind typeKind,
CodeModel\AbstractCodeModelService.cs (19)
224case TypeKind.Class: 225case TypeKind.Module: 227case TypeKind.Delegate: 229case TypeKind.Enum: 231case TypeKind.Interface: 233case TypeKind.Struct: 259if (typeSymbol.TypeKind is TypeKind.Pointer or 260TypeKind.TypeParameter or 261TypeKind.Submission) 266if (typeSymbol.TypeKind is TypeKind.Error or 267TypeKind.Unknown) 278if (typeSymbol.TypeKind == TypeKind.Dynamic) 548case TypeKind.Array: 549case TypeKind.Class: 552case TypeKind.Interface: 555case TypeKind.Struct: 558case TypeKind.Enum: 561case TypeKind.Delegate: 564case TypeKind.Module:
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\FileCodeModel_CodeGen.cs (4)
213TypeKind.Class, 249var newType = CreateTypeDeclaration(containerNode, TypeKind.Enum, name, access, options); 359TypeKind.Interface, 429TypeKind.Struct,
CodeModel\MethodXml\AbstractMethodXmlBuilder.cs (1)
388if (type.TypeKind == TypeKind.Array)
CodeModel\RootCodeModel.cs (2)
144typeSymbol.TypeKind == TypeKind.Error || 145typeSymbol.TypeKind == TypeKind.Unknown)
Options\Style\NamingPreferences\SymbolSpecification\SymbolSpecificationViewModel.cs (13)
52new SymbolKindViewModel(TypeKind.Class, ServicesVSResources.NamingSpecification_CSharp_Class, specification), 53new SymbolKindViewModel(TypeKind.Struct, ServicesVSResources.NamingSpecification_CSharp_Struct, specification), 54new SymbolKindViewModel(TypeKind.Interface, ServicesVSResources.NamingSpecification_CSharp_Interface, specification), 55new SymbolKindViewModel(TypeKind.Enum, ServicesVSResources.NamingSpecification_CSharp_Enum, specification), 61new SymbolKindViewModel(TypeKind.Delegate, ServicesVSResources.NamingSpecification_CSharp_Delegate, specification), 94new SymbolKindViewModel(TypeKind.Class, ServicesVSResources.NamingSpecification_VisualBasic_Class, specification), 95new SymbolKindViewModel(TypeKind.Struct, ServicesVSResources.NamingSpecification_VisualBasic_Structure, specification), 96new SymbolKindViewModel(TypeKind.Interface, ServicesVSResources.NamingSpecification_VisualBasic_Interface, specification), 97new SymbolKindViewModel(TypeKind.Enum, ServicesVSResources.NamingSpecification_VisualBasic_Enum, specification), 98new SymbolKindViewModel(TypeKind.Module, ServicesVSResources.NamingSpecification_VisualBasic_Module, specification), 103new SymbolKindViewModel(TypeKind.Delegate, ServicesVSResources.NamingSpecification_VisualBasic_Delegate, specification), 183private readonly TypeKind? _typeKind; 195public SymbolKindViewModel(TypeKind typeKind, string name, SymbolSpecification specification)
Microsoft.VisualStudio.LanguageServices.UnitTests (1)
CommonControls\MemberSelectionViewModelTests.vb (1)
98viewModel.UpdateMembersBasedOnDestinationKind(TypeKind.Interface)
Microsoft.VisualStudio.LanguageServices.VisualBasic (49)
CodeModel\Extenders\GenericExtender.vb (19)
12Imports TypeKind = Microsoft.CodeAnalysis.TypeKind 36Case TypeKind.Class, 37TypeKind.Module, 38TypeKind.Structure, 39TypeKind.Delegate, 40TypeKind.Enum 44Case TypeKind.Interface 49Case TypeKind.Class, 50TypeKind.Structure 64Case TypeKind.Class, 65TypeKind.Module, 66TypeKind.Structure, 67TypeKind.Delegate, 68TypeKind.Enum 79Case TypeKind.Interface 86Case TypeKind.Class, 87TypeKind.Structure 93Case TypeKind.Delegate, 94TypeKind.Enum
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 (15)
30Debug.Assert(typeSymbol.TypeKind = TypeKind.Delegate) 68Case TypeKind.Class 70Case TypeKind.Interface 72Case TypeKind.Module 74Case TypeKind.Structure 76Case TypeKind.Enum 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