103 references to IsArray
ILCompiler.Compiler (49)
Compiler\CompilerTypeSystemContext.Aot.cs (1)
260
if (type.
IsArray
)
Compiler\Dataflow\DiagnosticUtilities.cs (2)
131
!owningType.
IsArray
&& TryGetRequiresAttribute(owningType, requiresAttribute, out attribute))
153
if (!field.IsStatic || field.OwningType is not TypeDesc owningType || owningType.
IsArray
)
Compiler\Dataflow\HandleCallAction.cs (2)
427
if (staticType is null || (!staticType.IsDefType && !staticType.
IsArray
))
475
Debug.Assert(staticType is MetadataType || staticType.
IsArray
);
Compiler\DependencyAnalysis\ArrayMapNode.cs (1)
51
if (!type.
IsArray
)
Compiler\DependencyAnalysis\ConstructedEETypeNode.cs (1)
43
if (_type.
IsArray
)
Compiler\DependencyAnalysis\EETypeNode.cs (4)
637
if (_type.
IsArray
|| _type.IsDefType)
784
if (_type.
IsArray
|| _type.IsString)
793
if (_type.
IsArray
)
844
if (_type.
IsArray
&& parameterType.IsValueType && !parameterType.IsNullable)
Compiler\DependencyAnalysis\InterfaceDispatchMapNode.cs (1)
73
if (!type.
IsArray
&& !type.IsDefType)
Compiler\DependencyAnalysis\MetadataEETypeNode.cs (1)
56
if (_type.
IsArray
)
Compiler\DependencyAnalysis\ReflectionInvokeSupportDependencyAlgorithm.cs (1)
32
if (sig.Length < 1 || !sig[sig.Length - 1].
IsArray
)
Compiler\DependencyAnalysis\SerializedFrozenObjectNode.cs (2)
46
=> _data.Type.
IsArray
50
public override int? ArrayLength => _data.Type.
IsArray
? _data.ArrayLength : null;
Compiler\DependencyAnalysis\VariantInterfaceMethodUseNode.cs (2)
79
(providingType.
IsArray
|| providingType.GetTypeDefinition() == factory.TypeSystemContext.ArrayOfTEnumeratorType) &&
86
TypeDesc elementType = providingType.
IsArray
? ((ArrayType)providingType).ElementType : providingType.Instantiation[0];
Compiler\DependencyAnalysis\VTableSliceNode.cs (1)
24
Debug.Assert(!type.
IsArray
, "Wanted to call GetClosestDefType?");
Compiler\ILScanner.cs (1)
619
if (!type.
IsArray
&& baseType != null)
Compiler\MetadataManager.cs (1)
410
if (owningType.
IsArray
)
Compiler\MultiFileCompilationModuleGroup.cs (1)
105
return (type.HasInstantiation || type.
IsArray
) && ShouldProduceFullVTable(type) &&
Compiler\UsageBasedMetadataManager.cs (1)
315
if (type.
IsArray
)
Compiler\UserDefinedTypeDescriptor.cs (3)
264
if ((type.IsDefType && !type.IsValueType) || type.
IsArray
)
330
if (type.
IsArray
)
433
Debug.Assert(type.
IsArray
, "GetArrayTypeIndex was called with wrong type");
IL\ILImporter.Scanner.cs (1)
629
if (owningType.
IsArray
)
parent\parent\Common\Compiler\CompilerTypeSystemContext.cs (1)
287
Debug.Assert(!type.
IsArray
, "Wanted to call GetClosestMetadataType?");
parent\parent\Common\Compiler\CompilerTypeSystemContext.Validation.cs (1)
282
if (parameterizedType.
IsArray
)
parent\parent\Common\Compiler\Dataflow\DynamicallyAccessedMembersBinder.cs (4)
142
if (type.
IsArray
)
176
if (type.
IsArray
)
296
if (type.
IsArray
)
364
if (type.
IsArray
)
parent\parent\Common\Compiler\TypeExtensions.cs (9)
23
Debug.Assert(type.
IsArray
, "IsSealed on a type with no virtual methods?");
153
if (!type.
IsArray
)
235
if (ta.
IsArray
)
237
if (tb.
IsArray
)
252
else if (tb.
IsArray
)
344
Debug.Assert(ta.
IsArray
&& tb.
IsArray
&& ta != tb);
361
else if (taElem.
IsArray
&& tbElem.
IsArray
)
parent\parent\Common\Internal\Runtime\EETypeBuilderHelpers.cs (3)
59
if (type.
IsArray
|| type.IsString)
88
else if (type.
IsArray
&& !type.IsCanonicalSubtype(CanonicalFormKind.Universal))
139
else if (type.
IsArray
)
parent\parent\Common\Internal\Runtime\GCDescEncoder.cs (2)
21
if (type.
IsArray
)
68
if (type.
IsArray
)
parent\parent\Common\TypeSystem\MetadataEmitter\TypeSystemMetadataEmitter.cs (1)
418
else if (type.
IsArray
)
src\runtime\src\coreclr\tools\Common\Compiler\GenericCycleDetection\ModuleCycleInfo.cs (1)
151
} while (parameterType.
IsArray
);
ILCompiler.MetadataTransform (2)
ILCompiler\Metadata\Transform.CustomAttribute.cs (2)
57
var fixedArgument = paramType.
IsArray
?
75
Value = type.
IsArray
?
ILCompiler.ReadyToRun (31)
Compiler\DependencyAnalysis\ReadyToRun\MethodFixupSignature.cs (1)
141
if (!_method.Method.HasInstantiation && !_method.Method.OwningType.HasInstantiation && !_method.Method.OwningType.
IsArray
)
Compiler\DependencyAnalysis\ReadyToRun\SignatureBuilder.cs (1)
409
Debug.Assert(type.
IsArray
&& !type.IsSzArray);
Compiler\ReadyToRunCompilationModuleGroupBase.cs (1)
607
if (local.Type.
IsArray
)
Compiler\ReadyToRunCompilerContext.cs (1)
24
if (type.
IsArray
)
JitInterface\CorInfoImpl.ReadyToRun.cs (3)
1950
useInstantiatingStub = originalMethod.OwningType.
IsArray
|| originalMethod.GetCanonMethodTarget(CanonicalFormKind.Specific).RequiresInstMethodDescArg();
2203
bool isArrayConstructor = targetMethod.OwningType.
IsArray
&& targetMethod.IsConstructor;
2588
if (methodToCall.OwningType.
IsArray
&& methodToCall.IsConstructor)
parent\parent\Common\Compiler\CompilerTypeSystemContext.cs (1)
287
Debug.Assert(!type.
IsArray
, "Wanted to call GetClosestMetadataType?");
parent\parent\Common\Compiler\CompilerTypeSystemContext.Validation.cs (1)
282
if (parameterizedType.
IsArray
)
parent\parent\Common\Compiler\Dataflow\DynamicallyAccessedMembersBinder.cs (4)
142
if (type.
IsArray
)
176
if (type.
IsArray
)
296
if (type.
IsArray
)
364
if (type.
IsArray
)
parent\parent\Common\Compiler\TypeExtensions.cs (9)
23
Debug.Assert(type.
IsArray
, "IsSealed on a type with no virtual methods?");
153
if (!type.
IsArray
)
235
if (ta.
IsArray
)
237
if (tb.
IsArray
)
252
else if (tb.
IsArray
)
344
Debug.Assert(ta.
IsArray
&& tb.
IsArray
&& ta != tb);
361
else if (taElem.
IsArray
&& tbElem.
IsArray
)
parent\parent\Common\JitInterface\CorInfoImpl.cs (7)
1307
if (type.
IsArray
)
1585
bool isArray = decl.OwningType.IsInterface && objType.
IsArray
;
1904
Debug.Assert(typeContext.HasSameTypeDefinition(owningMethod.OwningType) || typeContext.
IsArray
);
2307
if (type.
IsArray
)
2313
if (type.
IsArray
|| type.IsString)
3194
while (type.
IsArray
)
3298
if (td.
IsArray
|| td.IsByRef || td.IsPointer)
parent\parent\Common\TypeSystem\MetadataEmitter\TypeSystemMetadataEmitter.cs (1)
418
else if (type.
IsArray
)
src\runtime\src\coreclr\tools\Common\Compiler\GenericCycleDetection\ModuleCycleInfo.cs (1)
151
} while (parameterType.
IsArray
);
ILCompiler.RyuJit (10)
JitInterface\CorInfoImpl.RyuJit.cs (4)
1099
else if (type.
IsArray
)
1135
Debug.Assert(!type.IsString && !type.
IsArray
&& !type.IsCanonicalDefinitionType(CanonicalFormKind.Any));
1160
Debug.Assert(type.
IsArray
);
1502
else if (owningType.
IsArray
&& targetMethod.IsConstructor)
parent\parent\Common\JitInterface\CorInfoImpl.cs (6)
1307
if (type.
IsArray
)
1904
Debug.Assert(typeContext.HasSameTypeDefinition(owningMethod.OwningType) || typeContext.
IsArray
);
2307
if (type.
IsArray
)
2313
if (type.
IsArray
|| type.IsString)
3194
while (type.
IsArray
)
3298
if (td.
IsArray
|| td.IsByRef || td.IsPointer)
ILCompiler.TypeSystem (11)
parent\parent\Common\TypeSystem\Canon\StandardCanonicalizationAlgorithm.cs (1)
117
else if (typeToConvert.
IsArray
)
parent\parent\Common\TypeSystem\Common\ConstructedTypeRewritingHelpers.cs (1)
107
if (type.
IsArray
)
parent\parent\Common\TypeSystem\Common\MetadataFieldLayoutAlgorithm.cs (1)
1166
else if (fieldType.
IsArray
)
parent\parent\Common\TypeSystem\Common\TypeDesc.cs (2)
331
return this.
IsArray
&& ((ArrayType)this).IsSzArray;
343
return this.
IsArray
&& ((ArrayType)this).IsMdArray;
parent\parent\Common\TypeSystem\Common\TypeSystemContext.cs (1)
671
else if (type.
IsArray
)
parent\parent\Common\TypeSystem\Common\TypeSystemHelpers.cs (3)
108
else if (type.
IsArray
)
110
Debug.Assert(method.OwningType.
IsArray
);
412
if (type.
IsArray
)
parent\parent\Common\TypeSystem\IL\UnsafeAccessors.cs (1)
237
if ((targetType.IsParameterizedType && !targetType.
IsArray
)
parent\parent\Common\TypeSystem\RuntimeDetermined\RuntimeDeterminedCanonicalizationAlgorithm.cs (1)
128
else if (typeToConvert.
IsArray
)