/
ne1ghost
/
nix
Обзор
Документация
Войти
/
ne1ghost
/
nix
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
src/libexpr/attr-path.hh
27 строк
560 B
Robert Hensing
Merge remote-tracking branch 'upstream/master' into source-path
17 апр 2023, 12:41
17 апр 2023, 12:41
cb2615c
Код
Авторство
О чём код?
#pragma once ///@file #include "eval.hh" #include <string> #include <map> namespace nix { MakeError(AttrPathNotFound, Error); MakeError(NoPositionInfo, Error); std::pair<Value *, PosIdx> findAlongAttrPath( EvalState & state, const std::string & attrPath, Bindings & autoArgs, Value & vIn); /** * Heuristic to find the filename and lineno or a nix value. */ std::pair<SourcePath, uint32_t> findPackageFilename(EvalState & state, Value & v, std::string what); std::vector<Symbol> parseAttrPath(EvalState & state, std::string_view s); }