Title: BridgeJS: Enable struct as default parameter and enable default parameters in struct init / methods by krodak · Pull Request #480 · swiftwasm/JavaScriptKit · GitHub
Open Graph Title: BridgeJS: Enable struct as default parameter and enable default parameters in struct init / methods by krodak · Pull Request #480 · swiftwasm/JavaScriptKit
X Title: BridgeJS: Enable struct as default parameter and enable default parameters in struct init / methods by krodak · Pull Request #480 · swiftwasm/JavaScriptKit
Description: Introduction This PR extends support for default parameter values when exporting Swift functions and constructors to JavaScript/TypeScript using the BridgeJS plugin. It adds ability to: use struct as default parameter use default parameters in struct init and methods Additional Changes Some minor refactor to DefaultValueGenerator was needed, it got refactored into DefaultValueUtils, moved outside of BridgeJSLink as it needs to be used in JSGlueGen. I considered moving it to separate module, considered using BridgeJSUtilities too, but it would require dependency on BridgeJSSkeleton so probably not worth it. I think I might eventually extract some StackBasedThunkBuilder after array implementation to extract some helper functionality and lowering / lifting from JSGlueGen for stack-based types, but let's see after Array implementation 😅 Hope this is ok enough for now, but I'm happy to extract this into separate file, module or use different approach.
Open Graph Description: Introduction This PR extends support for default parameter values when exporting Swift functions and constructors to JavaScript/TypeScript using the BridgeJS plugin. It adds ability to: use struct...
X Description: Introduction This PR extends support for default parameter values when exporting Swift functions and constructors to JavaScript/TypeScript using the BridgeJS plugin. It adds ability to: use struct...
Opengraph URL: https://github.com/swiftwasm/JavaScriptKit/pull/480
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:4ce0a517-99a5-cbe7-cc16-de230c641316 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 8C28:32FD5:1B85238:2558F49:697AA5C9 |
| html-safe-nonce | 730134e45be199776cf50783f8fda5759d442658c13bf1f5f839906c62469528 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4QzI4OjMyRkQ1OjFCODUyMzg6MjU1OEY0OTo2OTdBQTVDOSIsInZpc2l0b3JfaWQiOiI0ODAzMjA0NTM4OTgwNTQxODk3IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 66defa118bf0750de0cb78e0d45899e459a0a73c060a974a1a4e5adb7abb09c8 |
| hovercard-subject-tag | pull_request:3123441342 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/swiftwasm/JavaScriptKit/pull/480/files |
| twitter:image | https://avatars.githubusercontent.com/u/1955364?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/1955364?s=400&v=4 |
| og:image:alt | Introduction This PR extends support for default parameter values when exporting Swift functions and constructors to JavaScript/TypeScript using the BridgeJS plugin. It adds ability to: use struct... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4d375b6c612de26fd037e0638eaf57e32cf9b16daf53ab68c25c04cd3b058113 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/swiftwasm/JavaScriptKit git https://github.com/swiftwasm/JavaScriptKit.git |
| octolytics-dimension-user_id | 49500752 |
| octolytics-dimension-user_login | swiftwasm |
| octolytics-dimension-repository_id | 244832006 |
| octolytics-dimension-repository_nwo | swiftwasm/JavaScriptKit |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 244832006 |
| octolytics-dimension-repository_network_root_nwo | swiftwasm/JavaScriptKit |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 5b310e2c1221fb24ffd3f38a097000863d2dfdd4 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width