mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
ILazyParseableElementTypeBase.reuseCollapsedTokens javadoc
GitOrigin-RevId: a1fdbae7db3cddf873a083c2031838f254a93fcf
This commit is contained in:
committed by
intellij-monorepo-bot
parent
f7c259b7ec
commit
2515873511
@@ -34,6 +34,11 @@ public interface ILazyParseableElementTypeBase {
|
||||
*/
|
||||
ASTNode parseContents(@NotNull ASTNode chameleon);
|
||||
|
||||
/**
|
||||
* @return whether it's safe during lazy parsing to reuse tokens that were previously collapsed into a single token of this
|
||||
* type via {@link com.intellij.lang.PsiBuilder.Marker#collapse}. This can increase lazy-parsing speed
|
||||
* (by not having to run the lexer again), but requires additional memory to store the tokens.
|
||||
*/
|
||||
default boolean reuseCollapsedTokens() {
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user