File tree Expand file tree Collapse file tree 2 files changed +15
-0
lines changed
javascript/ql/test/library-tests/CallGraphs/AnnotatedTest Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -3,3 +3,14 @@ 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
5
badAnnotation
6
+ accessorCall
7
+ | accessors.js:5:3:5:12 | get f() {} | accessors.js:8:8:8:13 | (x) {} |
8
+ | accessors.js:8:3:8:13 | set f(x) {} | accessors.js:8:8:8:13 | (x) {} |
9
+ | accessors.js:12:1:12:5 | obj.f | accessors.js:5:8:5:12 | () {} |
10
+ | accessors.js:15:1:15:5 | obj.f | accessors.js:8:8:8:13 | (x) {} |
11
+ | accessors.js:19:3:19:19 | static get f() {} | accessors.js:22:15:22:20 | (x) {} |
12
+ | accessors.js:22:3:22:20 | static set f(x) {} | accessors.js:22:15:22:20 | (x) {} |
13
+ | accessors.js:26:1:26:3 | C.f | accessors.js:19:15:19:19 | () {} |
14
+ | accessors.js:29:1:29:3 | C.f | accessors.js:22:15:22:20 | (x) {} |
15
+ | accessors.js:41:1:41:9 | new D().f | accessors.js:34:8:34:12 | () {} |
16
+ | accessors.js:44:1:44:9 | new D().f | accessors.js:37:8:37:13 | (x) {} |
Original file line number Diff line number Diff line change @@ -90,3 +90,7 @@ query predicate badAnnotation(string name) {
90
90
not name = any ( AnnotatedCall cl ) .getCallTargetName ( ) and
91
91
name = any ( AnnotatedFunction cl ) .getCalleeName ( )
92
92
}
93
+
94
+ query predicate accessorCall ( DataFlow:: PropRef ref , Function target ) {
95
+ FlowSteps:: calls ( ref , target )
96
+ }
You can’t perform that action at this time.
0 commit comments