about summary refs log tree commit diff
path: root/src/comp/syntax
diff options
context:
space:
mode:
authorMarijn Haverbeke <marijnh@gmail.com>2011-09-01 10:03:17 +0200
committerMarijn Haverbeke <marijnh@gmail.com>2011-09-01 16:32:38 +0200
commit34ae491ca9f7ad7549fa0d767f7452055df875d8 (patch)
tree911eb4929b9b47f4ade295193cfddc8bb9b09870 /src/comp/syntax
parent9ba3fe5e40ed404f8865c0be4f9b5827d5861439 (diff)
downloadrust-34ae491ca9f7ad7549fa0d767f7452055df875d8.tar.gz
rust-34ae491ca9f7ad7549fa0d767f7452055df875d8.zip
Store arg mode and objfield mutability in their def
Diffstat (limited to 'src/comp/syntax')
-rw-r--r--src/comp/syntax/ast.rs4
-rw-r--r--src/comp/syntax/ast_util.rs4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/comp/syntax/ast.rs b/src/comp/syntax/ast.rs
index 44ed863351e..f19bad3b478 100644
--- a/src/comp/syntax/ast.rs
+++ b/src/comp/syntax/ast.rs
@@ -29,11 +29,11 @@ type ty_param = {ident: ident, kind: kind};
 
 tag def {
     def_fn(def_id, purity);
-    def_obj_field(def_id);
+    def_obj_field(def_id, mutability);
     def_mod(def_id);
     def_native_mod(def_id);
     def_const(def_id);
-    def_arg(def_id);
+    def_arg(def_id, mode);
     def_local(def_id);
     def_variant(def_id, /* tag */def_id);
 
diff --git a/src/comp/syntax/ast_util.rs b/src/comp/syntax/ast_util.rs
index 1aaa4c7a8f3..7744e03fe01 100644
--- a/src/comp/syntax/ast_util.rs
+++ b/src/comp/syntax/ast_util.rs
@@ -29,11 +29,11 @@ fn variant_def_ids(d: &def) -> {tg: def_id, var: def_id} {
 fn def_id_of_def(d: def) -> def_id {
     alt d {
       def_fn(id, _) { ret id; }
-      def_obj_field(id) { ret id; }
+      def_obj_field(id, _) { ret id; }
       def_mod(id) { ret id; }
       def_native_mod(id) { ret id; }
       def_const(id) { ret id; }
-      def_arg(id) { ret id; }
+      def_arg(id, _) { ret id; }
       def_local(id) { ret id; }
       def_variant(_, id) { ret id; }
       def_ty(id) { ret id; }