|
| 1 | +=== tests/cases/conformance/salsa/node.d.ts === |
| 2 | +declare function require(id: string): any; |
| 3 | +>require : Symbol(require, Decl(node.d.ts, 0, 0)) |
| 4 | +>id : Symbol(id, Decl(node.d.ts, 0, 25)) |
| 5 | + |
| 6 | +declare var module: any, exports: any; |
| 7 | +>module : Symbol(module, Decl(node.d.ts, 1, 11)) |
| 8 | +>exports : Symbol(exports, Decl(node.d.ts, 1, 24)) |
| 9 | + |
| 10 | +=== tests/cases/conformance/salsa/index.js === |
| 11 | +const A = require("./other"); |
| 12 | +>A : Symbol(A, Decl(index.js, 0, 5)) |
| 13 | +>require : Symbol(require, Decl(node.d.ts, 0, 0)) |
| 14 | +>"./other" : Symbol("tests/cases/conformance/salsa/other", Decl(other.js, 0, 0)) |
| 15 | + |
| 16 | +const a = new A().id; |
| 17 | +>a : Symbol(a, Decl(index.js, 1, 5)) |
| 18 | +>new A().id : Symbol(A.id, Decl(other.js, 0, 14)) |
| 19 | +>A : Symbol(A, Decl(index.js, 0, 5)) |
| 20 | +>id : Symbol(A.id, Decl(other.js, 0, 14)) |
| 21 | + |
| 22 | +const B = function() { this.id = 1; } |
| 23 | +>B : Symbol(B, Decl(index.js, 3, 5)) |
| 24 | +>id : Symbol(B.id, Decl(index.js, 3, 22)) |
| 25 | + |
| 26 | +const b = new B().id; |
| 27 | +>b : Symbol(b, Decl(index.js, 4, 5)) |
| 28 | +>new B().id : Symbol(B.id, Decl(index.js, 3, 22)) |
| 29 | +>B : Symbol(B, Decl(index.js, 3, 5)) |
| 30 | +>id : Symbol(B.id, Decl(index.js, 3, 22)) |
| 31 | + |
| 32 | +=== tests/cases/conformance/salsa/other.js === |
| 33 | +function A() { this.id = 1; } |
| 34 | +>A : Symbol(A, Decl(other.js, 0, 0)) |
| 35 | +>id : Symbol(A.id, Decl(other.js, 0, 14)) |
| 36 | + |
| 37 | +module.exports = A; |
| 38 | +>module : Symbol(export=, Decl(other.js, 0, 29)) |
| 39 | +>exports : Symbol(export=, Decl(other.js, 0, 29)) |
| 40 | +>A : Symbol(A, Decl(other.js, 0, 0)) |
| 41 | + |
0 commit comments