mirror of
https://github.com/github/codeql.git
synced 2026-04-28 18:25:24 +02:00
JS: Add test for export base scope
This commit is contained in:
11
javascript/ql/test/library-tests/TypeScript/RegressionTests/ExportBaseResolution/test.d.ts
vendored
Normal file
11
javascript/ql/test/library-tests/TypeScript/RegressionTests/ExportBaseResolution/test.d.ts
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
declare namespace A.B {
|
||||
namespace C {
|
||||
interface I { }
|
||||
}
|
||||
declare var C: number;
|
||||
declare interface C { }
|
||||
}
|
||||
|
||||
declare module 'test' {
|
||||
export = A.B.C;
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
| A | variable | test.d.ts:1:19:1:19 | A | test.d.ts:10:14:10:14 | A |
|
||||
@@ -0,0 +1,5 @@
|
||||
import javascript
|
||||
|
||||
from LexicalName name, LexicalDecl decl, LexicalAccess access
|
||||
where decl.getALexicalName() = name and access.getALexicalName() = name
|
||||
select name.getName(), name.getDeclarationSpace(), decl, access
|
||||
Reference in New Issue
Block a user