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
+ | prototypes.js:19:3:19:13 | baz.shout() | prototypes.js:11:23:11:35 | function() {} | -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
+ class Baz {
2
+ baz ( ) {
3
+ /** calls:Baz.greet */
4
+ this . greet ( ) ;
5
+ }
6
+ /** name:Baz.greet */
7
+ greet ( ) { }
8
+ }
9
+
10
+ /** name:Baz.shout */
11
+ Baz . prototype . shout = function ( ) { } ;
12
+ /** name:Baz.staticShout */
13
+ Baz . staticShout = function ( ) { } ;
14
+
15
+ function foo ( baz ) {
16
+ /** calls:Baz.greet */
17
+ baz . greet ( ) ;
18
+ /** calls:Baz.shout */
19
+ baz . shout ( ) ;
20
+ /** calls:Baz.staticShout */
21
+ Baz . staticShout ( ) ;
22
+ }
23
+
24
+ const baz = new Baz ( ) ;
25
+ foo ( baz ) ;
You can’t perform that action at this time.
0 commit comments