mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-29 05:38:24 +00:00
LibIDL: Parse extended attributes before required
keyword
This commit is contained in:
parent
04ac06f3c4
commit
e534395243
Notes:
github-actions[bot]
2025-08-06 17:20:08 +00:00
Author: https://github.com/AronHetLam 🔰
Commit: e534395243
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5727
Reviewed-by: https://github.com/AtkinsSJ ✅
Reviewed-by: https://github.com/gmta
1 changed files with 4 additions and 1 deletions
|
@ -955,13 +955,16 @@ void Parser::parse_dictionary(Interface& interface)
|
|||
bool required = false;
|
||||
HashMap<ByteString, ByteString> extended_attributes;
|
||||
|
||||
if (lexer.consume_specific('['))
|
||||
extended_attributes = parse_extended_attributes();
|
||||
|
||||
if (lexer.consume_specific("required"sv)) {
|
||||
required = true;
|
||||
consume_whitespace();
|
||||
}
|
||||
|
||||
if (lexer.consume_specific('['))
|
||||
extended_attributes = parse_extended_attributes();
|
||||
extended_attributes.update(parse_extended_attributes());
|
||||
|
||||
auto type = parse_type();
|
||||
consume_whitespace();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue