f89de95955
* Start enabling element access special assignment * Treat element access assignment as special assignment in JS * Make declarations for bindable element access expressions * Fix navigationBar crash * Add multi-level test for JS * Propagate element access expressions to more code paths * Fix property access on `this` * Add quick info test * Uhhh I guess this is fine * Fix module["exports"] and property access chained off element access * Add test for this property assignment * Add test for and fix prototype property assignment * Fix teeeest??? * Update APIs * Fix element access declarations on `this` * Fix go-to-definition * Add declaration emit to tests * Reconcile with late-bound symbol element access assignment * Fix baselines * Add JS declaration back to tests * Fix JS declaration emit of non-late-bound string literal property names * Revert accidental auto-format * Use `isAccessExpression` * Add underscore escaping member to test * Fix and test navBar changes
21 lines
414 B
TypeScript
21 lines
414 B
TypeScript
// @allowJs: true
|
|
// @strict: true
|
|
// @checkJs: true
|
|
// @emitDeclarationOnly: true
|
|
// @declaration: true
|
|
// @filename: mod1.js
|
|
exports.a = { x: "x" };
|
|
exports["b"] = { x: "x" };
|
|
exports["default"] = { x: "x" };
|
|
module.exports["c"] = { x: "x" };
|
|
module["exports"]["d"] = {};
|
|
module["exports"]["d"].e = 0;
|
|
|
|
// @filename: mod2.js
|
|
const mod1 = require("./mod1");
|
|
mod1.a;
|
|
mod1.b;
|
|
mod1.c;
|
|
mod1.d;
|
|
mod1.d.e;
|
|
mod1.default; |