Skip to main content

Class: SourceMap

Source location information.

Extends

  • BaseClient

Constructors

new SourceMap()

new SourceMap(ctx?, _id?, _column?, _filename?, _line?, _module?): SourceMap

Constructor is used for internal usage only, do not create object from it.

Parameters

ctx?

Context

_id?

SourceMapID

_column?

number

_filename?

string

_line?

number

_module?

string

Returns

SourceMap

Overrides

BaseClient.constructor

Methods

column()

column(): Promise<number>

The column number within the line.

Returns

Promise<number>


filename()

filename(): Promise<string>

The filename from the module source.

Returns

Promise<string>


id()

id(): Promise<SourceMapID>

A unique identifier for this SourceMap.

Returns

Promise<SourceMapID>


line()

line(): Promise<number>

The line number within the filename.

Returns

Promise<number>


module_()

module_(): Promise<string>

The module dependency this was declared in.

Returns

Promise<string>