Expand description
Implementation of incremental re-parsing.
We use two simple strategies for this:
- if the edit modifies only a single token (like changing an identifierβs letter), we replace only this token.
- otherwise, we search for the nearest
{}block which contains the edit and try to parse only this block.
FunctionsΒ§
- find_
reparsable_ πnode - get_
text_ πafter_ edit - incremental_
reparse π - is_
balanced π - is_
contextual_ πkw - merge_
errors π - reparse_
block π - reparse_
token π