rust/src/rustc/middle/trans
Tim Chevalier 8bbd78075f Handle self correctly when translating classes
This change uses the same code for handling the "self" reference for
classes as is already used for impls/ifaces. This allows removing the
extra maybe_self_id argument (which was just for classes) to trans_closure
that I added before. I also rewrote the translation for class ctors so
that it doesn't generate new AST nodes (instead translating directly).

Also changed visit so that it visits class ctors correctly with visit_fn,
and changed typestate to not do return-checking when visiting a class ctor.
2012-03-23 20:37:50 -07:00
..
alt.rs Remove more needless context threading in trans 2012-03-23 14:45:47 +01:00
base.rs Handle self correctly when translating classes 2012-03-23 20:37:50 -07:00
build.rs Add an LLVM-instruction-counting mode to trans. 2012-03-22 13:44:20 -07:00
closure.rs Handle self correctly when translating classes 2012-03-23 20:37:50 -07:00
common.rs Handle self correctly when translating classes 2012-03-23 20:37:50 -07:00
debuginfo.rs add mut decls to rustc and make them mandatory 2012-03-21 21:04:14 -07:00
impl.rs Handle self correctly when translating classes 2012-03-23 20:37:50 -07:00
native.rs Handle self correctly when translating classes 2012-03-23 20:37:50 -07:00
reachable.rs add mut decls to rustc and make them mandatory 2012-03-21 21:04:14 -07:00
shape.rs Add an LLVM-instruction-counting mode to trans. 2012-03-22 13:44:20 -07:00
tvec.rs Remove more needless context threading in trans 2012-03-23 14:45:47 +01:00
type_of.rs add mut decls to rustc and make them mandatory 2012-03-21 21:04:14 -07:00
type_use.rs Remove last vestiges of old-style intrinsics 2012-03-23 16:08:01 +01:00
uniq.rs Remove more needless context threading in trans 2012-03-23 14:45:47 +01:00