mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Do not advance PSI builder beyond end of token stream
This commit is contained in:
@@ -476,6 +476,8 @@ public class PsiBuilderImpl extends UserDataHolderBase implements PsiBuilder {
|
||||
}
|
||||
|
||||
public void advanceLexer() {
|
||||
if (eof()) return;
|
||||
|
||||
if (!myTokenTypeChecked) {
|
||||
LOG.assertTrue(eof(), "Probably a bug: eating token without its type checking");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user