From 13480b2c54500bcea56af640ded191a771158b79 Mon Sep 17 00:00:00 2001 From: Klesti Selimaj Date: Sat, 16 May 2026 22:40:39 +0200 Subject: [PATCH] removed var assign statement struct --- parser/src/ast.rs | 6 ------ src/codegen.rs | 4 ++-- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/parser/src/ast.rs b/parser/src/ast.rs index 834dc35..9498fac 100644 --- a/parser/src/ast.rs +++ b/parser/src/ast.rs @@ -249,12 +249,6 @@ pub struct FieldDeclStmt { pub init: Option, } -#[derive(Debug, Clone, Serialize)] -pub struct VarAssignStmt { - pub target: Expression, - pub value: Expression, -} - #[derive(Debug, Clone, Serialize)] pub struct StatementBranch { pub condition: Expression, diff --git a/src/codegen.rs b/src/codegen.rs index b3fbfe5..a5aec25 100644 --- a/src/codegen.rs +++ b/src/codegen.rs @@ -1,8 +1,8 @@ use mist_parser::ast::{ Attribute, BinaryOp, Block, ClassItem, EnumItem, Expression, FieldDecl, FunctionDecl, Generic, Generics, Identifier, ImplDecl, Literal, Path, Pattern, Postfix, Prefix, Statement, - StatementBranch, TopLevel, TopLevelKind, TypeExpr, TypeExprKind, TypePostfix, VarAssignStmt, - VarDecl, VarDeclStmt, Visibility, + StatementBranch, TopLevel, TopLevelKind, TypeExpr, TypeExprKind, TypePostfix, VarDecl, + VarDeclStmt, Visibility, }; // ---------------------------------------------------------------------------