1
Fork 0

Convert many libsyntax records into structs

Specifically:

ast_map::ctx
ast_util::id_range
diagnostic::{handler_t,codemap_t}
auto_encode::field
ext::base::{macro_def,syntax_expander_tt,syntax_expander_tt_item}
ext::pipes::proto::next_state
This commit is contained in:
Erick Tryzelaar 2013-01-17 08:55:28 -08:00 committed by Tim Chevalier
parent 28da4ecdaa
commit 7f2c399f3a
12 changed files with 83 additions and 53 deletions

View file

@ -49,7 +49,7 @@ impl message: gen_send {
debug!("pipec: gen_send");
match self {
message(ref _id, span, tys, this,
Some({state: ref next, tys: next_tys})) => {
Some(next_state {state: ref next, tys: next_tys})) => {
debug!("pipec: next state exists");
let next = this.proto.get_state((*next));
assert next_tys.len() == next.ty_params.len();
@ -217,7 +217,7 @@ impl state: to_type_decls {
let message(name, span, tys, this, next) = *m;
let tys = match next {
Some({state: ref next, tys: next_tys}) => {
Some(next_state { state: ref next, tys: next_tys }) => {
let next = this.proto.get_state((*next));
let next_name = cx.str_of(next.data_name());