| title | Source |
|---|---|
| titleTemplate | title - API / NativeScript |
| description | A class encapsulating information for source code origin. |
| contributors | false |
Defined in: utils/debug.d.ts:9
A class encapsulating information for source code origin.
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.
| Parameter | Type |
|---|---|
uri |
string |
line |
number |
column |
number |
Source
column: number;Defined in: utils/debug.d.ts:28
Gets the position in the source document.
line: number;Defined in: utils/debug.d.ts:23
Gets the line in the source document.
uri: string;Defined in: utils/debug.d.ts:18
Gets the URI of the source document;
static get(object: any): Source;Defined in: utils/debug.d.ts:33
Get the source of an object.
| Parameter | Type |
|---|---|
object |
any |
Source
static set(object: any, src: Source): any;Defined in: utils/debug.d.ts:38
Set the source of an object.
| Parameter | Type |
|---|---|
object |
any |
src |
Source |
any