8f8a579eee
* Added BindingElement to isSomeImportDeclaration * Added tests * Refactores to use getDeclarationOfAlias
21 lines
434 B
Plaintext
21 lines
434 B
Plaintext
=== /bar.js ===
|
|
const { a } = require("./foo");
|
|
>a : Symbol(a, Decl(bar.js, 0, 7))
|
|
>require : Symbol(require)
|
|
>"./foo" : Symbol("/foo", Decl(foo.d.ts, 0, 0))
|
|
|
|
if (a) {
|
|
>a : Symbol(a, Decl(bar.js, 0, 7))
|
|
|
|
var x = a + 1;
|
|
>x : Symbol(x, Decl(bar.js, 2, 5))
|
|
>a : Symbol(a, Decl(bar.js, 0, 7))
|
|
}
|
|
=== /foo.d.ts ===
|
|
// Regresion test for GH#41957
|
|
|
|
|
|
export const a: number | null;
|
|
>a : Symbol(a, Decl(foo.d.ts, 3, 12))
|
|
|