Skip to content

Commit 24fb046

Browse files
committed
Somewhat fix self, attribute access.
1 parent e8e11ea commit 24fb046

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/NQPQ/Actions.pm

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -551,8 +551,8 @@ class NQP::Actions is HLL::Actions {
551551
}
552552
$past := QAST::Var.new(
553553
:name($name), :scope('attribute'),
554-
:viviself( vivitype( $<sigil> ) ),
555-
PAST::Op.new( :pirop('nqp_decontainerize PP'), QAST::Var.new( :name('self') ) ),
554+
QAST::VM.new( :pirop('nqp_decontainerize PP'),
555+
QAST::Var.new( :name('self'), :scope('lexical') ) ),
556556
$ch
557557
);
558558

@@ -567,7 +567,7 @@ class NQP::Actions is HLL::Actions {
567567
}
568568
if nqp::defined($attr) {
569569
if nqp::can($attr, 'type') {
570-
$past.type($attr.type);
570+
$past.returns($attr.type);
571571
}
572572
}
573573
else {
@@ -1198,8 +1198,8 @@ class NQP::Actions is HLL::Actions {
11981198
## Terms
11991199

12001200
method term:sym<self>($/) {
1201-
make PAST::Op.new( :pirop('nqp_decontainerize PP'),
1202-
QAST::Var.new( :name('self') ) );
1201+
make QAST::VM.new( :pirop('nqp_decontainerize PP'),
1202+
QAST::Var.new( :name('self'), :scope('lexical') ) );
12031203
}
12041204

12051205
method term:sym<identifier>($/) {

0 commit comments

Comments
 (0)