In RakuAST::Doc::DeclaratorTarget§

See primary documentation in context for method WHY

with $target.WHY {
    say "leading: $_.leading()";
    say "trailing: $_.trailing()";
}

Returns the RakuAST::Doc::Declarator object containing the declarator documentation, if any.

In Mu§

See primary documentation in context for method WHY

multi method WHY(Mu: --> Pod::Block::Declarator)

Returns the attached Pod::Block::Declarator.

For instance:

#| Initiate a specified spell normally 
sub cast(Spell $s{
  do-raw-magic($s);
}
#= (do not use for class 7 spells) 
say &cast.WHY;
# OUTPUT: «Initiate a specified spell normally␤(do not use for class 7 spells)␤» 

See Pod declarator blocks for details about attaching Pod to variables, classes, functions, methods, etc.

In role Metamodel::Documenting§

See primary documentation in context for method WHY

method WHY()

Returns the documentation for a type.