File tree 2 files changed +7
-8
lines changed
2 files changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -202,7 +202,7 @@ IASTToFamixVisitorTest >> testComment [
202
202
programFile body: { IASTMainProgram new
203
203
entityName: ' main' ;
204
204
body: { IASTComment new
205
- text: ' a normal comment' ;
205
+ text: ' a normal comment' ;
206
206
yourself . };
207
207
yourself }.
208
208
@@ -213,7 +213,7 @@ IASTToFamixVisitorTest >> testComment [
213
213
214
214
comment := entity programUnits first comments first.
215
215
self assert: comment class equals: FamixF77Comment .
216
- self assert: comment content equals: ' a normal comment' .
216
+ self assert: comment sourceText equals: ' a normal comment' .
217
217
self deny: comment isEsope.
218
218
219
219
self assert: comment commentedEntity equals: entity programUnits first.
Original file line number Diff line number Diff line change @@ -114,9 +114,8 @@ IASTToFamixFortranVisitor >> visitIASTBlockData: aBlockData [
114
114
IASTToFamixFortranVisitor >> visitIASTComment: aComment [
115
115
116
116
^ (self newEntity: FamixF77Comment )
117
- content: aComment text ;
118
117
commentedEntity: stack top ;
119
- sourceAnchor: (self visitIndexedFileAnchor : aComment sourceAnchor ) ;
118
+ sourceAnchor: (FamixF77SourceTextAnchor new source : aComment text ) ;
120
119
isEsope: aComment isEsope ;
121
120
yourself
122
121
]
@@ -256,11 +255,11 @@ IASTToFamixFortranVisitor >> visitIASTProgramFile: aProgramFile [
256
255
257
256
stack push: progFile.
258
257
259
- aProgramFile body do: [ :child || famixComment |
260
- famixComment := child accept: self .
258
+ aProgramFile body do: [ :child || famixEntity |
259
+ famixEntity := child accept: self .
261
260
child isComment
262
- ifTrue: [ famixComment commentedEntity: progFile ]
263
- ifFalse: [ progFile addProgramUnit: famixComment ]
261
+ ifTrue: [ famixEntity commentedEntity: progFile ]
262
+ ifFalse: [ progFile addProgramUnit: famixEntity ]
264
263
].
265
264
266
265
stack pop.
You can’t perform that action at this time.
0 commit comments