File tree Expand file tree Collapse file tree 2 files changed +26
-0
lines changed
javascript/ql/test/library-tests/CallGraphs/AnnotatedTest Expand file tree Collapse file tree 2 files changed +26
-0
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ spuriousCallee
2
2
missingCallee
3
3
| constructor-field.ts:40:5:40:14 | f3.build() | constructor-field.ts:13:3:13:12 | build() {} | -1 | calls |
4
4
| constructor-field.ts:71:1:71:11 | bf3.build() | constructor-field.ts:13:3:13:12 | build() {} | -1 | calls |
5
+ | hoisted.js:20:9:20:11 | f() | hoisted.js:23:9:23:23 | function f() {} | -1 | calls |
5
6
badAnnotation
6
7
accessorCall
7
8
| accessors.js:12:1:12:5 | obj.f | accessors.js:5:8:5:12 | () {} |
Original file line number Diff line number Diff line change
1
+ function test1 ( ) {
2
+ /** name:hoist1 */
3
+ function f ( ) { }
4
+
5
+ /** calls:hoist1 */
6
+ f ( ) ;
7
+ }
8
+
9
+ function test2 ( ) {
10
+ /** calls:hoist2 */
11
+ f ( ) ;
12
+
13
+ /** name:hoist2 */
14
+ function f ( ) { }
15
+ }
16
+
17
+ function test3 ( ) {
18
+ {
19
+ /** calls:hoist3 */
20
+ f ( ) ;
21
+
22
+ /** name:hoist3 */
23
+ function f ( ) { }
24
+ }
25
+ }
You can’t perform that action at this time.
0 commit comments