2012-07-18 20:59:03 +02:00
|
|
|
#pragma once
|
2006-07-26 17:05:15 +02:00
|
|
|
|
2010-10-04 19:55:38 +02:00
|
|
|
#include "eval.hh"
|
|
|
|
|
2006-07-26 17:05:15 +02:00
|
|
|
#include <string>
|
|
|
|
#include <map>
|
|
|
|
|
2006-09-04 23:06:23 +02:00
|
|
|
namespace nix {
|
|
|
|
|
2019-04-08 14:20:58 +02:00
|
|
|
MakeError(AttrPathNotFound, Error);
|
2020-02-07 14:22:01 +01:00
|
|
|
MakeError(NoPositionInfo, Error);
|
2019-04-08 14:20:58 +02:00
|
|
|
|
2022-02-25 16:00:00 +01:00
|
|
|
std::pair<Value *, Pos> findAlongAttrPath(
|
|
|
|
EvalState & state,
|
|
|
|
const std::string & attrPath,
|
|
|
|
Bindings & autoArgs,
|
|
|
|
Value & vIn);
|
2006-07-26 17:05:15 +02:00
|
|
|
|
2019-10-28 21:22:38 +01:00
|
|
|
/* Heuristic to find the filename and lineno or a nix value. */
|
2021-07-19 18:07:17 +02:00
|
|
|
Pos findPackageFilename(EvalState & state, Value & v, std::string what);
|
2019-10-23 17:21:10 +02:00
|
|
|
|
2020-06-18 13:44:40 +02:00
|
|
|
std::vector<Symbol> parseAttrPath(EvalState & state, std::string_view s);
|
|
|
|
|
2006-09-04 23:06:23 +02:00
|
|
|
}
|