diff options
| author | Lindsey Kuper <[email protected]> | 2011-04-05 14:18:44 -0700 |
|---|---|---|
| committer | Graydon Hoare <[email protected]> | 2011-04-05 14:54:48 -0700 |
| commit | b8bb2e118e9815316320f946ef3fc7e6909ed7c9 (patch) | |
| tree | 6b550692b0b086bde56c621f5ffd428e7dcc1b08 /src/comp/front/token.rs | |
| parent | FIx native wrapper generation to handle more arg types. (diff) | |
| download | rust-b8bb2e118e9815316320f946ef3fc7e6909ed7c9.tar.xz rust-b8bb2e118e9815316320f946ef3fc7e6909ed7c9.zip | |
Further on the path toward self-awareness.
Mostly:
* Merciless refactoring of trans.rs so that trans_call can work for
self-calls as well as other kinds of calls
Also:
* Various changes to go with having idents, rather than exprs, in
expr_call_self AST nodes
* Added missing case for SELF token to token.to_str()
Diffstat (limited to 'src/comp/front/token.rs')
| -rw-r--r-- | src/comp/front/token.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/comp/front/token.rs b/src/comp/front/token.rs index 5ac9d662..dcfafadf 100644 --- a/src/comp/front/token.rs +++ b/src/comp/front/token.rs @@ -348,6 +348,8 @@ fn to_str(token t) -> str { /* Object type */ case (OBJ) { ret "obj"; } + case (SELF) { ret "self"; } + /* Comm and task types */ case (CHAN) { ret "chan"; } |