Documentation for method invocant assembled from the following pages:

Class: X::Method::InvalidQualifier §

From X::Method::InvalidQualifier

(X::Method::InvalidQualifier) method invocant §

Returns the invocant of the failed, qualified method call

Class: Parameter §

From Parameter

(Parameter) method invocant §

Defined as:

method invocant(Parameter:D: --> Bool:D)

Returns True if the parameter is the invocant parameter.

my Signature $sig = :($i : Str $x is rw, Bool :$is-named);
say $sig.params[0].invocant; # OUTPUT: «True␤» say $sig.params[1].invocant; # OUTPUT: «False␤»