35 references to IsConstructor
ILCompiler.Compiler (17)
Compiler\Dataflow\CompilerGeneratedState.cs (1)
182
if (referencedMethod.
IsConstructor
&&
Compiler\Dataflow\DiagnosticUtilities.cs (2)
130
if ((method.Signature.IsStatic || method.
IsConstructor
) && method.OwningType is TypeDesc owningType &&
136
if (method.
IsConstructor
)
Compiler\Dataflow\HandleCallAction.cs (1)
683
if (!method.Method.
IsConstructor
)
Compiler\Dataflow\MethodReturnValue.cs (1)
23
Debug.Assert(!isNewObj || method.
IsConstructor
, "isNewObj can only be true for constructors");
Compiler\Dataflow\ReflectionMethodBodyScanner.cs (1)
447
if (!method.Signature.IsStatic && !method.HasInstantiation && !method.
IsConstructor
&& !method.OwningType.IsValueType)
Compiler\DependencyAnalysis\StringAllocatorMethodNode.cs (1)
38
Debug.Assert(constructorMethod.
IsConstructor
&& constructorMethod.OwningType.IsString);
Compiler\MetadataManager.cs (1)
428
if (method.
IsConstructor
)
Compiler\TypePreinit.cs (1)
505
&& (method.Signature.IsStatic || method.
IsConstructor
|| owningType.IsValueType || owningType.IsInterface) // ECMA-335 I.8.9.5
IL\ILImporter.Scanner.cs (3)
141
(_canonMethod.Signature.IsStatic || _canonMethod.
IsConstructor
|| owningType.IsValueType || owningType.IsInterface))
904
if (targetMethod.
IsConstructor
&& targetMethod.OwningType.IsString)
1445
|| (!field.IsStatic && _methodIL.OwningMethod.
IsConstructor
));
IL\RvaIntrinsicPatternAnalyzer.cs (1)
162
if (!constructor.
IsConstructor
|| constructor.OwningType is not ArrayType arrayType)
parent\parent\Common\Compiler\Dataflow\DynamicallyAccessedMembersBinder.cs (2)
150
if (!method.
IsConstructor
&& !method.IsStaticConstructor)
188
if (method.
IsConstructor
|| method.IsStaticConstructor)
parent\parent\Common\Compiler\Dataflow\MethodProxy.cs (1)
69
internal partial bool IsConstructor() => Method.
IsConstructor
;
parent\parent\Common\Compiler\DisplayNameHelpers.cs (1)
36
if (method.
IsConstructor
&& method.OwningType is DefType defType)
ILCompiler.ReadyToRun (13)
Compiler\DependencyAnalysis\ReadyToRun\GCRefMapBuilder.cs (1)
130
methodIsStringConstructor: method.OwningType.IsString && method.
IsConstructor
,
Compiler\DependencyAnalysis\ReadyToRun\TypeValidationChecker.cs (1)
254
if (method.
IsConstructor
|| method.IsStaticConstructor)
Compiler\DependencyAnalysis\ReadyToRun\WasmImportThunkPortableEntrypoint.cs (1)
113
if (method.IsInternalCall && method.OwningType.IsWellKnownType(WellKnownType.String) && method.
IsConstructor
)
JitInterface\CorInfoImpl.ReadyToRun.cs (3)
575
methodNeedingCode.
IsConstructor
||
2203
bool isArrayConstructor = targetMethod.OwningType.IsArray && targetMethod.
IsConstructor
;
2588
if (methodToCall.OwningType.IsArray && methodToCall.
IsConstructor
)
parent\parent\Common\Compiler\Dataflow\DynamicallyAccessedMembersBinder.cs (2)
150
if (!method.
IsConstructor
&& !method.IsStaticConstructor)
188
if (method.
IsConstructor
|| method.IsStaticConstructor)
parent\parent\Common\Compiler\Dataflow\MethodProxy.cs (1)
69
internal partial bool IsConstructor() => Method.
IsConstructor
;
parent\parent\Common\Compiler\DisplayNameHelpers.cs (1)
36
if (method.
IsConstructor
&& method.OwningType is DefType defType)
parent\parent\Common\JitInterface\CorInfoImpl.cs (2)
1173
if (method.
IsConstructor
|| method.IsStaticConstructor)
2947
else if (!md.
IsConstructor
&& !typeToInit.IsValueType && !typeToInit.IsInterface)
PortableCallHelpers\InternalCallSignatureCollector.cs (1)
69
if (method.
IsConstructor
&& method.OwningType.IsWellKnownType(WellKnownType.String))
ILCompiler.RyuJit (4)
JitInterface\CorInfoImpl.RyuJit.cs (2)
1495
if (owningType.IsString && targetMethod.
IsConstructor
)
1502
else if (owningType.IsArray && targetMethod.
IsConstructor
)
parent\parent\Common\JitInterface\CorInfoImpl.cs (2)
1173
if (method.
IsConstructor
|| method.IsStaticConstructor)
2947
else if (!md.
IsConstructor
&& !typeToInit.IsValueType && !typeToInit.IsInterface)
ILCompiler.TypeSystem (1)
parent\parent\Common\TypeSystem\Ecma\EcmaModule.cs (1)
629
if (typeDescToInspect != parentTypeDesc && method.
IsConstructor
)