mirror of
https://github.com/NixOS/nix
synced 2025-06-26 11:41:15 +02:00
:d env
This commit is contained in:
parent
2a66c120e6
commit
6801a423fc
2 changed files with 20 additions and 13 deletions
|
@ -691,10 +691,14 @@ std::optional<EvalState::Doc> EvalState::getDoc(Value & v)
|
|||
|
||||
void printStaticEnvBindings(const StaticEnv &se, int lvl)
|
||||
{
|
||||
std::cout << "Env level " << lvl << std::endl;
|
||||
|
||||
for (auto i = se.vars.begin(); i != se.vars.end(); ++i)
|
||||
{
|
||||
std::cout << lvl << i->first << std::endl;
|
||||
std::cout << i->first << " ";
|
||||
}
|
||||
std::cout << std::endl;
|
||||
std::cout << std::endl;
|
||||
|
||||
if (se.up) {
|
||||
printStaticEnvBindings(*se.up, ++lvl);
|
||||
|
@ -730,7 +734,6 @@ void mapStaticEnvBindings(const StaticEnv &se, const Env &env, valmap & vm)
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
valmap * mapStaticEnvBindings(const StaticEnv &se, const Env &env)
|
||||
{
|
||||
auto vm = new valmap();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue