We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cbf335e commit 0a01fc0Copy full SHA for 0a01fc0
lib/src/ast.rs
@@ -82,25 +82,17 @@ pub enum ExprKind {
82
/// Numeric literal
83
Literal(Decimal),
84
/// Identifier (constant or variable)
85
- Ident {
86
- name: String,
87
- },
+ Ident { name: String },
88
/// Unary operation
89
- Unary {
90
- op: UnOp,
91
- expr: Box<Expr>,
92
+ Unary { op: UnOp, expr: Box<Expr> },
93
/// Binary operation
94
Binary {
95
op: BinOp,
96
left: Box<Expr>,
97
right: Box<Expr>,
98
},
99
/// Function call
100
- Call {
101
102
- args: Vec<Expr>,
103
+ Call { name: String, args: Vec<Expr> },
104
}
105
106
impl Expr {
0 commit comments