mirror of
https://github.com/NixOS/nix
synced 2025-06-28 17:51:15 +02:00
Add :doc support for __functor
This commit is contained in:
parent
6068e32aa7
commit
72a4d1f52d
5 changed files with 232 additions and 0 deletions
|
@ -640,6 +640,12 @@ public:
|
|||
const char * doc;
|
||||
};
|
||||
|
||||
/**
|
||||
* Retrieve the documentation for a value. This will evaluate the value if
|
||||
* it is a thunk, and it will partially apply __functor if applicable.
|
||||
*
|
||||
* @param v The value to get the documentation for.
|
||||
*/
|
||||
std::optional<Doc> getDoc(Value & v);
|
||||
|
||||
private:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue