Rename "Local" to "Name" when referring to variables during compilation
* Variables were previously named "Local"s because they described a local variable - however, this is kind of a misnomer because it handles globals as well. This has been changed pretty much everywhere when appropriate (hopefully). * Renamed obj/names.rs to obj/reserved.rs, freeing up the "names" module for the new Names handle * Renamed obj/locals.rs to obj/names.rs, see above Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
This commit is contained in:
@@ -26,20 +26,20 @@ unsafe impl GcSafe for FrameKind {}
|
||||
|
||||
#[derive(Scan, Debug, Clone)]
|
||||
pub struct Frame {
|
||||
locals: Locals,
|
||||
locals: Names,
|
||||
kind: FrameKind,
|
||||
}
|
||||
|
||||
impl Frame {
|
||||
pub fn new(locals: Locals, kind: FrameKind) -> Self {
|
||||
pub fn new(locals: Names, kind: FrameKind) -> Self {
|
||||
Self { locals, kind, }
|
||||
}
|
||||
|
||||
pub fn locals(&self) -> &Locals {
|
||||
pub fn locals(&self) -> &Names {
|
||||
&self.locals
|
||||
}
|
||||
|
||||
pub fn locals_mut(&mut self) -> &mut Locals {
|
||||
pub fn locals_mut(&mut self) -> &mut Names {
|
||||
&mut self.locals
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user