Base:
property
TypeKind
Microsoft.CodeAnalysis.CSharp.Symbols.TypeSymbol.TypeKind
30 references to TypeKind
Microsoft.CodeAnalysis.CSharp (30)
Lowering\LocalRewriter\LocalRewriter_PreviousSubmissionReference.cs (1)
15
Debug.Assert(targetType.
TypeKind
== TypeKind.Submission);
Symbols\NamespaceOrTypeSymbol.cs (1)
217
if ((object?)memberT != null && memberT.
TypeKind
== typeKind)
Symbols\Source\SourceMemberContainerSymbol.cs (11)
804
return this.
TypeKind
== TypeKind.Interface;
1379
switch (this.
TypeKind
)
1510
if (this.
TypeKind
== TypeKind.Enum)
2298
if (this.
TypeKind
== TypeKind.Delegate)
2357
if (
TypeKind
!= TypeKind.Struct)
2382
Debug.Assert(
TypeKind
== TypeKind.Struct);
3280
switch (
TypeKind
)
3552
if (
TypeKind
is TypeKind.Class)
3557
switch (
TypeKind
)
4213
Debug.Assert(
TypeKind
== TypeKind.Struct);
4922
builder.AddNonTypeMember(this, (this.
TypeKind
== TypeKind.Submission) ?
Symbols\Source\SourceMemberContainerSymbol_ImplementationChecks.cs (2)
510
switch (this.
TypeKind
)
524
throw ExceptionUtilities.UnexpectedValue(this.
TypeKind
);
Symbols\Source\SourceNamedTypeSymbol.cs (6)
811
switch (
TypeKind
)
1212
if (
TypeKind
!= TypeKind.Struct)
1507
if (this.
TypeKind
== TypeKind.Struct)
1601
if (this.
TypeKind
== TypeKind.Class)
1854
if (
TypeKind
== TypeKind.Struct && !IsRecordStruct && HasInlineArrayAttribute(out _))
1955
||
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)
469
if (i == 0 &&
TypeKind
== TypeKind.Class) // allow class in the first position
584
if (
TypeKind
== TypeKind.Class)
633
(
TypeKind
!= TypeKind.Class || baseType.TypeKind == TypeKind.Interface || ((TypeDeclarationSyntax)decl.SyntaxReference.GetSyntax()).ParameterList is null))
660
var typeKind = this.
TypeKind
;
711
var typeKind = this.
TypeKind
;
Symbols\Source\SourceNamedTypeSymbol_Enum.cs (2)
46
if (this.
TypeKind
!= TypeKind.Enum)
89
if (this.
TypeKind
!= TypeKind.Enum)