Skip to content

Commit fffbb47

Browse files
author
anquetil
committed
Adapted FamixF77Comment creation to new TComment + adapted test
1 parent cee8573 commit fffbb47

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

src/EsopeImporter-Tests/IASTToFamixVisitorTest.class.st

+2-2
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ IASTToFamixVisitorTest >> testComment [
202202
programFile body: { IASTMainProgram new
203203
entityName: 'main';
204204
body: { IASTComment new
205-
text: 'a normal comment';
205+
text: 'a normal comment' ;
206206
yourself. };
207207
yourself }.
208208

@@ -213,7 +213,7 @@ IASTToFamixVisitorTest >> testComment [
213213

214214
comment := entity programUnits first comments first.
215215
self assert: comment class equals: FamixF77Comment.
216-
self assert: comment content equals: 'a normal comment'.
216+
self assert: comment sourceText equals: 'a normal comment'.
217217
self deny: comment isEsope.
218218

219219
self assert: comment commentedEntity equals: entity programUnits first.

src/EsopeImporter/IASTToFamixFortranVisitor.class.st

+1-2
Original file line numberDiff line numberDiff line change
@@ -114,9 +114,8 @@ IASTToFamixFortranVisitor >> visitIASTBlockData: aBlockData [
114114
IASTToFamixFortranVisitor >> visitIASTComment: aComment [
115115

116116
^(self newEntity: FamixF77Comment)
117-
content: aComment text ;
118117
commentedEntity: stack top ;
119-
sourceAnchor: (self visitIndexedFileAnchor: aComment sourceAnchor) ;
118+
sourceAnchor: (FamixF77SourceTextAnchor new source: aComment text) ;
120119
isEsope: aComment isEsope ;
121120
yourself
122121
]

0 commit comments

Comments
 (0)