validateDocument
validateDocument(
document): readonlyValidationDiagnostic[]
Defined in: src/validation.ts:81 (opens in a new tab)
Reports invalid document structure and Greek marks without mutation.
Parsed documents are normally valid. This helper is primarily intended for
documents constructed or modified through the advanced ./document API.
It does not validate the syntax of the source string: parsers can preserve
unrecognized or malformed source sequences as literal tokens.
Parameters
Section titled “Parameters”document
Section titled “document”Returns
Section titled “Returns”readonly ValidationDiagnostic[]