Commit a98bc28
authored
use arrow syntax for anonymous functions (#6945)
* emit arrow syntax for non top level functions
* remove unnecessary parens
* fix cond
* skip paren for arrow function with single param
* skip return clause where possible
* remove unnecessary parens on function literals
* add changelog
* remove unnecessary parens of iife1 parent 5e6c891 commit a98bc28
File tree
363 files changed
+7461
-10793
lines changed- jscomp
- build_tests/react_ppx/src
- core
- gentype_tests/typescript-react-example/src
- nested
- test
- lib
- es6
- js
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
363 files changed
+7461
-10793
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
26 | 27 | | |
27 | 28 | | |
28 | 29 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
163 | 163 | | |
164 | 164 | | |
165 | 165 | | |
166 | | - | |
| 166 | + | |
167 | 167 | | |
168 | 168 | | |
169 | 169 | | |
| |||
360 | 360 | | |
361 | 361 | | |
362 | 362 | | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
363 | 369 | | |
364 | 370 | | |
365 | 371 | | |
| |||
385 | 391 | | |
386 | 392 | | |
387 | 393 | | |
388 | | - | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
389 | 399 | | |
390 | 400 | | |
391 | | - | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
392 | 419 | | |
393 | 420 | | |
394 | 421 | | |
395 | 422 | | |
396 | 423 | | |
397 | 424 | | |
398 | 425 | | |
399 | | - | |
400 | | - | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
401 | 430 | | |
402 | | - | |
403 | | - | |
404 | | - | |
405 | | - | |
406 | | - | |
407 | | - | |
408 | 431 | | |
409 | 432 | | |
410 | | - | |
411 | | - | |
| 433 | + | |
412 | 434 | | |
413 | 435 | | |
414 | 436 | | |
415 | | - | |
416 | | - | |
| 437 | + | |
417 | 438 | | |
418 | 439 | | |
419 | 440 | | |
| |||
504 | 525 | | |
505 | 526 | | |
506 | 527 | | |
507 | | - | |
508 | | - | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
509 | 531 | | |
510 | 532 | | |
511 | 533 | | |
| |||
520 | 542 | | |
521 | 543 | | |
522 | 544 | | |
523 | | - | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
524 | 550 | | |
525 | 551 | | |
526 | 552 | | |
| |||
538 | 564 | | |
539 | 565 | | |
540 | 566 | | |
541 | | - | |
| 567 | + | |
542 | 568 | | |
543 | | - | |
| 569 | + | |
544 | 570 | | |
545 | 571 | | |
546 | 572 | | |
| |||
941 | 967 | | |
942 | 968 | | |
943 | 969 | | |
944 | | - | |
| 970 | + | |
945 | 971 | | |
946 | | - | |
| 972 | + | |
947 | 973 | | |
948 | 974 | | |
949 | 975 | | |
| |||
1151 | 1177 | | |
1152 | 1178 | | |
1153 | 1179 | | |
1154 | | - | |
1155 | | - | |
| 1180 | + | |
| 1181 | + | |
| 1182 | + | |
1156 | 1183 | | |
1157 | 1184 | | |
1158 | 1185 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
26 | 25 | | |
27 | 26 | | |
28 | | - | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
29 | 33 | | |
30 | | - | |
| 34 | + | |
31 | 35 | | |
32 | 36 | | |
33 | 37 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
207 | 207 | | |
208 | 208 | | |
209 | 209 | | |
210 | | - | |
| 210 | + | |
211 | 211 | | |
212 | 212 | | |
213 | 213 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
| 91 | + | |
91 | 92 | | |
92 | 93 | | |
93 | 94 | | |
94 | | - | |
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
| |||
Lines changed: 1 addition & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 9 additions & 23 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments