diff options
| author | Tim Chevalier <chevalier@alum.wellesley.edu> | 2012-03-23 19:49:01 -0700 |
|---|---|---|
| committer | Tim Chevalier <chevalier@alum.wellesley.edu> | 2012-03-23 20:37:50 -0700 |
| commit | 8bbd78075f1b0dfe271ac68d9c0f7f2f12eeda90 (patch) | |
| tree | 5622d5946e35aa5b9d14b95ec528bea9ebf9bff1 /src/rt/rust_kernel.cpp | |
| parent | 713b3585c6d2ab8d07dc3f996736872af41a74fe (diff) | |
| download | rust-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
