On this page

Defines the parser state base type used by this module.

new Parser(): Parser
Returns:<Parser>
parse(source, state): void
  • source {string | Buffer | PreparsedAst} the source to parse
  • state <ParserState> the parser state
  • Returns: <ParserState> the parser state

Parses the provided source and updates the parser state.