compose自动生成
修改场景:校验通过后改写磁盘上的文档;被拒绝时什么都不写。
Changes the scene: rewrites its document on disk (document and status name it), or with path or documents the scene’s other documents too, once the texts are checked; answered once the scene stands. A refused text writes nothing and is an error: why, at line and column, the document’s version, and for edits the text they made, which line counts in.
{"id": 1, "op": "compose"}| 名称 | 类型 | 必需 | 说明 |
|---|---|---|---|
text |
string |
否 | the whole document; or edits |
edits |
[{node?: string, output?: string, param?: string, require?: string, input?: string, kernel?: string, struct?: string, type?: string, fn?: string, use?: string, member?: string, text: string | null}] |
否 | each names a statement, or a node’s member, with its new text or null to remove it |
expect |
string |
否 | the version document answered; refused when the scene changed since |
path |
string |
否 | another document of the scene, from its directory: a .ent or .esn under it that the scene uses or places, or a new one this compose makes it use, or a .replay that names a scene there |
documents |
[{path?: string, text?: string, edits?: [{node?: string, output?: string, param?: string, require?: string, input?: string, kernel?: string, struct?: string, type?: string, fn?: string, use?: string, member?: string, text: string | null}], expect?: string}] |
否 | several documents changed as one: all checked together, all written or none |
events, version, path (the scene), written; with path or documents, documents (each written document’s path and version)

