2 writes to _constrained
ILCompiler.Compiler (2)
IL\ILImporter.Scanner.cs (2)
313
_constrained
= null;
1422
_constrained
= (TypeDesc)_methodIL.GetObject(token);
17 references to _constrained
ILCompiler.Compiler (17)
IL\ILImporter.Scanner.cs (17)
732
if (
_constrained
!= null)
740
TypeDesc constrained =
_constrained
;
782
AddBoxingDependencies(
_constrained
, reason);
806
if (
_constrained
!= null && (!resolvedConstraint || forceUseRuntimeLookup))
835
TypeDesc constraintForDelegate = !resolvedConstraint || forceUseRuntimeLookup ?
_constrained
: null;
848
var constrainedCallInfo = new ConstrainedCallInfo(
_constrained
, runtimeDeterminedMethod);
857
if (
_constrained
.IsRuntimeDeterminedType)
858
targetOfLookup = _compilation.TypeSystemContext.GetMethodForRuntimeDeterminedType(targetMethod.GetTypicalMethodDefinition(), (RuntimeDeterminedType)
_constrained
);
859
else if (
_constrained
.HasInstantiation)
860
targetOfLookup = _compilation.TypeSystemContext.GetMethodForInstantiatedType(targetMethod.GetTypicalMethodDefinition(), (InstantiatedType)
_constrained
);
948
if (
_constrained
.IsRuntimeDeterminedSubtype)
949
_dependencies.Add(GetGenericLookupHelper(ReadyToRunHelperId.TypeHandle,
_constrained
), reason);
951
_dependencies.Add(_factory.ConstructedTypeSymbol(
_constrained
), reason);
985
Debug.Assert(targetMethod.OwningType.IsInterface && targetMethod.IsVirtual &&
_constrained
!= null);
994
Debug.Assert(targetMethod.OwningType.IsInterface && targetMethod.IsVirtual &&
_constrained
!= null);
996
var constrainedCallInfo = new ConstrainedCallInfo(
_constrained
, runtimeDeterminedMethod);
1002
ThrowHelper.ThrowTypeLoadException(
_constrained
);