mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-21 16:58:58 +00:00
LibIDL: Support extended attributes on namespace members
Specifically, this is so that ImplementedAs can be used on them.
This commit is contained in:
parent
6e3cd7dd06
commit
66710f0065
Notes:
github-actions[bot]
2025-09-11 16:07:53 +00:00
Author: https://github.com/AtkinsSJ
Commit: 66710f0065
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6071
1 changed files with 8 additions and 1 deletions
|
@ -842,6 +842,8 @@ void Parser::parse_namespace(Interface& interface)
|
|||
assert_specific('{');
|
||||
|
||||
for (;;) {
|
||||
HashMap<ByteString, ByteString> extended_attributes;
|
||||
|
||||
consume_whitespace();
|
||||
|
||||
if (lexer.consume_specific('}')) {
|
||||
|
@ -850,7 +852,12 @@ void Parser::parse_namespace(Interface& interface)
|
|||
break;
|
||||
}
|
||||
|
||||
HashMap<ByteString, ByteString> extended_attributes;
|
||||
if (lexer.consume_specific('[')) {
|
||||
extended_attributes = parse_extended_attributes();
|
||||
if (!interface.has_unscopable_member && extended_attributes.contains("Unscopable"))
|
||||
interface.has_unscopable_member = true;
|
||||
}
|
||||
|
||||
parse_function(extended_attributes, interface);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue