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:
@@ -1,4 +1,4 @@
|
||||
use crate::{obj::{names::*, prelude::*}, vm::{inst::Inst, Vm}};
|
||||
use crate::{obj::{reserved::*, prelude::*}, vm::{inst::Inst, Vm}};
|
||||
use once_cell::sync::Lazy;
|
||||
use shredder::{GcSafeWrapper, Scan};
|
||||
use std::fmt::{Debug, Formatter, self};
|
||||
@@ -44,7 +44,7 @@ pub struct UserFun {
|
||||
code: Vec<Inst>,
|
||||
// Safe because this is just an interner that points to symbols, which aren't GC'd
|
||||
#[shredder(unsafe_skip)]
|
||||
locals: Locals,
|
||||
locals: Names,
|
||||
}
|
||||
|
||||
impl UserFun {
|
||||
@@ -52,7 +52,7 @@ impl UserFun {
|
||||
&self.code
|
||||
}
|
||||
|
||||
pub fn locals(&self) -> &Locals {
|
||||
pub fn locals(&self) -> &Names {
|
||||
&self.locals
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user