9.0 Released! → Native ESM runtimes 🚀, Vite support ⚡️, multi-window apps and more...
Read Announcement

Defined in: utils/debug.d.ts:9

A class encapsulating information for source code origin.

Constructors

Constructor

ts
new Source(
   uri: string, 
   line: number, 
   column: number): Source;

Defined in: utils/debug.d.ts:13

Creates a new Source instance by given uri, line and column.

Parameters

ParameterType
uristring
linenumber
columnnumber

Returns

Source

Properties

column

ts
column: number;

Defined in: utils/debug.d.ts:28

Gets the position in the source document.


line

ts
line: number;

Defined in: utils/debug.d.ts:23

Gets the line in the source document.


uri

ts
uri: string;

Defined in: utils/debug.d.ts:18

Gets the URI of the source document;

Methods

get()

ts
static get(object: any): Source;

Defined in: utils/debug.d.ts:33

Get the source of an object.

Parameters

ParameterType
objectany

Returns

Source


set()

ts
static set(object: any, src: Source): any;

Defined in: utils/debug.d.ts:38

Set the source of an object.

Parameters

ParameterType
objectany
srcSource

Returns

any

Previous
ScopeError