1
1
Fork 0
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:
Taeer Bar-Yam 2025-11-04 15:46:47 +01:00
parent 62729ff472
commit 687dd38998
4 changed files with 111 additions and 75 deletions

View file

@ -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);