Commit f2d1531
committed
Fix location for duplicate function implementation errors
Use only the relevant declarations (by collecting them in the for loop),
and use `declaration` if `getNameOfDeclaration` didn't work (useful for
`export default` with anonymous functions).
Fixes microsoft#39804.
Also, use `nodeIsPresent` once, and a random `?.`.1 parent 03b6580 commit f2d1531
File tree
6 files changed
+56
-6
lines changed- src/compiler
- tests
- baselines/reference
- cases/compiler
6 files changed
+56
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31280 | 31280 | | |
31281 | 31281 | | |
31282 | 31282 | | |
| 31283 | + | |
31283 | 31284 | | |
31284 | 31285 | | |
31285 | 31286 | | |
| |||
31300 | 31301 | | |
31301 | 31302 | | |
31302 | 31303 | | |
| 31304 | + | |
31303 | 31305 | | |
31304 | 31306 | | |
31305 | 31307 | | |
31306 | 31308 | | |
31307 | 31309 | | |
| 31310 | + | |
31308 | 31311 | | |
31309 | | - | |
| 31312 | + | |
31310 | 31313 | | |
31311 | 31314 | | |
31312 | 31315 | | |
31313 | 31316 | | |
31314 | 31317 | | |
31315 | 31318 | | |
31316 | 31319 | | |
31317 | | - | |
| 31320 | + | |
31318 | 31321 | | |
31319 | 31322 | | |
31320 | 31323 | | |
31321 | | - | |
| 31324 | + | |
31322 | 31325 | | |
31323 | 31326 | | |
31324 | 31327 | | |
| |||
31336 | 31339 | | |
31337 | 31340 | | |
31338 | 31341 | | |
31339 | | - | |
| 31342 | + | |
31340 | 31343 | | |
31341 | 31344 | | |
31342 | 31345 | | |
31343 | 31346 | | |
31344 | 31347 | | |
31345 | | - | |
31346 | | - | |
| 31348 | + | |
| 31349 | + | |
31347 | 31350 | | |
31348 | 31351 | | |
31349 | 31352 | | |
| |||
Lines changed: 13 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
Lines changed: 13 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
0 commit comments