Core: Add goto

This commit is contained in:
Krzosa Karol
2023-04-22 13:14:08 +02:00
parent eff6b10cf4
commit 654d6f17e4
10 changed files with 42 additions and 9 deletions

View File

@@ -324,6 +324,7 @@ Ast *ast_copy(Ast *ast, Ast_Scope *parent_scope, Array<Poly_Replacement> *repl)
case AST_BREAK:
case AST_PASS:
case AST_GOTO:
case AST_CONTINUE:
case AST_COMPILER_BREAKPOINT_STMT: {
Ast *src = (Ast *)ast;
@@ -331,6 +332,7 @@ Ast *ast_copy(Ast *ast, Ast_Scope *parent_scope, Array<Poly_Replacement> *repl)
result = dst;
} break;
case AST_LABEL:
case AST_NAMESPACE:
case AST_STRUCT:
case AST_UNION: