diff options
| author | Graydon Hoare <[email protected]> | 2010-09-14 10:52:32 -0700 |
|---|---|---|
| committer | Graydon Hoare <[email protected]> | 2010-09-14 10:52:32 -0700 |
| commit | 7287d3aaa0545a9b22cea874f2d751de4fefd23d (patch) | |
| tree | d35680fc38e9a559d466be476066bb34243415e2 /src/boot/me/walk.ml | |
| parent | Update manual to cover change to nominal tag items. (diff) | |
| download | rust-7287d3aaa0545a9b22cea874f2d751de4fefd23d.tar.xz rust-7287d3aaa0545a9b22cea874f2d751de4fefd23d.zip | |
Teach front-end about simple, first-cut version of const items.
Diffstat (limited to 'src/boot/me/walk.ml')
| -rw-r--r-- | src/boot/me/walk.ml | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/boot/me/walk.ml b/src/boot/me/walk.ml index 09cde999..7b89cbd8 100644 --- a/src/boot/me/walk.ml +++ b/src/boot/me/walk.ml @@ -173,6 +173,9 @@ and walk_mod_item let children _ = match item.node.Ast.decl_item with Ast.MOD_ITEM_type (_, ty) -> walk_ty v ty + | Ast.MOD_ITEM_const (ty, e) -> + walk_ty v ty; + walk_option (walk_expr v) e | Ast.MOD_ITEM_fn f -> walk_fn v f item.id | Ast.MOD_ITEM_tag (hdr, _, _) -> walk_header_slots v hdr |