...
This commit is contained in:
@@ -49,6 +49,7 @@ pub const Node = struct {
|
||||
array_literal: ArrayLiteral,
|
||||
parameterized_type_expr: ParameterizedTypeExpr,
|
||||
index_expr: IndexExpr,
|
||||
slice_expr: SliceExpr,
|
||||
while_expr: WhileExpr,
|
||||
for_expr: ForExpr,
|
||||
spread_expr: SpreadExpr,
|
||||
@@ -299,6 +300,12 @@ pub const IndexExpr = struct {
|
||||
index: *Node,
|
||||
};
|
||||
|
||||
pub const SliceExpr = struct {
|
||||
object: *Node,
|
||||
start: ?*Node = null,
|
||||
end: ?*Node = null,
|
||||
};
|
||||
|
||||
pub const WhileExpr = struct {
|
||||
condition: *Node,
|
||||
body: *Node,
|
||||
|
||||
Reference in New Issue
Block a user