Skip to content

Commit

Permalink
Merge pull request #21 from moosetechnology/bug-comments-in-stmt-blocks
Browse files Browse the repository at this point in the history
Generalizing use of #visitBody: to correct a problem with comments in…
  • Loading branch information
NicolasAnquetil authored Aug 31, 2023
2 parents cfde400 + f5b02c5 commit 340f918
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 340f918

Please sign in to comment.