1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 14:18:12 +00:00

LibIDL: Allow extended attributes on non-required IDL dictionary members

For example, WebAssembly.Memory will have:

    [EnforceRange] unsigned long maximum;
This commit is contained in:
Timothy Flynn 2023-03-15 18:33:09 -04:00 committed by Andreas Kling
parent 3a11f65451
commit 1ff75618c0

View file

@ -727,10 +727,11 @@ void Parser::parse_dictionary(Interface& interface)
if (lexer.consume_specific("required")) {
required = true;
consume_whitespace();
if (lexer.consume_specific('['))
extended_attributes = parse_extended_attributes();
}
if (lexer.consume_specific('['))
extended_attributes = parse_extended_attributes();
auto type = parse_type();
consume_whitespace();