Options
All
  • Public
  • Public/Protected
  • All
Menu

Index

Type aliases

Functions

Type aliases

ParseOptions

ParseOptions: { noLocation: boolean; noSource: boolean }

Configuration options to control parser behavior

Type declaration

  • noLocation: boolean

    By default, the parser creates AST nodes that know the location in the source that they correspond to. This configuration flag disables that behavior for performance or testing.

  • noSource: boolean

Functions

parse

  • Given a WIDL source, parses it into a Document. Throws WidlError if a syntax error is encountered.

    Parameters

    Returns Document

parseValue

  • Given a string containing a WIDL value (ex. [42]), parse the AST for that value. Throws WidlError if a syntax error is encountered.

    This is useful within tools that operate upon WIDL Values directly and in isolation of complete WIDL documents.

    Consider providing the results to the utility function: valueFromAST().

    Parameters

    Returns Value

Legend

  • Variable
  • Function
  • Function with type parameter
  • Type alias
  • Type alias with type parameter
  • Enumeration
  • Interface
  • Class

Generated using TypeDoc