2 writes to _constrained
ILCompiler.Compiler (2)
IL\ILImporter.Scanner.cs (2)
293
_constrained
= null;
1210
_constrained
= (TypeDesc)_methodIL.GetObject(token);
17 references to _constrained
ILCompiler.Compiler (17)
IL\ILImporter.Scanner.cs (17)
615
if (
_constrained
!= null)
623
TypeDesc constrained =
_constrained
;
665
AddBoxingDependencies(
_constrained
, reason);
689
if (
_constrained
!= null && (!resolvedConstraint || forceUseRuntimeLookup))
718
TypeDesc constraintForDelegate = !resolvedConstraint || forceUseRuntimeLookup ?
_constrained
: null;
731
var constrainedCallInfo = new ConstrainedCallInfo(
_constrained
, runtimeDeterminedMethod);
740
if (
_constrained
.IsRuntimeDeterminedType)
741
targetOfLookup = _compilation.TypeSystemContext.GetMethodForRuntimeDeterminedType(targetMethod.GetTypicalMethodDefinition(), (RuntimeDeterminedType)
_constrained
);
742
else if (
_constrained
.HasInstantiation)
743
targetOfLookup = _compilation.TypeSystemContext.GetMethodForInstantiatedType(targetMethod.GetTypicalMethodDefinition(), (InstantiatedType)
_constrained
);
831
if (
_constrained
.IsRuntimeDeterminedSubtype)
832
_dependencies.Add(GetGenericLookupHelper(ReadyToRunHelperId.TypeHandle,
_constrained
), reason);
834
_dependencies.Add(_factory.ConstructedTypeSymbol(
_constrained
), reason);
868
Debug.Assert(targetMethod.OwningType.IsInterface && targetMethod.IsVirtual &&
_constrained
!= null);
877
Debug.Assert(targetMethod.OwningType.IsInterface && targetMethod.IsVirtual &&
_constrained
!= null);
879
var constrainedCallInfo = new ConstrainedCallInfo(
_constrained
, runtimeDeterminedMethod);
885
ThrowHelper.ThrowTypeLoadException(
_constrained
);