Closed srujzs closed 2 months ago
cc @rutvik110 who was curious about generator changes. In general, changes go into translator.dart
, which contain the following:
special
field of IDL operations to give different names to some operations.package:code_builder
which itself is a representation of Dart code).
-- Here, we just make sure that []=
members don't contain an invalid return type when emitting them as Dart code.The definition for the parsed IDL comes from https://github.com/w3c/webidl2.js.
Since we're using..."weird" operators, would it make sense to add a simple integration test...for just one of the types here.?
Since we're using..."weird" operators, would it make sense to add a simple integration test...for just one of the types here.?
Yup, I tested this locally anyways, so no reason not to add a test for it. I added a smoke test for examples of []
and []=
.
Closes https://github.com/dart-lang/web/issues/127
The IDL defines unnamed getters or setters which should be emitted as special variants of the index operators.