Skip to content

Commit c8e7df7

Browse files
committed
JS: Add test case
1 parent 600e5ba commit c8e7df7

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
export class PublicClass {
2+
protected constructor(p) {}
3+
private privateMethod(p) {}
4+
protected protectedMethod(p) {}
5+
_kindaPrivateMethod(p) {}
6+
$kindaPrivateMethod(p) {}
7+
#esPrivateMethod(p) {}
8+
9+
_kindaPrivateFieldMethod = (p) => {};
10+
private privateFieldMethod = (p) => {};
11+
}

javascript/ql/test/library-tests/PackageExports/tests.expected

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,4 @@ getAnExportedValue
1515
| lib1/reexport/a.js:1:1:3:1 | <toplevel> | reexported | lib1/reexport/a.js:2:17:2:40 | functio ... ed() {} |
1616
| lib1/reexport/b.js:1:1:6:1 | <toplevel> | base | lib1/reexport/b.js:4:11:4:28 | function base() {} |
1717
| lib1/reexport/b.js:1:1:6:1 | <toplevel> | reexported | lib1/reexport/a.js:2:17:2:40 | functio ... ed() {} |
18+
| notPublic.ts:1:1:12:0 | <toplevel> | PublicClass | notPublic.ts:1:8:11:1 | class P ... > {};\\n} |

0 commit comments

Comments
 (0)