Commit 837052e
authored
Add function definition notes for
This PR helps improve error messages for call argument errors by adding
a note `"foo" is defined in "bar"` to indicates where that called
function is defined
Currently we add it for this error:
- missing named arguments
In later PRs, I will add this note to the following errors in separate
iterations:
- too few arguments
- too many arguments
- too many positional argumentsmissing_named_argument errors (#20794)1 parent 2171b6f commit 837052e
2 files changed
+22
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
941 | 941 | | |
942 | 942 | | |
943 | 943 | | |
| 944 | + | |
944 | 945 | | |
945 | 946 | | |
946 | 947 | | |
| |||
1011 | 1012 | | |
1012 | 1013 | | |
1013 | 1014 | | |
| 1015 | + | |
| 1016 | + | |
| 1017 | + | |
1014 | 1018 | | |
1015 | 1019 | | |
1016 | 1020 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
480 | 480 | | |
481 | 481 | | |
482 | 482 | | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
483 | 501 | | |
484 | 502 | | |
485 | 503 | | |
| |||
0 commit comments