This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function fromSortedRanges(ranges: ReadonlyArray<RangeCov>): RangeTree | undefined { | |
let root: RangeTree | undefined; | |
const stack: RangeTree[] = []; | |
for (const range of ranges) { | |
const node: RangeTree = new RangeTree(range.startOffset, range.endOffset, range.count, [], 0, 0); | |
if (root === undefined) { | |
root = node; | |
stack.push(node); | |
continue; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"path": "/data/projects/web/yargs/index.js", | |
"statementMap": { | |
"0": { | |
"start": { | |
"line": 1, | |
"column": 0 | |
}, | |
"end": { | |
"line": 1, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"scriptId": "1", | |
"url": "/test/fixtures/hello-world/lib.js", | |
"functions": [ | |
{ | |
"functionName": "", | |
"ranges": [ | |
{ | |
"startOffset": 0, | |
"endOffset": 130, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export function helloWorld () { | |
console.log('Hello, World!') | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
"/data/projects/web/v8-to-istanbul/src/test/fixtures/esm-hello-world/main.js", | |
"_stream_duplex.js", | |
"_stream_passthrough.js", | |
"_stream_readable.js", | |
"_stream_transform.js", | |
"_stream_writable.js", | |
"assert.js", | |
"buffer.js", | |
"cjs-facade:file:///data/projects/web/v8-to-istanbul/src/test/fixtures/esm-hello-world/main.js", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"/main.js": { | |
"path": "/main.js", | |
"statementMap": { | |
"s0": { | |
"start": { | |
"line": 1, | |
"column": 0 | |
}, | |
"end": { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
print("Hello, World!") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"url": "/main.js", | |
"source": "(function (exports, require, module, __filename, __dirname) { require('./timeout')\n\nconsole.info('i am a line of code')\n\nfunction apple (awesome) {\n if (false || true) {\n console.info('what')\n }\n if (true || false) {\n console.log('hey')\n }\n}\n\nfunction missed () {\n \n}\n\napple()\napple()\napple()\n\n});", | |
"functions": [ | |
{ | |
"functionName": "", | |
"ranges": [ | |
{ | |
"startOffset": 0, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"/data/projects/various/turbo-gulp/build/test/test.esm.js": { | |
"path": "/data/projects/various/turbo-gulp/build/test/test.esm.js", | |
"statementMap": { | |
"0": { | |
"start": { | |
"line": 1, | |
"column": 0 | |
}, | |
"end": { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Empty |