Base:
property
TypeKind
Microsoft.CodeAnalysis.CSharp.Symbols.TypeSymbol.TypeKind
29 references to TypeKind
Microsoft.CodeAnalysis.CSharp (29)
Lowering\LocalRewriter\LocalRewriter_PreviousSubmissionReference.cs (1)
15Debug.Assert(targetType.TypeKind == TypeKind.Submission);
Symbols\NamespaceOrTypeSymbol.cs (1)
217if ((object?)memberT != null && memberT.TypeKind == typeKind)
Symbols\Source\SourceMemberContainerSymbol.cs (11)
804return this.TypeKind == TypeKind.Interface; 1379switch (this.TypeKind) 1510if (this.TypeKind == TypeKind.Enum) 2287if (this.TypeKind == TypeKind.Delegate) 2346if (TypeKind != TypeKind.Struct) 2371Debug.Assert(TypeKind == TypeKind.Struct); 3258switch (TypeKind) 3493if (TypeKind is TypeKind.Class) 3498switch (TypeKind) 4138Debug.Assert(TypeKind == TypeKind.Struct); 4847builder.AddNonTypeMember((this.TypeKind == TypeKind.Submission) ?
Symbols\Source\SourceMemberContainerSymbol_ImplementationChecks.cs (2)
510switch (this.TypeKind) 524throw ExceptionUtilities.UnexpectedValue(this.TypeKind);
Symbols\Source\SourceNamedTypeSymbol.cs (5)
810switch (TypeKind) 1211if (TypeKind != TypeKind.Struct) 1491if (this.TypeKind == TypeKind.Struct) 1585if (this.TypeKind == TypeKind.Class) 1823if (TypeKind == TypeKind.Struct && !IsRecordStruct && HasInlineArrayAttribute(out _))
Symbols\Source\SourceNamedTypeSymbol_Bases.cs (7)
44TypeKind is not (TypeKind.Enum or TypeKind.Delegate or TypeKind.Submission)) 282if (this.TypeKind == TypeKind.Enum) 469if (i == 0 && TypeKind == TypeKind.Class) // allow class in the first position 584if (TypeKind == TypeKind.Class) 633(TypeKind != TypeKind.Class || baseType.TypeKind == TypeKind.Interface || ((TypeDeclarationSyntax)decl.SyntaxReference.GetSyntax()).ParameterList is null)) 660var typeKind = this.TypeKind; 711var typeKind = this.TypeKind;
Symbols\Source\SourceNamedTypeSymbol_Enum.cs (2)
46if (this.TypeKind != TypeKind.Enum) 89if (this.TypeKind != TypeKind.Enum)