mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
60 lines
2.9 KiB
Plaintext
60 lines
2.9 KiB
Plaintext
//// [tests/cases/conformance/salsa/lateBoundAssignmentDeclarationSupport7.ts] ////
|
|
|
|
=== usage.js ===
|
|
const x = require("./lateBoundAssignmentDeclarationSupport7.js");
|
|
>x : Symbol(x, Decl(usage.js, 0, 5))
|
|
>require : Symbol(require)
|
|
>"./lateBoundAssignmentDeclarationSupport7.js" : Symbol(x, Decl(lateBoundAssignmentDeclarationSupport7.js, 0, 0))
|
|
|
|
const y = x.F["my-fake-sym"];
|
|
>y : Symbol(y, Decl(usage.js, 1, 5))
|
|
>x.F : Symbol(x.F, Decl(lateBoundAssignmentDeclarationSupport7.js, 6, 15))
|
|
>x : Symbol(x, Decl(usage.js, 0, 5))
|
|
>F : Symbol(x.F, Decl(lateBoundAssignmentDeclarationSupport7.js, 6, 15))
|
|
>"my-fake-sym" : Symbol(x.F[F[_str]], Decl(lateBoundAssignmentDeclarationSupport7.js, 5, 15))
|
|
|
|
const z = x.F[x.S];
|
|
>z : Symbol(z, Decl(usage.js, 2, 5))
|
|
>x.F : Symbol(x.F, Decl(lateBoundAssignmentDeclarationSupport7.js, 6, 15))
|
|
>x : Symbol(x, Decl(usage.js, 0, 5))
|
|
>F : Symbol(x.F, Decl(lateBoundAssignmentDeclarationSupport7.js, 6, 15))
|
|
>x.S : Symbol(x.S, Decl(lateBoundAssignmentDeclarationSupport7.js, 7, 21))
|
|
>x : Symbol(x, Decl(usage.js, 0, 5))
|
|
>S : Symbol(x.S, Decl(lateBoundAssignmentDeclarationSupport7.js, 7, 21))
|
|
|
|
=== lateBoundAssignmentDeclarationSupport7.js ===
|
|
const _sym = Symbol();
|
|
>_sym : Symbol(_sym, Decl(lateBoundAssignmentDeclarationSupport7.js, 0, 5))
|
|
>Symbol : Symbol(Symbol, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.symbol.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --))
|
|
|
|
const _str = "my-fake-sym";
|
|
>_str : Symbol(_str, Decl(lateBoundAssignmentDeclarationSupport7.js, 1, 5))
|
|
|
|
function F() {
|
|
>F : Symbol(F, Decl(lateBoundAssignmentDeclarationSupport7.js, 1, 27))
|
|
}
|
|
F[_sym] = "ok";
|
|
>F : Symbol(F, Decl(lateBoundAssignmentDeclarationSupport7.js, 1, 27))
|
|
>_sym : Symbol(_sym, Decl(lateBoundAssignmentDeclarationSupport7.js, 0, 5))
|
|
|
|
F[_str] = "ok";
|
|
>F : Symbol(F, Decl(lateBoundAssignmentDeclarationSupport7.js, 1, 27))
|
|
>_str : Symbol(_str, Decl(lateBoundAssignmentDeclarationSupport7.js, 1, 5))
|
|
|
|
module.exports.F = F;
|
|
>module.exports.F : Symbol(F, Decl(lateBoundAssignmentDeclarationSupport7.js, 6, 15))
|
|
>module.exports : Symbol(exports, Decl(lateBoundAssignmentDeclarationSupport7.js, 0, 0))
|
|
>module : Symbol(module, Decl(lateBoundAssignmentDeclarationSupport7.js, 0, 0))
|
|
>exports : Symbol(exports, Decl(lateBoundAssignmentDeclarationSupport7.js, 0, 0))
|
|
>F : Symbol(F, Decl(lateBoundAssignmentDeclarationSupport7.js, 6, 15))
|
|
>F : Symbol(F, Decl(lateBoundAssignmentDeclarationSupport7.js, 1, 27))
|
|
|
|
module.exports.S = _sym;
|
|
>module.exports.S : Symbol(S, Decl(lateBoundAssignmentDeclarationSupport7.js, 7, 21))
|
|
>module.exports : Symbol(exports, Decl(lateBoundAssignmentDeclarationSupport7.js, 0, 0))
|
|
>module : Symbol(module, Decl(lateBoundAssignmentDeclarationSupport7.js, 0, 0))
|
|
>exports : Symbol(exports, Decl(lateBoundAssignmentDeclarationSupport7.js, 0, 0))
|
|
>S : Symbol(S, Decl(lateBoundAssignmentDeclarationSupport7.js, 7, 21))
|
|
>_sym : Symbol(_sym, Decl(lateBoundAssignmentDeclarationSupport7.js, 0, 5))
|
|
|