ir-gen: add HasAttrNode conversion
Signed-off-by: NotAShelf <raf@notashelf.dev> Change-Id: I8e5bf04734112dc6e0885a42b4d546016a6a6964
This commit is contained in:
parent
59fedbe78d
commit
a69385c5ca
1 changed files with 5 additions and 0 deletions
|
|
@ -137,6 +137,11 @@ struct IRGenerator::Impl {
|
|||
}
|
||||
return std::make_shared<Node>(select);
|
||||
}
|
||||
if (auto* n = node.get_if<HasAttrNode>()) {
|
||||
auto expr = convert(n->expr);
|
||||
auto attr = convert(n->attr);
|
||||
return std::make_shared<Node>(HasAttrNode(expr, attr, n->line));
|
||||
}
|
||||
if (auto* n = node.get_if<WithNode>()) {
|
||||
auto attrs = convert(n->attrs);
|
||||
auto body = convert(n->body);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue