Commit a46d57b
fix(generator): qualify method receivers that collide with arm/storage import aliases (#5504)
* fix(generator): qualify method receivers that collide with arm/storage import aliases
A type whose name's last word is 'Storage' (e.g. FunctionsDeployment_Storage)
yielded a method receiver 'storage', shadowing the storage conversion-package
import alias in generated AssignProperties_To_* methods and breaking the build.
CreateReceiver already qualifies reserved words and short (<=3 char) names; also
qualify names that collide with the fixed conversion-package aliases (arm/storage).
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
* Regenerate cognitiveservices UserOwnedStorage receivers
The generator fix qualifies method receivers that collide with the arm/storage
conversion-package import aliases. UserOwnedStorage's last word is "Storage", so
its receiver changes from "storage" to "ownedStorage". Regenerated repo-wide;
this is the only existing type affected.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
---------
Co-authored-by: Andrei Dorin Oprea <noreply@anthropic.com>1 parent 34f43dd commit a46d57b
3 files changed
Lines changed: 44 additions & 34 deletions
File tree
- v2
- api/cognitiveservices/v1api20250601
- tools/generator/internal/astmodel
Lines changed: 31 additions & 31 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 10 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
232 | 232 | | |
233 | 233 | | |
234 | 234 | | |
235 | | - | |
236 | | - | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
237 | 238 | | |
238 | | - | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
239 | 242 | | |
240 | 243 | | |
241 | 244 | | |
| |||
296 | 299 | | |
297 | 300 | | |
298 | 301 | | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
299 | 306 | | |
300 | 307 | | |
301 | 308 | | |
| |||
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
224 | 224 | | |
225 | 225 | | |
226 | 226 | | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
227 | 230 | | |
228 | 231 | | |
229 | 232 | | |
| |||
0 commit comments