2 writes to _constrained
ILCompiler.Compiler (2)
IL\ILImporter.Scanner.cs (2)
308
_constrained
= null;
1389
_constrained
= (TypeDesc)_methodIL.GetObject(token);
17 references to _constrained
ILCompiler.Compiler (17)
IL\ILImporter.Scanner.cs (17)
721
if (
_constrained
!= null)
729
TypeDesc constrained =
_constrained
;
771
AddBoxingDependencies(
_constrained
, reason);
795
if (
_constrained
!= null && (!resolvedConstraint || forceUseRuntimeLookup))
824
TypeDesc constraintForDelegate = !resolvedConstraint || forceUseRuntimeLookup ?
_constrained
: null;
837
var constrainedCallInfo = new ConstrainedCallInfo(
_constrained
, runtimeDeterminedMethod);
846
if (
_constrained
.IsRuntimeDeterminedType)
847
targetOfLookup = _compilation.TypeSystemContext.GetMethodForRuntimeDeterminedType(targetMethod.GetTypicalMethodDefinition(), (RuntimeDeterminedType)
_constrained
);
848
else if (
_constrained
.HasInstantiation)
849
targetOfLookup = _compilation.TypeSystemContext.GetMethodForInstantiatedType(targetMethod.GetTypicalMethodDefinition(), (InstantiatedType)
_constrained
);
937
if (
_constrained
.IsRuntimeDeterminedSubtype)
938
_dependencies.Add(GetGenericLookupHelper(ReadyToRunHelperId.TypeHandle,
_constrained
), reason);
940
_dependencies.Add(_factory.ConstructedTypeSymbol(
_constrained
), reason);
974
Debug.Assert(targetMethod.OwningType.IsInterface && targetMethod.IsVirtual &&
_constrained
!= null);
983
Debug.Assert(targetMethod.OwningType.IsInterface && targetMethod.IsVirtual &&
_constrained
!= null);
985
var constrainedCallInfo = new ConstrainedCallInfo(
_constrained
, runtimeDeterminedMethod);
991
ThrowHelper.ThrowTypeLoadException(
_constrained
);