Class: EditorState
Represents a snapshot of the editor state at a specific point in time. Includes the source code, the logical model, and the physical CST.
Constructors
Constructor
new EditorState(
config):EditorState
Parameters
config
Returns
EditorState
Properties
cst
readonlycst:CST|null
model
readonlymodel:ModelElement|null
source
readonlysource:string
Methods
update()
update(
changes):EditorState
Creates a new state with updated properties.
Parameters
changes
Partial<EditorStateConfig>
Returns
EditorState
create()
staticcreate(source):EditorState
Parameters
source
string
Returns
EditorState