Skip to content

Commit 30ab35b

Browse files
committed
Set block name.
1 parent 51fa282 commit 30ab35b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/QAST/Compiler.nqp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -343,14 +343,15 @@ class QAST::Compiler is HLL::Compiler {
343343
$sub.push($stmts);
344344
$sub.push_pirop(".return (" ~ $stmts.result ~ ")");
345345

346-
# Set compilation unit ID and, if applicable, outer.
346+
# Set compilation unit ID, name and, if applicable, outer.
347347
$sub.subid($node.cuid);
348348
if nqp::istype($block.outer, BlockInfo) {
349349
$sub.pirflags(':anon :lex :outer(' ~ self.escape($block.outer.qast.cuid) ~ ')');
350350
}
351351
else {
352352
$sub.pirflags(':anon :lex');
353353
}
354+
$sub.name($node.name);
354355

355356
# Set loadlibs if applicable.
356357
my @loadlibs := $block.loadlibs();

0 commit comments

Comments
 (0)