23 references to TypeKind
Microsoft.CodeAnalysis.CSharp (23)
Binder\Binder_Constraints.cs (1)
504type.TypeKind == TypeKind.Class)
Binder\Semantics\OverloadResolution\MethodTypeInference.cs (3)
488if (type.TypeKind != TypeKind.TypeParameter) return false; 1860if (source.TypeKind == TypeKind.Pointer && target.TypeKind == TypeKind.Pointer)
Compilation\CSharpCompilation.cs (1)
2247if (firstType.TypeKind != TypeKind.Array)
Compiler\ClsComplianceChecker.cs (2)
285if (paramType.TypeKind == TypeKind.Array || 639if (type.TypeKind == TypeKind.Array)
FlowAnalysis\NullableWalker.cs (2)
2548targetType.TypeKind == TypeKind.TypeParameter || 2633fieldOrPropertyType.TypeKind == TypeKind.TypeParameter ||
Symbols\ConstraintsHelper.cs (5)
166switch (constraintType.TypeKind) 223Debug.Assert(inherited || currentCompilation == null || constraintType.TypeKind != TypeKind.Delegate); 287throw ExceptionUtilities.UnexpectedValue(constraintType.TypeKind); 1172else if (typeArgument.TypeKind == TypeKind.TypeParameter) 1356if (typeArgument.TypeKind == TypeKind.TypeParameter)
Symbols\Source\SourceOrdinaryMethodSymbol.cs (1)
222else if (parameter0RefKind is RefKind.In or RefKind.RefReadOnlyParameter && parameter0Type.TypeKind != TypeKind.Struct)
Symbols\TypeParameterSymbol.cs (1)
484if (constraintType.TypeKind == TypeKind.TypeParameter)
Symbols\TypeUnification.cs (6)
113if (t2.TypeKind != t1.TypeKind || !t2.CustomModifiers.SequenceEqual(t1.CustomModifiers)) 130if (t2.TypeKind != t1.TypeKind || !t2.CustomModifiers.SequenceEqual(t1.CustomModifiers)) 143if (t2.TypeKind != t1.TypeKind || !t2.CustomModifiers.SequenceEqual(t1.CustomModifiers))
Symbols\TypeWithAnnotations.cs (1)
1068Debug.Assert(underlying.TypeKind == TypeKind.TypeParameter);