Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface Parser

Hierarchy

  • Parser

Index

Properties

astFormat

astFormat: string

Optional hasPragma

hasPragma: undefined | ((text: string) => boolean)

locEnd

locEnd: (node: any) => number

Type declaration

    • (node: any): number
    • Parameters

      • node: any

      Returns number

locStart

locStart: (node: any) => number

Type declaration

    • (node: any): number
    • Parameters

      • node: any

      Returns number

parse

parse: (text: string, parsers: {}, options: ParserOptions) => AST

Type declaration

    • (text: string, parsers: {}, options: ParserOptions): AST
    • Parameters

      • text: string
      • parsers: {}
        • [parserName: string]: Parser
      • options: ParserOptions

      Returns AST

Optional preprocess

preprocess: undefined | ((text: string, options: ParserOptions) => string)