mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 03:07:43 +00:00
LibIDL: Attach extended attributes on enums
This commit is contained in:
parent
ea2b733862
commit
19bf42a7e6
3 changed files with 5 additions and 3 deletions
|
@ -635,12 +635,13 @@ void Parser::parse_namespace(Interface& interface)
|
|||
consume_whitespace();
|
||||
}
|
||||
|
||||
void Parser::parse_enumeration(Interface& interface)
|
||||
void Parser::parse_enumeration(HashMap<DeprecatedString, DeprecatedString> extended_attributes, Interface& interface)
|
||||
{
|
||||
assert_string("enum"sv);
|
||||
consume_whitespace();
|
||||
|
||||
Enumeration enumeration {};
|
||||
enumeration.extended_attributes = move(extended_attributes);
|
||||
|
||||
auto name = lexer.consume_until([](auto ch) { return is_ascii_space(ch); });
|
||||
consume_whitespace();
|
||||
|
@ -832,7 +833,7 @@ void Parser::parse_non_interface_entities(bool allow_interface, Interface& inter
|
|||
if (lexer.next_is("dictionary")) {
|
||||
parse_dictionary(interface);
|
||||
} else if (lexer.next_is("enum")) {
|
||||
parse_enumeration(interface);
|
||||
parse_enumeration(extended_attributes, interface);
|
||||
} else if (lexer.next_is("typedef")) {
|
||||
parse_typedef(interface);
|
||||
} else if (lexer.next_is("interface mixin")) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue