aboutsummaryrefslogtreecommitdiff
path: root/src/boot/me
diff options
context:
space:
mode:
authorOr Brostovski <[email protected]>2010-08-05 03:44:29 +0300
committerGraydon Hoare <[email protected]>2010-08-06 17:34:31 -0700
commita0cc4817e952f1a022b1ad9c01793db1735a579e (patch)
tree542e350bf1e69ebdaf2a570607b8cc2dce06600b /src/boot/me
parentImplement _str.len() to return the number of bytes, rename it to byte_len(), (diff)
downloadrust-a0cc4817e952f1a022b1ad9c01793db1735a579e.tar.xz
rust-a0cc4817e952f1a022b1ad9c01793db1735a579e.zip
Added AST logging, and modified AST for consistent handling of alt stmts.
- Modified the arm types, instead of a single arm type, there are now 2 (soon to be 3) arm types, one for each type of alt statement - Added AST logging for constrained type (see fmt_constrained) - Added AST logging for STMT_alt_type - Created a generic fmt_arm for use with all alt statements
Diffstat (limited to 'src/boot/me')
-rw-r--r--src/boot/me/dead.ml3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/boot/me/dead.ml b/src/boot/me/dead.ml
index 61aa846a..7ef4bf8e 100644
--- a/src/boot/me/dead.ml
+++ b/src/boot/me/dead.ml
@@ -70,7 +70,8 @@ let dead_code_visitor
| Ast.STMT_alt_type { Ast.alt_type_arms = arms;
Ast.alt_type_else = alt_type_else } ->
- let arm_ids = Array.map (fun (_, _, block) -> block.id) arms in
+ let arm_ids = Array.map (fun { node = (_, _, block) } ->
+ block.id) arms in
let else_ids =
begin
match alt_type_else with