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