Base:
property
TypeKind
Microsoft.CodeAnalysis.CSharp.Symbols.TypeSymbol.TypeKind
31 references to TypeKind
Microsoft.CodeAnalysis.CSharp (31)
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.cs (12)
812return this.TypeKind == TypeKind.Interface; 1390switch (this.TypeKind) 1521if (this.TypeKind == TypeKind.Enum) 2530if (this.TypeKind is TypeKind.Delegate or TypeKind.Extension) 2594if (TypeKind != TypeKind.Struct) 2619Debug.Assert(TypeKind == TypeKind.Struct); 3529switch (TypeKind) 3801if (TypeKind is TypeKind.Class) 3806switch (TypeKind) 3816if (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. 4705Debug.Assert(TypeKind == TypeKind.Struct); 5423builder.AddNonTypeMember(this, (this.TypeKind == TypeKind.Submission) ?
Symbols\Source\SourceMemberContainerSymbol_ImplementationChecks.cs (2)
510switch (this.TypeKind) 525throw ExceptionUtilities.UnexpectedValue(this.TypeKind);
Symbols\Source\SourceNamedTypeSymbol.cs (6)
814switch (TypeKind) 1215if (TypeKind != TypeKind.Struct) 1515if (this.TypeKind == TypeKind.Struct) 1609if (this.TypeKind == TypeKind.Class) 1872if (TypeKind == TypeKind.Struct && !IsRecordStruct && HasInlineArrayAttribute(out _)) 1973|| TypeKind != TypeKind.Class
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)