In RakuAST::Doc::Declarator§

See primary documentation in context for method leading

.say for $declarator.leading;

Returns the lines of the leading declarator documentation (one for each line with #| if the object was created from parsing Raku source code.

In Pod::Block::Declarator§

See primary documentation in context for method leading

method leading(--> Str)

Returns the leading Pod comment attached to the declarator