Skip to content

Commit abb079e

Browse files
committed
Adapt comment treatment for Moose13
1 parent 97f0d37 commit abb079e

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/Famix-Diff-Core/FamixTComment.extension.st

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,10 @@ FamixTComment >> moveMatch: otherEntity resolver: resolver [
3535
FamixTComment >> renameMatch: otherEntity resolver: resolver [
3636
"we consider a 'RenameMatch' between 2 comments if there is 'not too much' differences in their texts"
3737

38-
((otherEntity usesFamixTrait: FamixTComment) and:
39-
[ self content ~= otherEntity content ])
40-
ifFalse: [ ^ false ].
38+
((otherEntity usesFamixTrait: FamixTComment) and: [ self sourceText ~= otherEntity sourceText ]) ifFalse: [ ^ false ].
4139

4240
"See comment in #identityMatch:resolver: to understand what we are doing here"
43-
^self isRenameOf: otherEntity resolver: resolver
41+
^ self isRenameOf: otherEntity resolver: resolver
4442
]
4543

4644
{ #category : #'*Famix-Diff-Core' }

0 commit comments

Comments
 (0)