Base:
property
TypeKind
Microsoft.CodeAnalysis.CSharp.Symbols.TypeSymbol.TypeKind
32 references to TypeKind
Microsoft.CodeAnalysis.CSharp (32)
Lowering\LocalRewriter\LocalRewriter_PreviousSubmissionReference.cs (1)
15Debug.Assert(targetType.TypeKind == TypeKind.Submission);
Symbols\NamespaceOrTypeSymbol.cs (1)
218if ((object?)memberT != null && memberT.TypeKind == typeKind)
Symbols\Source\SourceMemberContainerSymbol_ImplementationChecks.cs (2)
516switch (this.TypeKind) 531throw ExceptionUtilities.UnexpectedValue(this.TypeKind);
Symbols\Source\SourceMemberContainerSymbol.cs (12)
859return this.TypeKind == TypeKind.Interface; 1507switch (this.TypeKind) 1665if (this.TypeKind == TypeKind.Enum) 2714if (this.TypeKind is TypeKind.Delegate or TypeKind.Extension) 2778if (TypeKind != TypeKind.Struct) 2803Debug.Assert(TypeKind == TypeKind.Struct); 3730switch (TypeKind) 4015if (TypeKind is TypeKind.Class) 4020switch (TypeKind) 4030if (TypeKind == TypeKind.Class) // Tracked by https://github.com/dotnet/roslyn/issues/78827 : MQ, Consider tightening this check to only top-level non-generic static classes, however optimizing for error scenarios is usually not a goal. 4925Debug.Assert(TypeKind == TypeKind.Struct); 5723builder.AddNonTypeMember(this, (this.TypeKind == TypeKind.Submission) ?
Symbols\Source\SourceNamedTypeSymbol_Bases.cs (7)
44TypeKind is not (TypeKind.Enum or TypeKind.Delegate or TypeKind.Submission)) 282if (this.TypeKind == TypeKind.Enum) 524if (i == 0 && TypeKind == TypeKind.Class) // allow class in the first position 639if (TypeKind == TypeKind.Class) 689if (TypeKind != TypeKind.Class || baseType.TypeKind == TypeKind.Interface) 721var typeKind = this.TypeKind; 772var typeKind = this.TypeKind;
Symbols\Source\SourceNamedTypeSymbol_Enum.cs (2)
46if (this.TypeKind != TypeKind.Enum) 89if (this.TypeKind != TypeKind.Enum)
Symbols\Source\SourceNamedTypeSymbol.cs (7)
820switch (TypeKind) 1228if (TypeKind != TypeKind.Struct) 1554if (this.TypeKind == TypeKind.Struct) 1658if (this.TypeKind == TypeKind.Class) 2011if (TypeKind == TypeKind.Struct && !IsRecordStruct && HasInlineArrayAttribute(out _)) 2097if (TypeKind == TypeKind.Struct && HasExtendedLayoutAttribute) 2121|| TypeKind != TypeKind.Class