about summary refs log tree commit diff
path: root/third_party/nix/src/libexpr/parser.hh
diff options
context:
space:
mode:
authorVincent Ambo <mail@tazj.in>2020-07-16T19·49+0100
committertazjin <mail@tazj.in>2020-07-16T19·53+0000
commite05eb201023a4bd12988c394a919fe6c71086c67 (patch)
tree7f2b0d51bf665631fa23a9d7219f480143f000b7 /third_party/nix/src/libexpr/parser.hh
parent5ae2a2b847f94e39932c7abd06662d990773649a (diff)
refactor(3p/nix/libexpr): Move EvalState:* implementations out of parser.y r/1323
Several definitions of functions declared in eval.hh were previously
implemented in parser.y, this moves them over to parser.cc.

While this still isn't a reasonable place to keep them, the long-term
fix is more likely to be that eval.hh needs to be split up.

Before we get to that point however, this already gives us the ability
to use tooling with this code.

Change-Id: If06fb655325fe281564047ffab0a0a640428a0ee
Reviewed-on: https://cl.tvl.fyi/c/depot/+/1219
Tested-by: BuildkiteCI
Reviewed-by: isomer <isomer@tvl.fyi>
Diffstat (limited to 'third_party/nix/src/libexpr/parser.hh')
-rw-r--r--third_party/nix/src/libexpr/parser.hh1
1 files changed, 1 insertions, 0 deletions
diff --git a/third_party/nix/src/libexpr/parser.hh b/third_party/nix/src/libexpr/parser.hh
index 3de8280bf5f0..7f4c360b1bfd 100644
--- a/third_party/nix/src/libexpr/parser.hh
+++ b/third_party/nix/src/libexpr/parser.hh
@@ -53,5 +53,6 @@ void addFormal(const Pos& pos, Formals* formals, const Formal& formal);
 Expr* stripIndentation(const Pos& pos, SymbolTable& symbols,
                        std::vector<Expr*>& es);
 
+Path resolveExprPath(Path path);
 
 }  // namespace nix