review comments

This commit is contained in:
Clément Fournier 2024-04-21 12:16:26 +02:00
parent c4826668c9
commit 06eb7ead5a
No known key found for this signature in database
GPG Key ID: 91A544D7F05BBCBB

View File

@ -49,13 +49,7 @@ public class AntlrToken implements GenericToken<AntlrToken> {
*/
@Deprecated
public AntlrToken(final Token token, final AntlrToken previousComment, TextDocument textDoc) {
this.previousComment = previousComment;
this.textDoc = textDoc;
this.image = token.getText();
this.startOffset = token.getStartIndex();
this.endOffset = token.getStopIndex() + 1; // exclusive
this.channel = token.getChannel();
this.kind = token.getType();
this(token, previousComment, textDoc, new AntlrLexerBehavior());
}
@Override