2 writes to _constrained
ILCompiler.Compiler (2)
IL\ILImporter.Scanner.cs (2)
308
_constrained
= null;
1330
_constrained
= (TypeDesc)_methodIL.GetObject(token);
17 references to _constrained
ILCompiler.Compiler (17)
IL\ILImporter.Scanner.cs (17)
713
if (
_constrained
!= null)
721
TypeDesc constrained =
_constrained
;
763
AddBoxingDependencies(
_constrained
, reason);
787
if (
_constrained
!= null && (!resolvedConstraint || forceUseRuntimeLookup))
816
TypeDesc constraintForDelegate = !resolvedConstraint || forceUseRuntimeLookup ?
_constrained
: null;
829
var constrainedCallInfo = new ConstrainedCallInfo(
_constrained
, runtimeDeterminedMethod);
838
if (
_constrained
.IsRuntimeDeterminedType)
839
targetOfLookup = _compilation.TypeSystemContext.GetMethodForRuntimeDeterminedType(targetMethod.GetTypicalMethodDefinition(), (RuntimeDeterminedType)
_constrained
);
840
else if (
_constrained
.HasInstantiation)
841
targetOfLookup = _compilation.TypeSystemContext.GetMethodForInstantiatedType(targetMethod.GetTypicalMethodDefinition(), (InstantiatedType)
_constrained
);
929
if (
_constrained
.IsRuntimeDeterminedSubtype)
930
_dependencies.Add(GetGenericLookupHelper(ReadyToRunHelperId.TypeHandle,
_constrained
), reason);
932
_dependencies.Add(_factory.ConstructedTypeSymbol(
_constrained
), reason);
966
Debug.Assert(targetMethod.OwningType.IsInterface && targetMethod.IsVirtual &&
_constrained
!= null);
975
Debug.Assert(targetMethod.OwningType.IsInterface && targetMethod.IsVirtual &&
_constrained
!= null);
977
var constrainedCallInfo = new ConstrainedCallInfo(
_constrained
, runtimeDeterminedMethod);
983
ThrowHelper.ThrowTypeLoadException(
_constrained
);