Skip to content

ProgramSourceMap

Defined in: packages/common/src/sourcemap.ts:26

Contains a mapping from TEAL program PC to source file location.

new ProgramSourceMap(__namedParameters): ProgramSourceMap

Defined in: packages/common/src/sourcemap.ts:46

string

string[]

string[]

number

ProgramSourceMap

readonly mappings: string

Defined in: packages/common/src/sourcemap.ts:39

A string with the encoded mapping data.


readonly names: string[]

Defined in: packages/common/src/sourcemap.ts:35

A list of symbol names used by the “mappings” entry.


readonly sources: string[]

Defined in: packages/common/src/sourcemap.ts:31

A list of original sources used by the “mappings” entry.


readonly version: number

Defined in: packages/common/src/sourcemap.ts:27

getLocationForPc(pc): SourceLocation | undefined

Defined in: packages/common/src/sourcemap.ts:111

number

SourceLocation | undefined


getPcs(): number[]

Defined in: packages/common/src/sourcemap.ts:107

number[]


getPcsOnSourceLine(sourceIndex, line): PcLineLocation[]

Defined in: packages/common/src/sourcemap.ts:115

number

number

PcLineLocation[]