Commit 979f4a9
chore: resolve Object langAliases in function argument types
Inner Objects nested inside function-typed arguments are not visited
by createClassesAndEnums, so the api generator never set customType
for them and had to fall back to a hardcoded jsonPath switch (the
Screencast.start.onFrame -> Consumer<ScreencastFrame> case).
Have convertBuiltinType resolve the Java type name from the inner
Object's langAliases when no customType is set, and drop the hardcoded
onFrame case. This works once microsoft/playwright adds alias-java
for the onFrame Object (already proposed upstream).
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 7dbd6ca commit 979f4a9
1 file changed
Lines changed: 6 additions & 3 deletions
Lines changed: 6 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
506 | 506 | | |
507 | 507 | | |
508 | 508 | | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
509 | 515 | | |
510 | 516 | | |
511 | 517 | | |
| |||
525 | 531 | | |
526 | 532 | | |
527 | 533 | | |
528 | | - | |
529 | | - | |
530 | | - | |
531 | 534 | | |
532 | 535 | | |
533 | 536 | | |
| |||
0 commit comments