mirror of
https://github.com/NixOS/nix
synced 2025-06-29 02:11:15 +02:00
:d error
This commit is contained in:
parent
c151a9b426
commit
f317019edd
5 changed files with 86 additions and 17 deletions
|
@ -26,6 +26,7 @@ typedef void (* PrimOpFun) (EvalState & state, const Pos & pos, Value * * args,
|
|||
|
||||
extern std::function<void(const Error & error, const Env & env, const Expr & expr)> debuggerHook;
|
||||
void printStaticEnvBindings(const Expr &expr);
|
||||
void printStaticEnvBindings(const StaticEnv &se, int lvl = 0);
|
||||
|
||||
struct PrimOp
|
||||
{
|
||||
|
|
|
@ -21,6 +21,7 @@
|
|||
#include "nixexpr.hh"
|
||||
#include "eval.hh"
|
||||
#include "globals.hh"
|
||||
#include <iostream>
|
||||
|
||||
namespace nix {
|
||||
|
||||
|
@ -615,6 +616,10 @@ Expr * EvalState::parse(const char * text, FileOrigin origin,
|
|||
|
||||
if (res) throw ParseError(data.error.value());
|
||||
|
||||
std::cout << " data.result->bindVars(staticEnv); " << std::endl;
|
||||
|
||||
// printStaticEnvBindings(*staticEnv, 0);
|
||||
|
||||
data.result->bindVars(staticEnv);
|
||||
|
||||
return data.result;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue