Files
codeql/javascript/ql/test/library-tests/CallGraphs/AnnotatedTest/static-calls.js
2019-07-08 13:55:29 +01:00

36 lines
327 B
JavaScript

import 'dummy';
class C {
/** name:C.f */
static f() {}
}
class D {
/** name:D.f */
static f() {}
}
function g(c) {
/** calls:C.f */
c.f();
}
g(C);
g(C);
function h(d) {
/** calls:D.f */
d.f();
}
h(D);
h(D);
function either(cd) {
/**
* calls:C.f
* calls:D.f
*/
cd.f();
}
either(C);
either(D);