mirror of
https://github.com/NixOS/nix
synced 2025-06-26 11:41:15 +02:00
Add getDoc() function
This commit is contained in:
parent
2a2121d264
commit
f53b5f1058
3 changed files with 42 additions and 13 deletions
|
@ -248,6 +248,17 @@ public:
|
|||
|
||||
Value & getBuiltin(const string & name);
|
||||
|
||||
struct Doc
|
||||
{
|
||||
Pos pos;
|
||||
std::optional<Symbol> name;
|
||||
size_t arity;
|
||||
std::vector<std::string> args;
|
||||
const char * doc;
|
||||
};
|
||||
|
||||
std::optional<Doc> getDoc(Value & v);
|
||||
|
||||
private:
|
||||
|
||||
inline Value * lookupVar(Env * env, const ExprVar & var, bool noEval);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue