mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 01:35:08 +02:00
LibIDL: Remove static maps for interfaces and resolved imports
Instead, create a tree of Parsers all pointing to a top-level Parser. All module imports and interfaces are stored at the top level, instead of in a static map. This allows creating multiple IDL::Parsers in the same process without them stepping on each others toes.
This commit is contained in:
committed by
Andreas Kling
parent
2341294c20
commit
067a53b7e7
Notes:
sideshowbarker
2024-07-18 22:57:59 +09:00
Author: https://github.com/ADKaster Commit: https://github.com/SerenityOS/serenity/commit/067a53b7e7 Pull-request: https://github.com/SerenityOS/serenity/pull/15520
@@ -71,7 +71,8 @@ int main(int argc, char** argv)
|
||||
if (import_base_path.is_null())
|
||||
import_base_path = lexical_path.dirname();
|
||||
|
||||
auto& interface = IDL::Parser(path, data, import_base_path).parse();
|
||||
IDL::Parser parser(path, data, import_base_path);
|
||||
auto& interface = parser.parse();
|
||||
|
||||
static constexpr Array libweb_interface_namespaces = {
|
||||
"CSS"sv,
|
||||
|
||||
Reference in New Issue
Block a user