mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-29 20:59:00 +00:00
LibIDL: Emit an error when two decls of the same function are present
Duplicates can show up when copy-pasting IDL snippets into existing IDL files, and the resulting error is extremely useless and misleading. This commit makes it so the parser catches these cases, and emits a more helpful error like "Overload set 'instantiate' contains multiple identical declarations".
This commit is contained in:
parent
bc301b6f40
commit
971e466521
Notes:
sideshowbarker
2024-07-17 08:37:36 +09:00
Author: https://github.com/alimpfard
Commit: 971e466521
Pull-request: https://github.com/SerenityOS/serenity/pull/23212
3 changed files with 30 additions and 2 deletions
|
@ -61,7 +61,7 @@ private:
|
|||
ByteString import_base_path;
|
||||
ByteString filename;
|
||||
StringView input;
|
||||
GenericLexer lexer;
|
||||
LineTrackingLexer lexer;
|
||||
|
||||
HashTable<NonnullOwnPtr<Interface>>& top_level_interfaces();
|
||||
HashTable<NonnullOwnPtr<Interface>> interfaces;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue