Skip to content

Commit

Permalink
Comments
Browse files Browse the repository at this point in the history
  • Loading branch information
catamorphism committed Aug 19, 2011
1 parent e8bcca2 commit 3ddb26e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/comp/syntax/ast.rs
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ fn pat_id_map(pat: &@pat) -> pat_id_map {
ret map;
}

// FIXME: could return a constrained type
iter pat_bindings(pat: &@pat) -> @pat {
alt pat.node {
pat_bind(_) { put pat; }
Expand Down Expand Up @@ -266,7 +267,7 @@ tag init_op { init_assign; init_move; }
type initializer = {op: init_op, expr: @expr};
type local_ = {ty: @ty,
pat: @pat,
pat: @pat, // FIXME: should really be a refinement on pat
init: option::t<initializer>,
id: node_id};
Expand Down

0 comments on commit 3ddb26e

Please sign in to comment.