Merge branch 'pr-2225'

[core] CPD: report endLine / column informations for found duplications
This commit is contained in:
Andreas Dangel
2020-01-17 14:59:02 +01:00
20 changed files with 219 additions and 16 deletions

View File

@ -27,7 +27,8 @@ public class EcmascriptTokenizer extends JavaCCTokenizer {
@Override
protected TokenEntry processToken(Tokens tokenEntries, GenericToken currentToken, String filename) {
return new TokenEntry(getTokenImage(currentToken), filename, currentToken.getBeginLine());
return new TokenEntry(getTokenImage(currentToken), filename, currentToken.getBeginLine(),
currentToken.getBeginColumn(), currentToken.getEndColumn());
}
private String getTokenImage(GenericToken token) {