mirror of
https://github.com/zebrajr/ladybird.git
synced 2025-12-06 00:19:53 +01:00
LibIDL: Save parsed stringifier_extended_attributes
This commit is contained in:
parent
da620d6ccf
commit
41a6ebfba2
|
|
@ -505,7 +505,9 @@ void Parser::parse_stringifier(HashMap<ByteString, ByteString>& extended_attribu
|
|||
if (lexer.next_is("attribute"sv) || lexer.next_is("inherit"sv) || lexer.next_is("readonly"sv)) {
|
||||
parse_attribute(extended_attributes, interface);
|
||||
interface.stringifier_attribute = interface.attributes.last();
|
||||
interface.stringifier_extended_attributes = interface.stringifier_attribute->extended_attributes;
|
||||
} else {
|
||||
interface.stringifier_extended_attributes = move(extended_attributes);
|
||||
assert_specific(';');
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -280,6 +280,7 @@ public:
|
|||
Vector<Function> functions;
|
||||
Vector<Function> static_functions;
|
||||
bool has_stringifier { false };
|
||||
Optional<HashMap<ByteString, ByteString>> stringifier_extended_attributes;
|
||||
Optional<Attribute> stringifier_attribute;
|
||||
bool has_unscopable_member { false };
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user