MCPcopy
hub / github.com/JuliaPluto/Pluto.jl / PartialParse

Interface PartialParse

frontend/imports/CodemirrorPlutoSetup.d.ts:3749–3775  ·  view source on GitHub ↗

Interface used to represent an in-progress parse, which can be moved forward piece-by-piece.

Source from the content-addressed store, hash-verified

3747moved forward piece-by-piece.
3748*/
3749interface 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/**
3777A superclass that parsers should extend.
3778*/

Callers 16

preserveMethod · 0.65
forwardMethod · 0.65
parseMethod · 0.65
advanceFunction · 0.65
workMethod · 0.65
takeTreeMethod · 0.65
deFunction · 0.65
advanceFunction · 0.65
stopAtFunction · 0.65
workMethod · 0.65
takeTreeMethod · 0.65

Implementers 6

BlockContextfrontend/imports/CodemirrorPlutoSetup.
dsfrontend-dist/frontend.44dc92ac.js
O$frontend-dist/frontend.44dc92ac.js
upfrontend-dist-offline/editor.eded5de0.
Olfrontend-dist-offline/editor.eded5de0.
f_frontend-dist-offline/editor.eded5de0.

Calls

no outgoing calls

Tested by

no test coverage detected