diff options
| author | Graydon Hoare <[email protected]> | 2010-09-20 20:19:22 -0700 |
|---|---|---|
| committer | Graydon Hoare <[email protected]> | 2010-09-20 20:19:22 -0700 |
| commit | c17964c06d24300e5f9073f0b7ab4ffaffd78a89 (patch) | |
| tree | 7996174fc01f36e5434dd57c68b323c7806025bf /src/boot/fe/ast.ml | |
| parent | Add issue #163 testcase to str-append testcase. (diff) | |
| download | rust-c17964c06d24300e5f9073f0b7ab4ffaffd78a89.tar.xz rust-c17964c06d24300e5f9073f0b7ab4ffaffd78a89.zip | |
Use name_base in plval base.
Diffstat (limited to 'src/boot/fe/ast.ml')
| -rw-r--r-- | src/boot/fe/ast.ml | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/src/boot/fe/ast.ml b/src/boot/fe/ast.ml index efb64e50..54c48f7d 100644 --- a/src/boot/fe/ast.ml +++ b/src/boot/fe/ast.ml @@ -348,8 +348,7 @@ and pexp' = | PEXP_custom of name * (pexp array) * (string option) and plval = - PLVAL_ident of ident - | PLVAL_app of (ident * (ty array)) + PLVAL_base of name_base | PLVAL_ext_name of (pexp * name_component) | PLVAL_ext_pexp of (pexp * pexp) | PLVAL_ext_deref of pexp @@ -555,8 +554,7 @@ let sane_name (n:name) : bool = let rec plval_is_atomic (plval:plval) : bool = match plval with - PLVAL_ident _ - | PLVAL_app _ -> true + PLVAL_base _ -> true | PLVAL_ext_name (p, _) -> pexp_is_atomic p @@ -1039,10 +1037,7 @@ and fmt_pexp (ff:Format.formatter) (pexp:pexp) : unit = and fmt_plval (ff:Format.formatter) (plval:plval) : unit = match plval with - PLVAL_ident id -> fmt_ident ff id - | PLVAL_app (id, tys) -> - fmt_ident ff id; - fmt_bracketed_arr_sep "[" "]" "," fmt_ty ff tys + PLVAL_base nb -> fmt_name_base ff nb | PLVAL_ext_name (pexp, nc) -> fmt_pexp ff pexp; |