mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
no parser error => no logging => no string creation of parsed buffer during indexing
This commit is contained in:
@@ -1075,7 +1075,9 @@ public class PsiBuilderImpl extends UserDataHolderBase implements PsiBuilder, AS
|
||||
markTokenTypeChecked();
|
||||
balanceWhiteSpaces();
|
||||
|
||||
LOG.assertTrue(!myProduction.isEmpty(), "Parser produced no markers. Text:\n" + myText);
|
||||
if (myProduction.isEmpty()) {
|
||||
LOG.error("Parser produced no markers. Text:\n" + myText);
|
||||
}
|
||||
|
||||
final StartMarker rootMarker = (StartMarker)myProduction.get(0);
|
||||
rootMarker.myParent = rootMarker.myFirstChild = rootMarker.myLastChild = rootMarker.myNext = null;
|
||||
|
||||
Reference in New Issue
Block a user