also looking at this
Port to latest zig-master
#2
53 files
+1149
-1017
| @@ -324,7 +324,6 @@ pub const PatternAnalyzer = struct { | ||
| 324 | 324 | } |
| 325 | 325 | |
| 326 | 326 | fn nodesAreIdentical(self: *PatternAnalyzer, left: *ast.Node, right: *ast.Node) bool { |
| 327 | ||
| 328 | 327 | if (left.node_type != right.node_type) return false; |
| 329 | 328 | |
| 330 | 329 | return switch (left.node_type) { |
| @@ -337,7 +336,7 @@ pub const PatternAnalyzer = struct { | ||
| 337 | 336 | const left_concat = left.data.concat; |
| 338 | 337 | const right_concat = right.data.concat; |
| 339 | 338 | return self.nodesAreIdentical(left_concat.left, right_concat.left) and |
| 340 | self.nodesAreIdentical(left_concat.right, right_concat.right); | |
| 339 | self.nodesAreIdentical(left_concat.right, right_concat.right); | |
| 341 | 340 | }, |
| 342 | 341 | else => false, |
| 343 | 342 | }; |