Skip to content

Commit

Permalink
RBMethod's compilationContext variable do not offer getClass anymore.
Browse files Browse the repository at this point in the history
We modify the senders of ``compilationContext getClass`` by ``self methodClass. ``
  • Loading branch information
sbragagnolo committed Jul 17, 2023
1 parent 6e5007f commit cc3bab9
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ RBMethodNode >> asTranslationMethodOfClass: aTMethodClass [

^aTMethodClass new
setSelector: selector
definingClass: compilationContext getClass
definingClass: self methodClass
args: arguments
locals: ((self allDefinedVariables copyWithoutAll: (arguments collect: #name)) collect: [:string| string -> string])
block: (body lastIsReturn
Expand Down Expand Up @@ -56,7 +56,7 @@ RBMethodNode >> asTranslationMethodOfClass: aTMethodClass forCodeGenerator: aCod

^aTMethodClass new
setSelector: selector
definingClass: compilationContext getClass
definingClass: self methodClass
args: arguments
locals: ((self allDefinedVariables copyWithoutAll: (arguments collect: #name)) collect: [:string| string -> string])
block: (body lastIsReturn
Expand Down

0 comments on commit cc3bab9

Please sign in to comment.