method invocant

Documentation for method invocant assembled from the following types:

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 rwBool :$is-named);
say $sig.params[0].invocant;                       # OUTPUT: «True␤» 
say $sig.params[1].invocant;                       # OUTPUT: «False␤»

class X::Method::InvalidQualifier

From X::Method::InvalidQualifier

(X::Method::InvalidQualifier) method invocant

Returns the invocant of the failed, qualified method call