[core] Deprecate AntlrToken#getType() in favor of #getKind()

Refs #2371
This commit is contained in:
Andreas Dangel
2020-04-10 18:50:58 +02:00
parent c7941638e8
commit 0710877d05
6 changed files with 19 additions and 10 deletions

View File

@ -50,7 +50,7 @@ public class KotlinTokenizer extends AntlrTokenizer {
}
private void skipPackageAndImport(final AntlrToken currentToken) {
final int type = currentToken.getType();
final int type = currentToken.getKind();
if (type == Kotlin.PACKAGE || type == Kotlin.IMPORT) {
discardingPackageAndImport = true;
} else if (discardingPackageAndImport && (type == Kotlin.SEMICOLON || type == Kotlin.NL)) {
@ -59,7 +59,7 @@ public class KotlinTokenizer extends AntlrTokenizer {
}
private void skipNewLines(final AntlrToken currentToken) {
discardingNL = currentToken.getType() == Kotlin.NL;
discardingNL = currentToken.getKind() == Kotlin.NL;
}
@Override