Skip to content

Commit badca07

Browse files
committed
JS: Add test
1 parent 78adcd4 commit badca07

File tree

1 file changed

+27
-0
lines changed
  • javascript/ql/test/library-tests/CallGraphs/AnnotatedTest

1 file changed

+27
-0
lines changed
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
import 'dummy';
2+
3+
class Foo {
4+
a() {
5+
/** calls:Foo.b */
6+
this.b();
7+
}
8+
9+
/** name:Foo.b */
10+
b() {}
11+
}
12+
13+
class Bar {
14+
a() {
15+
/** calls:Bar.b */
16+
this.b();
17+
}
18+
19+
/** name:Bar.b */
20+
b() {}
21+
}
22+
23+
function callA(x) {
24+
x.a();
25+
}
26+
callA(new Foo);
27+
callB(new Bar);

0 commit comments

Comments
 (0)