mirror of
https://github.com/NixOS/nix
synced 2025-06-25 14:51:16 +02:00
Merge VarRef into ExprVar
This commit is contained in:
parent
176c666f36
commit
221a2daf34
4 changed files with 8 additions and 21 deletions
|
@ -38,7 +38,7 @@ void ExprPath::show(std::ostream & str)
|
|||
|
||||
void ExprVar::show(std::ostream & str)
|
||||
{
|
||||
str << info.name;
|
||||
str << name;
|
||||
}
|
||||
|
||||
void ExprSelect::show(std::ostream & str)
|
||||
|
@ -174,7 +174,7 @@ void ExprPath::bindVars(const StaticEnv & env)
|
|||
{
|
||||
}
|
||||
|
||||
void VarRef::bind(const StaticEnv & env)
|
||||
void ExprVar::bindVars(const StaticEnv & env)
|
||||
{
|
||||
/* Check whether the variable appears in the environment. If so,
|
||||
set its level and displacement. */
|
||||
|
@ -204,11 +204,6 @@ void VarRef::bind(const StaticEnv & env)
|
|||
this->level = withLevel;
|
||||
}
|
||||
|
||||
void ExprVar::bindVars(const StaticEnv & env)
|
||||
{
|
||||
info.bind(env);
|
||||
}
|
||||
|
||||
void ExprSelect::bindVars(const StaticEnv & env)
|
||||
{
|
||||
e->bindVars(env);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue