1
0
Fork 0
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:
Robert Hensing 2024-08-15 12:29:59 +02:00
parent 6068e32aa7
commit 72a4d1f52d
5 changed files with 232 additions and 0 deletions

View file

@ -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: