Changed statement kinds

This commit is contained in:
Rafał Grodziński
2025-06-23 11:33:57 +09:00
parent f1ae9c61bc
commit fefde721c0
7 changed files with 12 additions and 15 deletions

View File

@@ -29,10 +29,10 @@ shared_ptr<llvm::Module> ModuleBuilder::getModule() {
void ModuleBuilder::buildStatement(shared_ptr<Statement> statement) {
switch (statement->getKind()) {
case StatementKind::FUNCTION_DECLARATION:
case StatementKind::FUNCTION:
buildFunctionDeclaration(dynamic_pointer_cast<StatementFunction>(statement));
break;
case StatementKind::VAR_DECLARATION:
case StatementKind::VARIABLE:
buildVarDeclaration(dynamic_pointer_cast<StatementVariable>(statement));
break;
case StatementKind::BLOCK: