3 instantiations of BodySubstitution
ILCompiler.Compiler (3)
Compiler\BodySubstitution.cs (3)
17public static readonly BodySubstitution ThrowingBody = new BodySubstitution(Throw); 18public static readonly BodySubstitution EmptyBody = new BodySubstitution(null); 31public static BodySubstitution Create(object value) => new BodySubstitution(value);
20 references to BodySubstitution
ILCompiler.Compiler (20)
Compiler\BodySubstitution.cs (3)
17public static readonly BodySubstitution ThrowingBody = new BodySubstitution(Throw); 18public static readonly BodySubstitution EmptyBody = new BodySubstitution(null); 31public static BodySubstitution Create(object value) => new BodySubstitution(value);
Compiler\BodySubstitutionParser.cs (10)
21private readonly Dictionary<MethodDesc, BodySubstitution> _methodSubstitutions; 28_methodSubstitutions = new Dictionary<MethodDesc, BodySubstitution>(); 35_methodSubstitutions = new Dictionary<MethodDesc, BodySubstitution>(); 73_methodSubstitutions.Add(method, BodySubstitution.ThrowingBody); 76BodySubstitution stubBody = null; 78stubBody = BodySubstitution.EmptyBody; 83stubBody = BodySubstitution.Create(substitution); 207private Dictionary<MethodDesc, BodySubstitution> _bodySubstitutions; 210public IReadOnlyDictionary<MethodDesc, BodySubstitution> BodySubstitutions => _bodySubstitutions; 213public BodyAndFieldSubstitutions(Dictionary<MethodDesc, BodySubstitution> bodySubstitutions, Dictionary<FieldDesc, object> fieldSubstitutions)
Compiler\SubstitutedILProvider.cs (3)
41BodySubstitution substitution = _substitutionProvider.GetSubstitution(method); 750BodySubstitution substitution = _substitutionProvider.GetSubstitution(callee); 813BodySubstitution substitution = _substitutionProvider.GetSubstitution(method);
Compiler\SubstitutionProvider.cs (4)
30public BodySubstitution GetSubstitution(MethodDesc method) 35if (info.BodySubstitutions != null && info.BodySubstitutions.TryGetValue(ecmaMethod, out BodySubstitution result)) 39return BodySubstitution.Create(value ? 1 : 0); 178public IReadOnlyDictionary<MethodDesc, BodySubstitution> BodySubstitutions { get; }