mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
JS: Add test case
This commit is contained in:
11
javascript/ql/test/library-tests/PackageExports/notPublic.ts
Normal file
11
javascript/ql/test/library-tests/PackageExports/notPublic.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
export class PublicClass {
|
||||
protected constructor(p) {}
|
||||
private privateMethod(p) {}
|
||||
protected protectedMethod(p) {}
|
||||
_kindaPrivateMethod(p) {}
|
||||
$kindaPrivateMethod(p) {}
|
||||
#esPrivateMethod(p) {}
|
||||
|
||||
_kindaPrivateFieldMethod = (p) => {};
|
||||
private privateFieldMethod = (p) => {};
|
||||
}
|
||||
@@ -15,3 +15,4 @@ getAnExportedValue
|
||||
| lib1/reexport/a.js:1:1:3:1 | <toplevel> | reexported | lib1/reexport/a.js:2:17:2:40 | functio ... ed() {} |
|
||||
| lib1/reexport/b.js:1:1:6:1 | <toplevel> | base | lib1/reexport/b.js:4:11:4:28 | function base() {} |
|
||||
| lib1/reexport/b.js:1:1:6:1 | <toplevel> | reexported | lib1/reexport/a.js:2:17:2:40 | functio ... ed() {} |
|
||||
| notPublic.ts:1:1:12:0 | <toplevel> | PublicClass | notPublic.ts:1:8:11:1 | class P ... > {};\\n} |
|
||||
|
||||
Reference in New Issue
Block a user