mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-11 12:06:07 +00:00
IDLGenerators: Generate impl_from() for types that have setlike
Found by this interface, which has nothing else in it: ``` [Exposed=Window] interface CustomStateSet { setlike<DOMString>; }; ```
This commit is contained in:
parent
efcbec250f
commit
be21d952b1
Notes:
github-actions[bot]
2025-07-04 17:12:08 +00:00
Author: https://github.com/AtkinsSJ
Commit: be21d952b1
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5302
Reviewed-by: https://github.com/tcl3 ✅
1 changed files with 1 additions and 1 deletions
|
@ -3742,7 +3742,7 @@ static void generate_prototype_or_global_mixin_definitions(IDL::Interface const&
|
||||||
generator.set("iterator_name", ByteString::formatted("{}Iterator", interface.name));
|
generator.set("iterator_name", ByteString::formatted("{}Iterator", interface.name));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!interface.attributes.is_empty() || !interface.functions.is_empty() || interface.has_stringifier) {
|
if (!interface.attributes.is_empty() || !interface.functions.is_empty() || interface.has_stringifier || interface.set_entry_type.has_value()) {
|
||||||
generator.append(R"~~~(
|
generator.append(R"~~~(
|
||||||
[[maybe_unused]] static JS::ThrowCompletionOr<@fully_qualified_name@*> impl_from(JS::VM& vm)
|
[[maybe_unused]] static JS::ThrowCompletionOr<@fully_qualified_name@*> impl_from(JS::VM& vm)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue