Skip to content

Commit

Permalink
Generalizing use of #visitBody: to correct a problem with comments in…
Browse files Browse the repository at this point in the history
… statement blocks
  • Loading branch information
anquetil committed Aug 31, 2023
1 parent cfde400 commit f5b02c5
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -154,8 +154,7 @@ FortranAbstractJsonVisitor >> visitBlock_data: aBlockDataNode [

{ #category : #'visiting statement' }
FortranAbstractJsonVisitor >> visitBlocks: aBlockList [
aBlockList ifNil: [ ^#() ].
^self visitJsonArray: aBlockList
^self visitBody: aBlockList
]

{ #category : #'visiting statement' }
Expand Down Expand Up @@ -1015,7 +1014,7 @@ FortranAbstractJsonVisitor >> visitTarget: aTargetNode [

{ #category : #'visiting statement' }
FortranAbstractJsonVisitor >> visitThenPart: aThenPartNode [
^self visitJsonElement: aThenPartNode
^self visitBody: aThenPartNode
]

{ #category : #'visiting statement' }
Expand Down

0 comments on commit f5b02c5

Please sign in to comment.