In X::Declaration::Scope§

See primary documentation in context for method scope

method scope(--> Str:D)

Returns a string representation of the scope, usually the same keyword that is used for the declaration ("my", "our", "has", ...);

In X::Syntax::Variable::Twigil§

See primary documentation in context for method scope

method scope(--> Str:D)

Returns the scope that did not harmonize with the twigil.