Skip to content

Commit

Permalink
- implement some more methods that are needed CleanBlocks (found by r…
Browse files Browse the repository at this point in the history
…unning tests)
  • Loading branch information
MarcusDenker committed Jul 31, 2020
1 parent fc53a69 commit 3ed943c
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions src/Kernel/CleanBlockClosure.class.st
Expand Up @@ -15,6 +15,11 @@ Class {
#category : #'Kernel-Methods'
}

{ #category : #adding }
CleanBlockClosure >> addWithAllBlocksInto: collected [
^self compiledBlock addWithAllBlocksInto: collected
]

{ #category : #accessing }
CleanBlockClosure >> hasLiteral: aLiteral [
^self compiledBlock hasLiteral: aLiteral
Expand All @@ -35,6 +40,11 @@ CleanBlockClosure >> innerCompiledBlocksDo: aBlock [
^self compiledBlock innerCompiledBlocksDo: aBlock
]

{ #category : #testing }
CleanBlockClosure >> isClean [
^true
]

{ #category : #testing }
CleanBlockClosure >> isEmbeddedBlock [
^ true
Expand All @@ -50,12 +60,28 @@ CleanBlockClosure >> outerCode: aCompiledCode [
self compiledBlock outerCode: aCompiledCode
]

{ #category : #scanning }
CleanBlockClosure >> readsField: varIndex [
^self compiledBlock readsField: varIndex
]

{ #category : #accessing }
CleanBlockClosure >> refersToLiteral: aLiteral [
^self compiledBlock refersToLiteral: aLiteral
]

{ #category : #'debugger access' }
CleanBlockClosure >> sender [
" clean blocks do not know the sender"
^nil
]

{ #category : #accessing }
CleanBlockClosure >> sendsAnySelectorOf: aCollection [
^self compiledBlock sendsAnySelectorOf: aCollection
]

{ #category : #scanning }
CleanBlockClosure >> writesField: varIndex [
^self compiledBlock writesField: varIndex
]

0 comments on commit 3ed943c

Please sign in to comment.