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