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:
@@ -75,7 +75,7 @@ impl<V: Visit<Out=()>> DefaultAccept<V> for AssignStmt {
|
||||
#[derive(Debug, Clone, PartialEq, Eq)]
|
||||
pub enum LhsExpr {
|
||||
SetAttr(AccessExpr),
|
||||
Local(String),
|
||||
Name(String),
|
||||
}
|
||||
|
||||
//
|
||||
@@ -94,7 +94,7 @@ impl<V: Visit<Out=()>> DefaultAccept<V> for LhsExpr {
|
||||
fn default_accept(&self, visitor: &mut V) -> V::Out {
|
||||
match self {
|
||||
LhsExpr::SetAttr(a) => a.accept(visitor),
|
||||
LhsExpr::Local(_) => {},
|
||||
LhsExpr::Name(_) => {},
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user