Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Set block name.
  • Loading branch information
jnthn committed Jul 14, 2012
1 parent 51fa282 commit 30ab35b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/QAST/Compiler.nqp
Expand Up @@ -343,14 +343,15 @@ class QAST::Compiler is HLL::Compiler {
$sub.push($stmts);
$sub.push_pirop(".return (" ~ $stmts.result ~ ")");

# Set compilation unit ID and, if applicable, outer.
# Set compilation unit ID, name and, if applicable, outer.
$sub.subid($node.cuid);
if nqp::istype($block.outer, BlockInfo) {
$sub.pirflags(':anon :lex :outer(' ~ self.escape($block.outer.qast.cuid) ~ ')');
}
else {
$sub.pirflags(':anon :lex');
}
$sub.name($node.name);

# Set loadlibs if applicable.
my @loadlibs := $block.loadlibs();
Expand Down

0 comments on commit 30ab35b

Please sign in to comment.