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 51fa282 commit 30ab35bCopy full SHA for 30ab35b
src/QAST/Compiler.nqp
@@ -343,14 +343,15 @@ class QAST::Compiler is HLL::Compiler {
343
$sub.push($stmts);
344
$sub.push_pirop(".return (" ~ $stmts.result ~ ")");
345
346
- # Set compilation unit ID and, if applicable, outer.
+ # Set compilation unit ID, name and, if applicable, outer.
347
$sub.subid($node.cuid);
348
if nqp::istype($block.outer, BlockInfo) {
349
$sub.pirflags(':anon :lex :outer(' ~ self.escape($block.outer.qast.cuid) ~ ')');
350
}
351
else {
352
$sub.pirflags(':anon :lex');
353
354
+ $sub.name($node.name);
355
356
# Set loadlibs if applicable.
357
my @loadlibs := $block.loadlibs();
0 commit comments