use of org.sonar.duplications.DuplicationsException in project sonarqube by SonarSource.
the class TokenChunker method chunk.
public TokenQueue chunk(Reader reader) {
CodeReader code = new CodeReader(reader);
TokenQueue queue = new TokenQueue();
try {
channelDispatcher.consume(code, queue);
return queue;
} catch (Exception e) {
throw new DuplicationsException("Unable to lex source code at line : " + code.getLinePosition() + " and column : " + code.getColumnPosition(), e);
}
}
Aggregations