Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGenerate import list in codegen bindings from types used #1788
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
We want/need to get rid of glob imports, so we're going to have to analyze all the types used by a given interface (arguments, attributes, unions, etc.) and import them instead of using
dom::bindings::codegen::*,dom::types::*, anddom::bindings::codegen::UnionTypes::*. There's existing code in Gecko's codegen (Codegen.py, or possibly the one in mozilla-central) we may be able to adapt.