25 references to TypeKind
Microsoft.CodeAnalysis.CSharp (24)
Binder\Binder_Constraints.cs (1)
463type.TypeKind == TypeKind.Class)
Binder\Semantics\OverloadResolution\MethodTypeInference.cs (3)
487if (type.TypeKind != TypeKind.TypeParameter) return false; 1711if (source.TypeKind == TypeKind.Pointer && target.TypeKind == TypeKind.Pointer)
Compilation\CSharpCompilation.cs (1)
2069if (firstType.TypeKind != TypeKind.Array)
Compiler\ClsComplianceChecker.cs (2)
278if (paramType.TypeKind == TypeKind.Array || 632if (type.TypeKind == TypeKind.Array)
FlowAnalysis\DefiniteAssignment.cs (1)
1009variableBySlot[slot].Symbol.GetTypeOrReturnType().TypeKind == TypeKind.Struct;
FlowAnalysis\NullableWalker.cs (2)
2481targetType.TypeKind == TypeKind.TypeParameter || 2566fieldOrPropertyType.TypeKind == TypeKind.TypeParameter ||
Symbols\ConstraintsHelper.cs (5)
137switch (constraintType.TypeKind) 194Debug.Assert(inherited || currentCompilation == null || constraintType.TypeKind != TypeKind.Delegate); 258throw ExceptionUtilities.UnexpectedValue(constraintType.TypeKind); 1094else if (typeArgument.TypeKind == TypeKind.TypeParameter) 1270if (typeArgument.TypeKind == TypeKind.TypeParameter)
Symbols\Source\SourceOrdinaryMethodSymbol.cs (1)
235else if (parameter0RefKind == RefKind.In && 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)
935Debug.Assert(underlying.TypeKind == TypeKind.TypeParameter);
Microsoft.CodeAnalysis.CSharp.ExpressionEvaluator.ExpressionCompiler.UnitTests (1)
ExpressionCompilerTests.cs (1)
2156Assert.Equal(TypeKind.TypeParameter, returnType.TypeKind);