aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/testbindingiterable.rs
diff options
context:
space:
mode:
authorJosh Matthews <josh@joshmatthews.net>2016-08-11 11:21:47 -0400
committerJosh Matthews <josh@joshmatthews.net>2016-08-24 11:25:58 -0400
commit221bc846935a321747fff30689218de7543c964b (patch)
tree6f701bc79c674b122a1c84bbcedcad16b5e4171c /components/script/dom/testbindingiterable.rs
parent49d483590e2e1b070271927132413e2078afe27f (diff)
downloadservo-221bc846935a321747fff30689218de7543c964b.tar.gz
servo-221bc846935a321747fff30689218de7543c964b.zip
Support multiple WebIDL interfaces being generated in the same output binding file.
Each interface gets its own module named ${Interface}Binding. Structs, enums, and callbacks continue to use the root module of the binding file. If there is only one interface in the file, we generate reexports for several public APIs and types so that existing DOM implementations don't need any modifications. When multiple interfaces exist, the reexported names get the interface name prepended (eg. FooWrap instead of Wrap). As part of this work, stop glob-importing all DOM types in every generated binding and start generating more targeted lists of relevant types based on the methods, members, etc. of WebIDL types that are in use.
Diffstat (limited to 'components/script/dom/testbindingiterable.rs')
0 files changed, 0 insertions, 0 deletions