From 41f47f3241873f01f3840091c4ca8f120bb48b0b Mon Sep 17 00:00:00 2001 From: Selimaj Dev Date: Fri, 17 Apr 2026 03:59:00 +0200 Subject: [PATCH] Cleaner json output --- parser/src/ast.rs | 5 ----- 1 file changed, 5 deletions(-) diff --git a/parser/src/ast.rs b/parser/src/ast.rs index 4d9f0c7..2f9aa4f 100644 --- a/parser/src/ast.rs +++ b/parser/src/ast.rs @@ -9,7 +9,6 @@ pub struct ParamList(pub Vec<(String, TypeExpr)>); pub struct Block(pub Vec); #[derive(Debug, Clone, Serialize)] -#[serde(tag = "type", content = "value")] pub enum TypeExpr { Identifier(String), } @@ -30,7 +29,6 @@ pub enum BinaryOp { } #[derive(Debug, Clone, Serialize)] -#[serde(tag = "type", content = "value")] pub enum TopLevel { Import(String), StructDecl { @@ -48,7 +46,6 @@ pub enum TopLevel { } #[derive(Debug, Clone, Serialize)] -#[serde(tag = "type", content = "value")] pub enum Postfix { FieldAccess(String), Call(Vec), @@ -57,7 +54,6 @@ pub enum Postfix { } #[derive(Debug, Clone, Serialize)] -#[serde(tag = "type", content = "value")] pub enum Statement { // expr; Expression(Expression), @@ -106,7 +102,6 @@ pub enum Statement { } #[derive(Debug, Clone, Serialize)] -#[serde(tag = "type", content = "value")] pub enum Expression { Identifier(String), IntLiteral(i64),