We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4d94829 commit e5a3ea2Copy full SHA for e5a3ea2
doc/Type/Match.pod
@@ -77,11 +77,18 @@ Returns the part of the original string following the match.
77
=head2 method make
78
79
method make(Match:D: Mu $ast)
80
+ sub make(Mu $ast)
81
82
Sets the AST to C<$ast>, and returns it.
83
84
This is just a little sugar for C<$/.made = $ast> which is a very common
85
operation in actions. C<$ast> may be anything that makes sense for the
86
use case. It's typically some tree node.
87
88
+The sub form operates on the current C<$/>, which can be a convenient shortcut:
89
+
90
+ method my-action ($/) {
91
+ make "foo: $/";
92
+ }
93
94
=end pod
0 commit comments