Commit d86a0b6
Render overload hint in snake_case (method and parameter names)
The "No method matches" hint now uses the snake_case names Python callers
actually use, both in the message header and in each candidate signature:
No method matches given arguments for compute_scaled: (<class 'float'>). The expected signature is:
compute_scaled(Int32 scale_factor)
- Add SnakeCaseName(MethodBase) and use it for the header and FormatSignature
(constructors keep their special .ctor token).
- Snake_case parameter names in FormatSignature via Name.ToSnakeCase().
- Add tests: method name and parameter names are snake_cased for single and
multiple overloads.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent da7cc7f commit d86a0b6
2 files changed
Lines changed: 62 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
35 | 44 | | |
36 | 45 | | |
37 | 46 | | |
| |||
95 | 104 | | |
96 | 105 | | |
97 | 106 | | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
98 | 134 | | |
99 | 135 | | |
100 | 136 | | |
| |||
107 | 143 | | |
108 | 144 | | |
109 | 145 | | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
110 | 150 | | |
111 | 151 | | |
112 | 152 | | |
| |||
131 | 171 | | |
132 | 172 | | |
133 | 173 | | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
134 | 178 | | |
135 | 179 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1006 | 1006 | | |
1007 | 1007 | | |
1008 | 1008 | | |
| 1009 | + | |
1009 | 1010 | | |
1010 | 1011 | | |
1011 | | - | |
| 1012 | + | |
1012 | 1013 | | |
1013 | 1014 | | |
1014 | 1015 | | |
1015 | | - | |
| 1016 | + | |
1016 | 1017 | | |
1017 | 1018 | | |
1018 | 1019 | | |
| |||
1288 | 1289 | | |
1289 | 1290 | | |
1290 | 1291 | | |
1291 | | - | |
1292 | | - | |
| 1292 | + | |
| 1293 | + | |
| 1294 | + | |
| 1295 | + | |
1293 | 1296 | | |
1294 | 1297 | | |
1295 | 1298 | | |
1296 | 1299 | | |
1297 | | - | |
| 1300 | + | |
1298 | 1301 | | |
1299 | 1302 | | |
1300 | 1303 | | |
| |||
1307 | 1310 | | |
1308 | 1311 | | |
1309 | 1312 | | |
1310 | | - | |
| 1313 | + | |
1311 | 1314 | | |
1312 | 1315 | | |
1313 | 1316 | | |
| |||
1349 | 1352 | | |
1350 | 1353 | | |
1351 | 1354 | | |
| 1355 | + | |
| 1356 | + | |
| 1357 | + | |
| 1358 | + | |
| 1359 | + | |
| 1360 | + | |
| 1361 | + | |
| 1362 | + | |
| 1363 | + | |
1352 | 1364 | | |
1353 | 1365 | | |
1354 | 1366 | | |
| |||
0 commit comments