Nathan Shively-Sanders
06fb724cd1
Improve uncalled function checks ( #41599 )
...
Fixes #41586
Fixes #41588
1. For binary expressions, if the immediate parent is an IfStatement,
then check the body of the if statement. I didn't walk upward to find an
IfStatement because in my experimentation I found that binary expression
uncalled-function errors are only issued when the expression is on the left of the
top-most binary expression.
2. For property accesses with interspersed calls, I added a
CallExpression case. In fact, any expression could appear here, but I
only want to fix calls for now since that's all we've observed in
Definitely Typed, and we didn't see anything else in the user tests or RWC
tests. I also didn't examine parameters of the intermediate call
expressions, but I don't think it's needed since the intent is to avoid
false positives.
2020-11-30 14:27:19 -08:00
..
2020-08-18 11:06:44 -07:00
2020-11-02 14:35:07 -08:00
2020-11-02 14:35:07 -08:00
2020-11-02 14:35:07 -08:00
2020-11-02 14:35:07 -08:00
2020-11-02 14:35:07 -08:00
2020-11-02 14:35:07 -08:00
2020-11-02 14:35:07 -08:00
2020-11-02 14:35:07 -08:00
2020-11-02 14:35:07 -08:00
2020-11-02 14:35:07 -08:00
2020-11-02 14:35:07 -08:00
2020-11-02 14:35:07 -08:00
2020-11-02 14:35:07 -08:00
2020-11-02 14:35:07 -08:00
2020-08-22 13:26:13 -07:00
2020-08-22 13:26:13 -07:00
2020-09-11 08:12:07 -04:00
2020-10-05 13:21:38 -07:00
2020-11-18 12:50:32 -08:00
2020-11-02 14:24:55 -08:00
2020-11-02 14:24:55 -08:00
2020-11-02 14:24:55 -08:00
2020-11-02 14:24:55 -08:00
2020-11-02 14:24:55 -08:00
2020-11-02 14:24:55 -08:00
2020-11-02 14:24:55 -08:00
2020-11-02 14:24:55 -08:00
2020-11-02 14:24:55 -08:00
2020-11-02 14:24:55 -08:00
2020-11-02 14:24:55 -08:00
2020-11-02 14:24:55 -08:00
2020-11-02 14:24:55 -08:00
2020-11-02 14:24:55 -08:00
2020-11-02 14:24:55 -08:00
2020-11-02 14:24:55 -08:00
2020-10-26 12:19:31 -07:00
2020-09-08 14:43:48 -04:00
2020-09-17 10:42:47 -07:00
2020-08-26 16:28:50 -04:00
2020-10-28 13:48:29 -07:00
2020-10-21 12:31:29 -07:00
2020-11-25 14:51:38 -10:00
2020-09-05 02:48:45 -07:00
2020-08-21 09:47:37 -07:00
2020-08-21 09:47:37 -07:00
2020-09-11 08:12:07 -04:00
2020-10-01 15:20:01 -07:00
2020-10-12 16:01:32 -07:00
2020-09-22 21:21:13 -07:00
2020-10-01 13:06:17 -07:00
2020-10-01 14:56:32 -07:00
2020-09-14 19:56:24 -07:00
2020-09-11 08:12:07 -04:00
2020-09-11 08:12:07 -04:00
2020-09-11 08:12:07 -04:00
2020-09-11 08:12:07 -04:00
2020-09-11 08:12:07 -04:00
2020-09-11 08:12:07 -04:00
2020-10-05 14:12:47 -04:00
2020-10-02 16:47:37 -07:00
2020-10-05 16:38:12 -07:00
2020-07-30 13:45:29 -04:00
2020-10-14 15:58:13 -04:00
2020-08-17 15:30:19 -07:00
2020-09-14 12:20:57 -07:00
2020-08-06 13:27:19 -07:00
2020-10-07 12:08:20 -07:00
2020-10-06 14:18:44 -07:00
2020-11-02 14:35:56 -08:00
2020-09-23 00:51:14 -07:00
2020-09-23 00:48:40 -07:00
2020-07-30 14:58:22 -07:00
2020-09-16 13:31:13 -07:00
2020-10-12 09:33:39 -07:00
2020-09-11 08:12:07 -04:00
2020-09-11 08:12:07 -04:00
2020-09-11 08:12:07 -04:00
2020-09-11 08:12:07 -04:00
2020-09-11 08:12:07 -04:00
2020-09-11 08:12:07 -04:00
2020-09-11 08:12:07 -04:00
2020-09-11 08:12:07 -04:00
2020-09-11 08:12:07 -04:00
2020-11-19 11:41:35 -08:00
2020-09-11 08:12:07 -04:00
2020-09-11 08:12:07 -04:00
2020-10-19 13:34:16 -07:00
2020-09-08 10:29:15 -07:00
2020-10-28 14:31:40 -07:00
2020-10-28 14:31:40 -07:00
2020-10-29 14:17:24 -07:00
2020-11-17 17:52:32 -08:00
2020-11-17 17:52:32 -08:00
2020-11-02 15:34:36 -08:00
2020-11-02 15:34:36 -08:00
2020-11-02 15:34:36 -08:00
2020-09-04 09:01:59 -07:00
2020-10-02 15:37:59 -07:00
2020-11-03 12:22:30 -08:00
2020-08-29 01:01:06 -07:00
2020-11-03 12:22:30 -08:00
2020-10-09 10:53:59 -07:00
2020-10-13 13:00:09 +09:00
2020-10-06 16:30:09 -07:00
2020-11-23 17:01:42 -08:00
2020-10-19 07:26:48 -07:00
2020-09-11 08:12:07 -04:00
2020-09-11 08:12:07 -04:00
2020-09-11 08:12:07 -04:00
2020-09-11 08:12:07 -04:00
2020-09-11 08:12:07 -04:00
2020-10-08 14:55:14 -07:00
2020-09-11 12:58:40 -07:00
2020-09-11 12:58:40 -07:00
2020-09-11 12:58:40 -07:00
2020-09-11 12:58:40 -07:00
2020-09-11 12:58:40 -07:00
2020-09-11 12:58:40 -07:00
2020-08-15 18:22:30 -07:00
2020-10-22 11:27:41 -07:00
2020-10-20 13:11:52 -07:00
2020-09-11 08:12:07 -04:00
2020-11-02 14:45:26 -08:00
2020-08-26 16:28:50 -04:00
2020-11-30 14:27:19 -08:00
2020-11-30 14:27:19 -08:00
2020-09-11 08:12:07 -04:00
2020-08-21 10:42:48 -07:00
2020-10-28 11:55:32 -07:00
2020-10-27 10:53:13 -07:00
2020-09-11 15:36:00 -04:00