Namespaces
Source
A class encapsulating information for source code origin.
Defined in: utils/debug.d.ts:9
A class encapsulating information for source code origin.
Constructors
Constructor
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
| Parameter | Type |
|---|---|
uri | string |
line | number |
column | number |
Returns
Source
Properties
column
column: number;Defined in: utils/debug.d.ts:28
Gets the position in the source document.
line
line: number;Defined in: utils/debug.d.ts:23
Gets the line in the source document.
uri
uri: string;Defined in: utils/debug.d.ts:18
Gets the URI of the source document;
Methods
get()
static get(object: any): Source;Defined in: utils/debug.d.ts:33
Get the source of an object.
Parameters
| Parameter | Type |
|---|---|
object | any |
Returns
Source
set()
static set(object: any, src: Source): any;Defined in: utils/debug.d.ts:38
Set the source of an object.
Parameters
| Parameter | Type |
|---|---|
object | any |
src | Source |
Returns
any
- Previous
- ScopeError
- Next
- SourceError