diff options
| author | Michael Sullivan <sully@msully.net> | 2011-06-24 15:11:22 -0700 |
|---|---|---|
| committer | Michael Sullivan <sully@msully.net> | 2011-06-24 15:46:20 -0700 |
| commit | f3717da1b1dd556d19b449fc648e21c19ace1fb6 (patch) | |
| tree | b615fc3398bb0129cb38499f1103bac5ab33aaae /src/comp/front | |
| parent | 142ff011da9f82a10e87c9436c2d1b877b2828a2 (diff) | |
| download | rust-f3717da1b1dd556d19b449fc648e21c19ace1fb6.tar.gz rust-f3717da1b1dd556d19b449fc648e21c19ace1fb6.zip | |
Modify the fn vistors in walk so that they can handle functions without names. Update the typestate code to understand this.
Diffstat (limited to 'src/comp/front')
| -rw-r--r-- | src/comp/front/ast.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/comp/front/ast.rs b/src/comp/front/ast.rs index 75145a89a10..b19644eb205 100644 --- a/src/comp/front/ast.rs +++ b/src/comp/front/ast.rs @@ -8,6 +8,8 @@ import util::common::ty_mach; import util::common::filename; type ident = str; +// Functions may or may not have names. +type fn_ident = option::t[ident]; type path_ = rec(vec[ident] idents, vec[@ty] types); |
