Skip to content

Commit cef80f5

Browse files
committed
update docs
1 parent 915ca3a commit cef80f5

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/lib/token_tree.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,12 +70,16 @@ class TokenTree {
7070
Currently this is all private API, but this is the minimal API necessary
7171
that an Emitter must implement to fully support the parser.
7272
73-
API:
73+
Minimal interface:
7474
7575
- addKeyword(text, kind)
7676
- addText(text)
7777
- addSublanguage(emitter, subLangaugeName)
7878
- finalize()
79+
- openNode(kind)
80+
- closeNode()
81+
- closeAllNodes()
82+
- toHTML()
7983
8084
*/
8185
export default class TokenTreeEmitter extends TokenTree {

0 commit comments

Comments
 (0)