Optional
options: ParseOptions & DocumentOptions & SchemaOptionsCompose tokens into documents.
Optional
forceDoc: booleanIf the stream contains no document, still emit a final document including any comments and directives that would be applied to a subsequent document.
Optional
endOffset: numberShould be set if forceDoc
is also set, to set the document range end and to indicate errors correctly.
Call at end of input to yield any remaining document.
Optional
forceDoc: booleanIf the stream contains no document, still emit a final document including any comments and directives that would be applied to a subsequent document.
Optional
endOffset: numberShould be set if forceDoc
is also set, to set the document range end and to indicate errors correctly.
Advance the composer by one CST token.
Current stream status information.
Mostly useful at the end of input for an empty stream.
Compose a stream of CST nodes into a stream of YAML Documents.