mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 09:07:35 +00:00
LibIDL: Avoid unnecessary copies of imported paths
This commit is contained in:
parent
fe9e09fa3a
commit
72756f09f4
1 changed files with 15 additions and 13 deletions
|
@ -942,6 +942,7 @@ Interface& Parser::parse()
|
||||||
top_level_resolved_imports().set(this_module, &interface);
|
top_level_resolved_imports().set(this_module, &interface);
|
||||||
|
|
||||||
Vector<Interface&> imports;
|
Vector<Interface&> imports;
|
||||||
|
{
|
||||||
HashTable<DeprecatedString> required_imported_paths;
|
HashTable<DeprecatedString> required_imported_paths;
|
||||||
while (lexer.consume_specific("#import")) {
|
while (lexer.consume_specific("#import")) {
|
||||||
consume_whitespace();
|
consume_whitespace();
|
||||||
|
@ -956,7 +957,8 @@ Interface& Parser::parse()
|
||||||
}
|
}
|
||||||
consume_whitespace();
|
consume_whitespace();
|
||||||
}
|
}
|
||||||
interface.required_imported_paths = required_imported_paths;
|
interface.required_imported_paths = move(required_imported_paths);
|
||||||
|
}
|
||||||
|
|
||||||
parse_non_interface_entities(true, interface);
|
parse_non_interface_entities(true, interface);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue