Base:
property
TypeKind
Microsoft.CodeAnalysis.CSharp.Symbols.TypeSymbol.TypeKind
32 references to TypeKind
Microsoft.CodeAnalysis.CSharp (32)
Lowering\LocalRewriter\LocalRewriter_PreviousSubmissionReference.cs (1)
15
Debug.Assert(targetType.
TypeKind
== TypeKind.Submission);
Symbols\NamespaceOrTypeSymbol.cs (1)
218
if ((object?)memberT != null && memberT.
TypeKind
== typeKind)
Symbols\Source\SourceMemberContainerSymbol.cs (12)
850
return this.
TypeKind
== TypeKind.Interface;
1498
switch (this.
TypeKind
)
1656
if (this.
TypeKind
== TypeKind.Enum)
2678
if (this.
TypeKind
is TypeKind.Delegate or TypeKind.Extension)
2742
if (
TypeKind
!= TypeKind.Struct)
2767
Debug.Assert(
TypeKind
== TypeKind.Struct);
3694
switch (
TypeKind
)
3979
if (
TypeKind
is TypeKind.Class)
3984
switch (
TypeKind
)
3994
if (
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.
4880
Debug.Assert(
TypeKind
== TypeKind.Struct);
5690
builder.AddNonTypeMember(this, (this.
TypeKind
== TypeKind.Submission) ?
Symbols\Source\SourceMemberContainerSymbol_ImplementationChecks.cs (2)
516
switch (this.
TypeKind
)
531
throw ExceptionUtilities.UnexpectedValue(this.
TypeKind
);
Symbols\Source\SourceNamedTypeSymbol.cs (7)
820
switch (
TypeKind
)
1228
if (
TypeKind
!= TypeKind.Struct)
1554
if (this.
TypeKind
== TypeKind.Struct)
1658
if (this.
TypeKind
== TypeKind.Class)
1970
if (
TypeKind
== TypeKind.Struct && !IsRecordStruct && HasInlineArrayAttribute(out _))
2056
if (
TypeKind
== TypeKind.Struct && HasExtendedLayoutAttribute)
2080
||
TypeKind
!= TypeKind.Class
Symbols\Source\SourceNamedTypeSymbol_Bases.cs (7)
44
TypeKind
is not (TypeKind.Enum or TypeKind.Delegate or TypeKind.Submission))
282
if (this.
TypeKind
== TypeKind.Enum)
524
if (i == 0 &&
TypeKind
== TypeKind.Class) // allow class in the first position
639
if (
TypeKind
== TypeKind.Class)
689
if (
TypeKind
!= TypeKind.Class || baseType.TypeKind == TypeKind.Interface)
721
var typeKind = this.
TypeKind
;
772
var typeKind = this.
TypeKind
;
Symbols\Source\SourceNamedTypeSymbol_Enum.cs (2)
46
if (this.
TypeKind
!= TypeKind.Enum)
89
if (this.
TypeKind
!= TypeKind.Enum)