renamed let to let_stmt

This commit is contained in:
Karma Riuk
2025-07-07 17:44:11 +02:00
parent 39eafe2360
commit b98424aa5f
6 changed files with 17 additions and 13 deletions

View File

@@ -10,8 +10,8 @@
void test_let_statement(ast::statement* stmt, const std::string name) {
REQUIRE(stmt->token_literal() == "let");
ast::let* let_stmt;
REQUIRE_NOTHROW(let_stmt = dynamic_cast<ast::let*>(stmt));
ast::let_stmt* let_stmt;
REQUIRE_NOTHROW(let_stmt = dynamic_cast<ast::let_stmt*>(stmt));
REQUIRE_MESSAGE(
let_stmt != nullptr,
"Couldn't cast statement to a let statement"