mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 01:35:08 +02:00
BindingsGenerator+LibIDL: Parse "inherit" attributes
An "inherit attribute" calls an ancestor's getter with the same name, but defines its own setter. Since a parent class's public methods are exposed to child classes, we don't have to do any special handling here to call the parent's methods, it just works. :^)
This commit is contained in:
Notes:
sideshowbarker
2024-07-17 18:49:10 +09:00
Author: https://github.com/AtkinsSJ Commit: https://github.com/SerenityOS/serenity/commit/a6f0508f9f Pull-request: https://github.com/SerenityOS/serenity/pull/15483 Reviewed-by: https://github.com/linusg ✅
@@ -111,7 +111,8 @@ int main(int argc, char** argv)
|
||||
if constexpr (BINDINGS_GENERATOR_DEBUG) {
|
||||
dbgln("Attributes:");
|
||||
for (auto& attribute : interface.attributes) {
|
||||
dbgln(" {}{}{} {}",
|
||||
dbgln(" {}{}{}{} {}",
|
||||
attribute.inherit ? "inherit " : "",
|
||||
attribute.readonly ? "readonly " : "",
|
||||
attribute.type->name(),
|
||||
attribute.type->is_nullable() ? "?" : "",
|
||||
|
||||
Reference in New Issue
Block a user