2 writes to _constrained
ILCompiler.Compiler (2)
IL\ILImporter.Scanner.cs (2)
296
_constrained
= null;
1241
_constrained
= (TypeDesc)_methodIL.GetObject(token);
17 references to _constrained
ILCompiler.Compiler (17)
IL\ILImporter.Scanner.cs (17)
624
if (
_constrained
!= null)
632
TypeDesc constrained =
_constrained
;
674
AddBoxingDependencies(
_constrained
, reason);
698
if (
_constrained
!= null && (!resolvedConstraint || forceUseRuntimeLookup))
727
TypeDesc constraintForDelegate = !resolvedConstraint || forceUseRuntimeLookup ?
_constrained
: null;
740
var constrainedCallInfo = new ConstrainedCallInfo(
_constrained
, runtimeDeterminedMethod);
749
if (
_constrained
.IsRuntimeDeterminedType)
750
targetOfLookup = _compilation.TypeSystemContext.GetMethodForRuntimeDeterminedType(targetMethod.GetTypicalMethodDefinition(), (RuntimeDeterminedType)
_constrained
);
751
else if (
_constrained
.HasInstantiation)
752
targetOfLookup = _compilation.TypeSystemContext.GetMethodForInstantiatedType(targetMethod.GetTypicalMethodDefinition(), (InstantiatedType)
_constrained
);
840
if (
_constrained
.IsRuntimeDeterminedSubtype)
841
_dependencies.Add(GetGenericLookupHelper(ReadyToRunHelperId.TypeHandle,
_constrained
), reason);
843
_dependencies.Add(_factory.ConstructedTypeSymbol(
_constrained
), reason);
877
Debug.Assert(targetMethod.OwningType.IsInterface && targetMethod.IsVirtual &&
_constrained
!= null);
886
Debug.Assert(targetMethod.OwningType.IsInterface && targetMethod.IsVirtual &&
_constrained
!= null);
888
var constrainedCallInfo = new ConstrainedCallInfo(
_constrained
, runtimeDeterminedMethod);
894
ThrowHelper.ThrowTypeLoadException(
_constrained
);