Skip to content

Commit 665fa2a

Browse files
committed
JS: Add test for export base scope
1 parent c8bb0e2 commit 665fa2a

File tree

3 files changed

+17
-0
lines changed

3 files changed

+17
-0
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
declare namespace A.B {
2+
namespace C {
3+
interface I { }
4+
}
5+
declare var C: number;
6+
declare interface C { }
7+
}
8+
9+
declare module 'test' {
10+
export = A.B.C;
11+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
| A | variable | test.d.ts:1:19:1:19 | A | test.d.ts:10:14:10:14 | A |
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import javascript
2+
3+
from LexicalName name, LexicalDecl decl, LexicalAccess access
4+
where decl.getALexicalName() = name and access.getALexicalName() = name
5+
select name.getName(), name.getDeclarationSpace(), decl, access

0 commit comments

Comments
 (0)