ILazyParseableElementTypeBase.reuseCollapsedTokens javadoc

GitOrigin-RevId: a1fdbae7db3cddf873a083c2031838f254a93fcf
This commit is contained in:
Peter Gromov
2020-06-08 07:04:41 +00:00
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;
}