about summary refs log tree commit diff
path: root/src/rt/rust_kernel.cpp
diff options
context:
space:
mode:
authorTim Chevalier <chevalier@alum.wellesley.edu>2012-03-23 19:49:01 -0700
committerTim Chevalier <chevalier@alum.wellesley.edu>2012-03-23 20:37:50 -0700
commit8bbd78075f1b0dfe271ac68d9c0f7f2f12eeda90 (patch)
tree5622d5946e35aa5b9d14b95ec528bea9ebf9bff1 /src/rt/rust_kernel.cpp
parent713b3585c6d2ab8d07dc3f996736872af41a74fe (diff)
downloadrust-8bbd78075f1b0dfe271ac68d9c0f7f2f12eeda90.tar.gz
rust-8bbd78075f1b0dfe271ac68d9c0f7f2f12eeda90.zip
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.
Diffstat (limited to 'src/rt/rust_kernel.cpp')
0 files changed, 0 insertions, 0 deletions