Skip to content

Commit

Permalink
improve #transformDoit
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcusDenker committed Nov 8, 2019
1 parent b579d0f commit eebae22
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/OpalCompiler-Core/OpalCompiler.class.st
Expand Up @@ -737,12 +737,11 @@ OpalCompiler >> source: aString [
{ #category : #'public access' }
OpalCompiler >> transformDoit [
"if we compile an expression, we wrap it in a method here"
self compilationContext noPattern ifFalse: [ ^self ].
self compilationContext noPattern ifFalse: [ ^ast ].
ast := context
ifNil: [ast asDoit]
ifNotNil: [ast asDoitForContext: context].
ast compilationContext: self compilationContext.
^ast
^ast compilationContext: self compilationContext
]

{ #category : #'old - deprecated' }
Expand Down

0 comments on commit eebae22

Please sign in to comment.