wasm shell + destructuring
This commit is contained in:
@@ -32,6 +32,7 @@ pub const Node = struct {
|
||||
var_decl: VarDecl,
|
||||
assignment: Assignment,
|
||||
multi_assign: MultiAssign,
|
||||
destructure_decl: DestructureDecl,
|
||||
enum_decl: EnumDecl,
|
||||
struct_decl: StructDecl,
|
||||
struct_literal: StructLiteral,
|
||||
@@ -263,6 +264,11 @@ pub const MultiAssign = struct {
|
||||
values: []const *Node,
|
||||
};
|
||||
|
||||
pub const DestructureDecl = struct {
|
||||
names: []const []const u8,
|
||||
value: *Node,
|
||||
};
|
||||
|
||||
pub const EnumDecl = struct {
|
||||
name: []const u8,
|
||||
variant_names: []const []const u8,
|
||||
|
||||
Reference in New Issue
Block a user