lix/src/libexpr/attr-path.hh

22 lines
500 B
C++
Raw Normal View History

#pragma once
#include "eval.hh"
#include <string>
#include <map>
namespace nix {
MakeError(AttrPathNotFound, Error);
MakeError(NoPositionInfo, Error);
2020-02-07 13:08:24 +00:00
std::pair<Value *, Pos> findAlongAttrPath(EvalState & state, const string & attrPath,
Bindings & autoArgs, Value & vIn);
/* Heuristic to find the filename and lineno or a nix value. */
Pos findDerivationFilename(EvalState & state, Value & v, std::string what);
2020-04-20 11:13:52 +00:00
std::vector<Symbol> parseAttrPath(EvalState & state, std::string_view s);
}