Provides a utility to decode a coordinate in a source file into the enclosing function name.

Hierarchy

  • SourceMapDecoder

Constructors

Methods

Constructors

Methods

  • Returns the enclosing function name for the input coordinate. If the input coordinate is not enclosed in a function then null is returned.

    Parameters

    • source: string

      the source file in which the search should happen

    • line: number

      zero-based line number of the coordinate

    • column: number

      zero-based column number of the coordinate

    Returns null | string

    Throws

    if source is not present in the source map

Generated using TypeDoc