Skip to content

Commit

Permalink
isFaulty implementations should use anySatisfy: with a block, not a s…
Browse files Browse the repository at this point in the history
…ymbol
  • Loading branch information
MarcusDenker committed Jul 29, 2020
1 parent 3c6824c commit 3545ce5
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/AST-Core/RBArrayNode.class.st
Expand Up @@ -154,7 +154,7 @@ RBArrayNode >> isDynamicArray [

{ #category : #testing }
RBArrayNode >> isFaulty [
^self statements anySatisfy: #isFaulty
^self statements anySatisfy: [:each | each isFaulty]
]

{ #category : #testing }
Expand Down
2 changes: 1 addition & 1 deletion src/AST-Core/RBBlockNode.class.st
Expand Up @@ -228,7 +228,7 @@ RBBlockNode >> isBlock [

{ #category : #testing }
RBBlockNode >> isFaulty [
^(self arguments anySatisfy: #isFaulty ) or: [ self body isFaulty]
^(self arguments anySatisfy: [:each | each isFaulty] ) or: [ self body isFaulty]
]

{ #category : #testing }
Expand Down
2 changes: 1 addition & 1 deletion src/AST-Core/RBCascadeNode.class.st
Expand Up @@ -93,7 +93,7 @@ RBCascadeNode >> isCascade [

{ #category : #testing }
RBCascadeNode >> isFaulty [
^self messages anySatisfy: #isFaulty
^self messages anySatisfy: [:each | each isFaulty]
]

{ #category : #accessing }
Expand Down
2 changes: 1 addition & 1 deletion src/AST-Core/RBLiteralArrayNode.class.st
Expand Up @@ -90,7 +90,7 @@ RBLiteralArrayNode >> equalTo: anObject withMapping: aDictionary [

{ #category : #testing }
RBLiteralArrayNode >> isFaulty [
^self contents anySatisfy: #isFaulty
^self contents anySatisfy: [:each | each isFaulty]
]

{ #category : #testing }
Expand Down
2 changes: 1 addition & 1 deletion src/AST-Core/RBMessageNode.class.st
Expand Up @@ -160,7 +160,7 @@ RBMessageNode >> isContainmentReplacement: aNode [

{ #category : #testing }
RBMessageNode >> isFaulty [
^self receiver isFaulty or: [self arguments anySatisfy: #isFaulty]
^self receiver isFaulty or: [self arguments anySatisfy: [:each | each isFaulty]]
]

{ #category : #testing }
Expand Down
4 changes: 2 additions & 2 deletions src/AST-Core/RBMethodNode.class.st
Expand Up @@ -377,8 +377,8 @@ RBMethodNode >> initialize [

{ #category : #testing }
RBMethodNode >> isFaulty [
(self arguments anySatisfy: #isFaulty) ifTrue:[ ^true].
(self pragmas anySatisfy: #isFaulty) ifTrue:[ ^true].
(self arguments anySatisfy: [:each | each isFaulty]) ifTrue:[ ^true].
(self pragmas anySatisfy: [:each | each isFaulty]) ifTrue:[ ^true].
^self body isFaulty
]

Expand Down
2 changes: 1 addition & 1 deletion src/AST-Core/RBPragmaNode.class.st
Expand Up @@ -127,7 +127,7 @@ RBPragmaNode >> isBinary [

{ #category : #testing }
RBPragmaNode >> isFaulty [
^self arguments anySatisfy: #isFaulty
^self arguments anySatisfy: [:each | each isFaulty]
]

{ #category : #testing }
Expand Down
2 changes: 1 addition & 1 deletion src/AST-Core/RBSequenceNode.class.st
Expand Up @@ -304,7 +304,7 @@ RBSequenceNode >> initialize [

{ #category : #testing }
RBSequenceNode >> isFaulty [
^self statements anySatisfy: #isFaulty
^self statements anySatisfy: [:each | each isFaulty]
]

{ #category : #testing }
Expand Down

0 comments on commit 3545ce5

Please sign in to comment.