mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 21:07:35 +00:00
LibWeb: Add support for implementing an IDL class with a different name
Add support for the extended attribute "ImplementedAs" for IDL interfaces too. This allows a class which implements an IDL interface to have a different class name than the interface itself.
This commit is contained in:
parent
62f62a0e52
commit
1b6346ee1c
3 changed files with 10 additions and 4 deletions
|
@ -77,10 +77,10 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
|
|||
StringBuilder builder;
|
||||
builder.append(namespace_);
|
||||
builder.append("::"sv);
|
||||
builder.append(interface.name);
|
||||
builder.append(interface.implemented_name);
|
||||
interface.fully_qualified_name = builder.to_byte_string();
|
||||
} else {
|
||||
interface.fully_qualified_name = interface.name;
|
||||
interface.fully_qualified_name = interface.implemented_name;
|
||||
}
|
||||
|
||||
if constexpr (BINDINGS_GENERATOR_DEBUG) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue