In Pod::Block::Declarator§

See primary documentation in context for method leading.

method leading(Pod::Block::Declarator:D:)

Returns the leading Pod comment attached to the declarator

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.