Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b392559

Browse files
committed
JS: Accept that types may degrade CG precision
1 parent ddf0d53 commit b392559

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
| tst.ts:4:5:4:21 | x.method("Hello") | tst.ts:15:3:17:3 | public ... x);\\n } |
22
| tst.ts:9:17:9:33 | new AngryLogger() | tst.ts:20:34:20:33 | (...arg ... rgs); } |
3+
| tst.ts:10:5:10:49 | (newLog ... hello") | tst.ts:15:3:17:3 | public ... x);\\n } |
34
| tst.ts:10:5:10:49 | (newLog ... hello") | tst.ts:21:3:23:3 | public ... ");\\n } |
45
| tst.ts:20:34:20:33 | super(...args) | tst.ts:14:14:14:13 | () {} |

javascript/ql/test/library-tests/TypeScript/CallGraph/tst.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ class MyClass {
44
x.method("Hello");
55

66
// Resolve based on local dataflow.
7-
// Type information should not degrade call graph precision.
7+
// Type information may degrade call graph precision.
88
var newLogger: Logger;
99
newLogger = new AngryLogger();
1010
(newLogger as Logger).method("I said, hello");

0 commit comments

Comments
 (0)