servo/components/script_bindings/codegen
Simon Wülker edea2caec1
Make getAllTypes unwrap IDL record<K, V> types (#37039)
IDL `record` types can themselves contain types that are not described
anywhere else. An example is in
https://github.com/servo/servo/issues/37038, where the `record` contains
a definition of a union. These inner types must be returned from
`getAllTypes`, otherwise we won't generate code for them.

This PR also adds a few type annotations. I can remove them if
requested, but I think they're helpful.

Testing:  Includes a regression test
Fixes: https://github.com/servo/servo/issues/37038

---------

Signed-off-by: Simon Wülker <simon.wuelker@arcor.de>
2025-05-18 09:30:20 +00:00
..
api.html.template
apis.html.template
Bindings.conf Implement iframe.srcdoc trusted type sink (#36960) 2025-05-13 21:07:13 +00:00
CodegenRust.py Make getAllTypes unwrap IDL record<K, V> types (#37039) 2025-05-18 09:30:20 +00:00
Configuration.py Support static and instance members having the same name in IDLs (#36523) 2025-04-16 21:00:52 +00:00
interface.html.template
property.html.template
run.py Remove legacy layout (layout 2013) (#35943) 2025-03-13 07:26:57 +00:00