mirror of
https://github.com/NixOS/nix
synced 2025-06-25 23:11: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
|
@ -107,7 +107,7 @@ struct ExprPath : Expr
|
|||
Value * maybeThunk(EvalState & state, Env & env);
|
||||
};
|
||||
|
||||
struct VarRef
|
||||
struct ExprVar : Expr
|
||||
{
|
||||
Symbol name;
|
||||
|
||||
|
@ -124,15 +124,7 @@ struct VarRef
|
|||
unsigned int level;
|
||||
unsigned int displ;
|
||||
|
||||
VarRef() { };
|
||||
VarRef(const Symbol & name) : name(name) { };
|
||||
void bind(const StaticEnv & env);
|
||||
};
|
||||
|
||||
struct ExprVar : Expr
|
||||
{
|
||||
VarRef info;
|
||||
ExprVar(const Symbol & name) : info(name) { };
|
||||
ExprVar(const Symbol & name) : name(name) { };
|
||||
COMMON_METHODS
|
||||
Value * maybeThunk(EvalState & state, Env & env);
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue