Commit 63cc108
committed
Allow C pointers as valid self parameters in method detection
This change updates firstParamIs to accept
`[*c]T` pointers as equivalent to `*T` pointers
when checking if a function's first parameter
matches the container type, enabling proper method
completion for functions with C pointer receivers.1 parent 4d41bbb commit 63cc108
2 files changed
Lines changed: 7 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
461 | 461 | | |
462 | 462 | | |
463 | 463 | | |
464 | | - | |
465 | | - | |
| 464 | + | |
| 465 | + | |
466 | 466 | | |
467 | 467 | | |
468 | 468 | | |
469 | 469 | | |
470 | 470 | | |
471 | 471 | | |
472 | | - | |
473 | | - | |
| 472 | + | |
| 473 | + | |
474 | 474 | | |
475 | 475 | | |
476 | 476 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1337 | 1337 | | |
1338 | 1338 | | |
1339 | 1339 | | |
| 1340 | + | |
1340 | 1341 | | |
1341 | 1342 | | |
1342 | 1343 | | |
1343 | 1344 | | |
1344 | 1345 | | |
| 1346 | + | |
1345 | 1347 | | |
1346 | 1348 | | |
1347 | 1349 | | |
1348 | 1350 | | |
1349 | 1351 | | |
1350 | 1352 | | |
1351 | 1353 | | |
| 1354 | + | |
1352 | 1355 | | |
1353 | 1356 | | |
1354 | 1357 | | |
| |||
0 commit comments