File tree 1 file changed +5
-8
lines changed
1 file changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -36,13 +36,10 @@ TSCImporterVisitor >> ensureEntityExist: aFamixCEntity value: aString [
36
36
{ #category : ' visiting' }
37
37
TSCImporterVisitor >> extractSourceAnchor: aTSNode [
38
38
39
- | sourceAnchor |
40
- sourceAnchor := FamixCIndexedFileAnchor new
41
- startPos: aTSNode startByte;
42
- endPos: aTSNode endByte.
43
- fileName ifNotNil: [ sourceAnchor fileName: fileName ].
44
-
45
- ^ sourceAnchor
39
+ ^ FamixCIndexedFileAnchor new
40
+ startPos: aTSNode startByte;
41
+ endPos: aTSNode endByte;
42
+ fileName: fileName
46
43
]
47
44
48
45
{ #category : ' accessing' }
@@ -63,7 +60,7 @@ TSCImporterVisitor >> importFromString: aString [
63
60
| rootNode |
64
61
rootNode := (parser parseString: aString) rootNode.
65
62
sourceCode := aString.
66
- fileName := nil .
63
+ fileName := ' ** Not a file - Imported from string ** ' .
67
64
68
65
rootNode accept: self .
69
66
You can’t perform that action at this time.
0 commit comments