mirror of
https://github.com/exaloop/codon.git
synced 2025-06-03 15:03:52 +08:00
Fix PartialAttr function name
This commit is contained in:
parent
dfe24cd38d
commit
a8bc79b3a2
@ -66,7 +66,8 @@ ir::Value *TranslateVisitor::transform(const ExprPtr &expr) {
|
||||
}
|
||||
if (expr->hasAttr(ExprAttr::Partial))
|
||||
p = expr->type->getPartial().get();
|
||||
// LOG("{} {}: {}", std::string(ctx->seqItems.size(), ' '), expr->attributes, expr->toString());
|
||||
// LOG("{} {}: {}", std::string(ctx->seqItems.size(), ' '), expr->attributes,
|
||||
// expr->toString());
|
||||
}
|
||||
|
||||
expr->accept(v);
|
||||
@ -119,8 +120,8 @@ ir::Value *TranslateVisitor::transform(const ExprPtr &expr) {
|
||||
v.push_back({nullptr});
|
||||
}
|
||||
}
|
||||
// seqassert(j == ctx->seqItems.back().size(), "invalid partial element");
|
||||
ir->setAttribute(std::make_unique<ir::PartialFunctionAttribute>(nullptr, v));
|
||||
ir->setAttribute(
|
||||
std::make_unique<ir::PartialFunctionAttribute>(p->func->ast->name, v));
|
||||
ctx->seqItems.pop_back();
|
||||
}
|
||||
if (expr->hasAttr(ExprAttr::SequenceItem)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user