irc: support merge operator
Signed-off-by: NotAShelf <raf@notashelf.dev> Change-Id: Icfb0cc81542e637d4b91c6a5788370fb6a6a6964
This commit is contained in:
parent
38c13de01d
commit
59fcd3ef92
4 changed files with 71 additions and 18 deletions
|
|
@ -162,7 +162,8 @@ struct IRGenerator::Impl {
|
|||
name_resolver.bind(key);
|
||||
}
|
||||
std::vector<std::pair<std::string, std::shared_ptr<Node>>> new_bindings;
|
||||
for (const auto& [key, val] : n->bindings) {
|
||||
new_bindings.reserve(n->bindings.size());
|
||||
for (const auto& [key, val] : n->bindings) {
|
||||
new_bindings.push_back({key, convert(val)});
|
||||
}
|
||||
auto body = convert(n->body);
|
||||
|
|
@ -177,7 +178,8 @@ struct IRGenerator::Impl {
|
|||
name_resolver.bind(key);
|
||||
}
|
||||
std::vector<std::pair<std::string, std::shared_ptr<Node>>> new_bindings;
|
||||
for (const auto& [key, val] : n->bindings) {
|
||||
new_bindings.reserve(n->bindings.size());
|
||||
for (const auto& [key, val] : n->bindings) {
|
||||
new_bindings.push_back({key, convert(val)});
|
||||
}
|
||||
auto body = convert(n->body);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue