MCPcopy Index your code
hub / github.com/NativeScript/NativeScript / constructor

Method constructor

packages/core/utils/debug-source.ts:40–50  ·  view source on GitHub ↗
(uri: string, line: number, column: number)

Source from the content-addressed store, hash-verified

38 private static _source = Symbol('source');
39
40 constructor(uri: string, line: number, column: number) {
41 ensureAppRootPath();
42
43 if (uri.length > applicationRootPath.length && uri.substring(0, applicationRootPath.length) === applicationRootPath) {
44 this._uri = 'file://' + uri.substring(applicationRootPath.length);
45 } else {
46 this._uri = uri;
47 }
48 this._line = line;
49 this._column = column;
50 }
51
52 get uri(): string {
53 return this._uri;

Callers

nothing calls this directly

Calls 1

ensureAppRootPathFunction · 0.85

Tested by

no test coverage detected