wasm shell + destructuring
This commit is contained in:
@@ -817,6 +817,9 @@ pub const Analyzer = struct {
|
||||
for (ma.targets) |t| try self.analyzeNode(t);
|
||||
for (ma.values) |v| try self.analyzeNode(v);
|
||||
},
|
||||
.destructure_decl => |dd| {
|
||||
try self.analyzeNode(dd.value);
|
||||
},
|
||||
.return_stmt => |ret| {
|
||||
if (ret.value) |val| {
|
||||
try self.analyzeNode(val);
|
||||
@@ -1226,6 +1229,9 @@ pub fn findNodeAtOffset(node: *Node, offset: u32) ?*Node {
|
||||
if (findNodeAtOffset(v, offset)) |found| return found;
|
||||
}
|
||||
},
|
||||
.destructure_decl => |dd| {
|
||||
if (findNodeAtOffset(dd.value, offset)) |found| return found;
|
||||
},
|
||||
.return_stmt => |ret| {
|
||||
if (ret.value) |val| {
|
||||
if (findNodeAtOffset(val, offset)) |found| return found;
|
||||
|
||||
Reference in New Issue
Block a user