mirror of
https://github.com/NixOS/nix.git
synced 2025-11-10 12:36:01 +01:00
parser.y: abstract new into a function on Exprs
so it can easily be swapped out for other implementations
This commit is contained in:
parent
62729ff472
commit
687dd38998
4 changed files with 111 additions and 75 deletions
|
|
@ -3216,8 +3216,8 @@ Expr * EvalState::parse(
|
|||
docComments = &it->second;
|
||||
}
|
||||
|
||||
auto result = parseExprFromBuf(
|
||||
text, length, origin, basePath, mem.exprs, symbols, settings, positions, *docComments, rootFS);
|
||||
auto result =
|
||||
parseExprFromBuf(text, length, origin, basePath, mem.exprs, symbols, settings, positions, *docComments, rootFS);
|
||||
|
||||
result->bindVars(*this, staticEnv);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue