mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 07:47:35 +00:00
LibWeb: Include relevant headers in IDL constructor implementations
Similarly to implementations of prototype methods, the implementations of constructors sometimes require generated types.
This commit is contained in:
parent
a7f2d46b49
commit
b172b56757
1 changed files with 8 additions and 0 deletions
|
@ -2657,6 +2657,14 @@ void generate_constructor_implementation(IDL::Interface const& interface)
|
||||||
# include <LibWeb/URL/@name@.h>
|
# include <LibWeb/URL/@name@.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
)~~~");
|
||||||
|
|
||||||
|
for (auto& path : interface.required_imported_paths)
|
||||||
|
generate_include_for(generator, path);
|
||||||
|
|
||||||
|
emit_includes_for_all_imports(interface, generator, interface.pair_iterator_types.has_value());
|
||||||
|
|
||||||
|
generator.append(R"~~~(
|
||||||
// FIXME: This is a total hack until we can figure out the namespace for a given type somehow.
|
// FIXME: This is a total hack until we can figure out the namespace for a given type somehow.
|
||||||
using namespace Web::CSS;
|
using namespace Web::CSS;
|
||||||
using namespace Web::DOM;
|
using namespace Web::DOM;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue