Interface used to represent an in-progress parse, which can be moved forward piece-by-piece.
| 3747 | moved forward piece-by-piece. |
| 3748 | */ |
| 3749 | interface PartialParse { |
| 3750 | /** |
| 3751 | Advance the parse state by some amount. Will return the finished |
| 3752 | syntax tree when the parse completes. |
| 3753 | */ |
| 3754 | advance(): Tree | null; |
| 3755 | /** |
| 3756 | The position up to which the document has been parsed. Note |
| 3757 | that, in multi-pass parsers, this will stay back until the last |
| 3758 | pass has moved past a given position. |
| 3759 | */ |
| 3760 | readonly parsedPos: number; |
| 3761 | /** |
| 3762 | Tell the parse to not advance beyond the given position. |
| 3763 | `advance` will return a tree when the parse has reached the |
| 3764 | position. Note that, depending on the parser algorithm and the |
| 3765 | state of the parse when `stopAt` was called, that tree may |
| 3766 | contain nodes beyond the position. It is an error to call |
| 3767 | `stopAt` with a higher position than it's [current |
| 3768 | value](#common.PartialParse.stoppedAt). |
| 3769 | */ |
| 3770 | stopAt(pos: number): void; |
| 3771 | /** |
| 3772 | Reports whether `stopAt` has been called on this parse. |
| 3773 | */ |
| 3774 | readonly stoppedAt: number | null; |
| 3775 | } |
| 3776 | /** |
| 3777 | A superclass that parsers should extend. |
| 3778 | */ |
no outgoing calls
no test coverage detected