Store arg mode and objfield mutability in their def

This commit is contained in:
Marijn Haverbeke 2011-09-01 10:03:17 +02:00
parent 9ba3fe5e40
commit 34ae491ca9
10 changed files with 43 additions and 43 deletions

View file

@ -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; }