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:
parent
3a11f65451
commit
1ff75618c0
1 changed files with 3 additions and 2 deletions
|
@ -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();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue