node-dextrin - v0.4.0
    Preparing search index...

    Function parseTree

    • text parsed the way parse parses it -- the same parser, the same errors -- with the syntax tree beside the value: every token, and the nodes over them. The trivia between two tokens is the text between them. What Document.parse reads with.

      Parameters

      • text: string
      • Optionalopts: { registry?: export=; strict?: boolean; trusted?: boolean } = {}

      Returns { tokens: Token[]; tree: SyntaxNode; value: unknown }