Rename `a2me` to `entry` (or `method` in one case where it lets me simplify a struct declaration)

This commit is contained in:
David Wendt 2020-07-18 17:02:32 -04:00
parent c415190376
commit 262bb148f1
2 changed files with 4 additions and 4 deletions

View File

@ -64,10 +64,10 @@ impl<'gc> Executable<'gc> {
) -> Self {
match method {
Method::Native(nf) => Self::Native(nf, reciever),
Method::Entry(a2me) => Self::Action(Gc::allocate(
Method::Entry(method) => Self::Action(Gc::allocate(
mc,
BytecodeExecutable {
method: a2me,
method,
scope,
reciever,
},

View File

@ -134,7 +134,7 @@ unsafe impl<'gc> Collect for Method<'gc> {
fn trace(&self, cc: CollectionContext) {
match self {
Method::Native(_nf) => {}
Method::Entry(a2me) => a2me.trace(cc),
Method::Entry(entry) => entry.trace(cc),
}
}
}
@ -146,7 +146,7 @@ impl<'gc> fmt::Debug for Method<'gc> {
.debug_tuple("Method::Native")
.field(&"<native code>".to_string())
.finish(),
Method::Entry(a2me) => f.debug_tuple("Method::Entry").field(a2me).finish(),
Method::Entry(entry) => f.debug_tuple("Method::Entry").field(entry).finish(),
}
}
}