we slow >~<
This commit is contained in:
parent
c5a9c83c73
commit
d266725f9b
@ -238,6 +238,7 @@ void checker_check_assign(Checker* checker, SymbolTable* table, ASTNode* node)
|
|||||||
|
|
||||||
void checker_check_let(Checker* checker, SymbolTable* table, ASTNode* node)
|
void checker_check_let(Checker* checker, SymbolTable* table, ASTNode* node)
|
||||||
{
|
{
|
||||||
|
checker_check_expr(checker, table, node->let_node.value);
|
||||||
Symbol* found
|
Symbol* found
|
||||||
= symbol_table_resolve_local(table, node->let_node.id->id_value);
|
= symbol_table_resolve_local(table, node->let_node.id->id_value);
|
||||||
if (found != NULL) {
|
if (found != NULL) {
|
||||||
@ -245,7 +246,6 @@ void checker_check_let(Checker* checker, SymbolTable* table, ASTNode* node)
|
|||||||
print_error("checker: redefinition", node->pos);
|
print_error("checker: redefinition", node->pos);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
checker_check_expr(checker, table, node->let_node.value);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void checker_check_fn(Checker* checker, SymbolTable* table, ASTNode* node) { }
|
void checker_check_fn(Checker* checker, SymbolTable* table, ASTNode* node) { }
|
||||||
|
Loading…
Reference in New Issue
Block a user