swiftwasm / WebAPIKit

Access the DOM and other Web APIs from Swift! (Very much a WIP)
MIT License
61 stars 8 forks source link

Remove redundant static subscripts on attributes #44

Closed MaxDesiatov closed 2 years ago

MaxDesiatov commented 2 years ago

Some properties in generated code have a layer of indirection due to their use of ReadonlyAttribute and ReadWriteAttribute. There's little value in keeping these static subscripts around and introducing the indirection. Additionally, it makes makes some issues on property code hard to debug when attempting to change union types generation logic in my investigation of https://github.com/swiftwasm/WebAPIKit/issues/43.