#include <nixexpr.hh>
Public Member Functions | |
operator bool () const | |
std::string | getInnerText (const PosTable &positions) const |
Public Attributes | |
PosIdx | begin |
PosIdx | end |
A documentation comment, in the sense of RFC 145
Note that this does not implement the following:
overlay -> overlay -> overlay
is the simplest way to understand composeExtensions
, but its implementation looks like f: g: final: prev: <...>
. The parameters final
and prev
are part of the overlay concept, while distracting from the function's purpose.
|
inline |
Whether the comment is set.
A DocComment
is small enough that it makes sense to pass by value, and therefore baking optionality into it is also useful, to avoiding the memory overhead of std::optional
.
PosIdx nix::DocComment::begin |
Start of the comment, including the opening, ie /
and **
.
PosIdx nix::DocComment::end |
Position right after the final asterisk and /
that terminate the comment.