Skip to content

Commit

Permalink
Update Perl6::Actions to grab dynamic outer compilation via HLL::Actions
Browse files Browse the repository at this point in the history
instead of maintaining its own.
  • Loading branch information
pmichaud committed May 26, 2010
1 parent 39c38ca commit fd769c8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
2 changes: 1 addition & 1 deletion build/PARROT_REVISION
@@ -1 +1 @@
46991
47022
13 changes: 4 additions & 9 deletions src/Perl6/Actions.pm
Expand Up @@ -245,15 +245,10 @@ method newpad($/) {
}

method outerlex($/) {
my $outer_ctx := %*COMPILING<%?OPTIONS><outer_ctx>;
if pir::defined__IP($outer_ctx) {
my $block := @BLOCK[0];
my %lexinfo := Perl6::Compiler.get_lexinfo($outer_ctx);
for %lexinfo { $block.symbol($_.key, :scope<lexical>); }
my @ns := pir::getattribute__PPs($outer_ctx, 'current_namespace').get_name;
@ns.shift;
$block.namespace(@ns);
}
# Use SET_BLOCK_OUTER_CTX (inherited from HLL::Actions)
# to set dynamic outer lexical context and namespace details
# for the compilation unit.
self.SET_BLOCK_OUTER_CTX(@BLOCK[0]);
}

method finishpad($/) {
Expand Down

0 comments on commit fd769c8

Please sign in to comment.