2 writes to _constrained
ILCompiler.Compiler (2)
IL\ILImporter.Scanner.cs (2)
312
_constrained
= null;
1419
_constrained
= (TypeDesc)_methodIL.GetObject(token);
17 references to _constrained
ILCompiler.Compiler (17)
IL\ILImporter.Scanner.cs (17)
731
if (
_constrained
!= null)
739
TypeDesc constrained =
_constrained
;
781
AddBoxingDependencies(
_constrained
, reason);
805
if (
_constrained
!= null && (!resolvedConstraint || forceUseRuntimeLookup))
834
TypeDesc constraintForDelegate = !resolvedConstraint || forceUseRuntimeLookup ?
_constrained
: null;
847
var constrainedCallInfo = new ConstrainedCallInfo(
_constrained
, runtimeDeterminedMethod);
856
if (
_constrained
.IsRuntimeDeterminedType)
857
targetOfLookup = _compilation.TypeSystemContext.GetMethodForRuntimeDeterminedType(targetMethod.GetTypicalMethodDefinition(), (RuntimeDeterminedType)
_constrained
);
858
else if (
_constrained
.HasInstantiation)
859
targetOfLookup = _compilation.TypeSystemContext.GetMethodForInstantiatedType(targetMethod.GetTypicalMethodDefinition(), (InstantiatedType)
_constrained
);
947
if (
_constrained
.IsRuntimeDeterminedSubtype)
948
_dependencies.Add(GetGenericLookupHelper(ReadyToRunHelperId.TypeHandle,
_constrained
), reason);
950
_dependencies.Add(_factory.ConstructedTypeSymbol(
_constrained
), reason);
984
Debug.Assert(targetMethod.OwningType.IsInterface && targetMethod.IsVirtual &&
_constrained
!= null);
993
Debug.Assert(targetMethod.OwningType.IsInterface && targetMethod.IsVirtual &&
_constrained
!= null);
995
var constrainedCallInfo = new ConstrainedCallInfo(
_constrained
, runtimeDeterminedMethod);
1001
ThrowHelper.ThrowTypeLoadException(
_constrained
);