mirror of
https://github.com/NixOS/nix
synced 2025-07-02 13:31:48 +02:00
* After parsing, compute level/displacement pairs for each variable
use site, allowing environments to be stores as vectors of values rather than maps. This should speed up evaluation and reduce the number of allocations.
This commit is contained in:
parent
816dd3f061
commit
9985230c00
7 changed files with 258 additions and 143 deletions
|
@ -461,7 +461,8 @@ static Expr * parse(EvalState & state, const char * text,
|
|||
if (res) throw ParseError(data.error);
|
||||
|
||||
try {
|
||||
// !!! checkVarDefs(state.primOps, data.result);
|
||||
StaticEnv env(false, 0);
|
||||
data.result->bindVars(env);
|
||||
} catch (Error & e) {
|
||||
throw ParseError(format("%1%, in `%2%'") % e.msg() % path);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue