Base:
property
TypeKind
Microsoft.CodeAnalysis.CSharp.Symbols.TypeSymbol.TypeKind
31 references to TypeKind
Microsoft.CodeAnalysis.CSharp (31)
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)
825
return this.
TypeKind
== TypeKind.Interface;
1403
switch (this.
TypeKind
)
1561
if (this.
TypeKind
== TypeKind.Enum)
2539
if (this.
TypeKind
is TypeKind.Delegate or TypeKind.Extension)
2603
if (
TypeKind
!= TypeKind.Struct)
2628
Debug.Assert(
TypeKind
== TypeKind.Struct);
3549
switch (
TypeKind
)
3821
if (
TypeKind
is TypeKind.Class)
3826
switch (
TypeKind
)
3836
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.
4707
Debug.Assert(
TypeKind
== TypeKind.Struct);
5425
builder.AddNonTypeMember(this, (this.
TypeKind
== TypeKind.Submission) ?
Symbols\Source\SourceMemberContainerSymbol_ImplementationChecks.cs (2)
510
switch (this.
TypeKind
)
525
throw ExceptionUtilities.UnexpectedValue(this.
TypeKind
);
Symbols\Source\SourceNamedTypeSymbol.cs (6)
815
switch (
TypeKind
)
1217
if (
TypeKind
!= TypeKind.Struct)
1517
if (this.
TypeKind
== TypeKind.Struct)
1611
if (this.
TypeKind
== TypeKind.Class)
1884
if (
TypeKind
== TypeKind.Struct && !IsRecordStruct && HasInlineArrayAttribute(out _))
1985
||
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)