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