shadow naming

This commit is contained in:
Xuan Son Nguyen 2025-12-27 16:06:23 +01:00
parent 7ad6eb39ca
commit 8d1e9a0d12
1 changed files with 6 additions and 5 deletions

View File

@ -112,13 +112,13 @@ struct continue_statement : public statement {
struct set_statement : public statement { struct set_statement : public statement {
statement_ptr assignee; statement_ptr assignee;
statement_ptr value; statement_ptr val;
statements body; statements body;
set_statement(statement_ptr && assignee, statement_ptr && value, statements && body) set_statement(statement_ptr && assignee, statement_ptr && value, statements && body)
: assignee(std::move(assignee)), value(std::move(value)), body(std::move(body)) { : assignee(std::move(assignee)), val(std::move(value)), body(std::move(body)) {
chk_type<expression>(this->assignee); chk_type<expression>(this->assignee);
chk_type<expression>(this->value); chk_type<expression>(this->val);
} }
std::string type() const override { return "Set"; } std::string type() const override { return "Set"; }
@ -141,8 +141,8 @@ struct macro_statement : public statement {
}; };
struct comment_statement : public statement { struct comment_statement : public statement {
std::string value; std::string val;
explicit comment_statement(const std::string & value) : value(value) {} explicit comment_statement(const std::string & v) : val(v) {}
std::string type() const override { return "Comment"; } std::string type() const override { return "Comment"; }
value execute(context & ctx) override {} value execute(context & ctx) override {}
}; };
@ -266,6 +266,7 @@ struct filter_expression : public expression {
chk_type<identifier, call_expression>(this->filter); chk_type<identifier, call_expression>(this->filter);
} }
std::string type() const override { return "FilterExpression"; } std::string type() const override { return "FilterExpression"; }
value execute(context & ctx) override;
}; };
struct filter_statement : public statement { struct filter_statement : public statement {