syntax: convert ast::spanned into a struct
This commit is contained in:
parent
b75550af5c
commit
93c2ebf994
31 changed files with 245 additions and 210 deletions
|
|
@ -23,8 +23,7 @@ use std::serialize::{Encodable, Decodable, Encoder, Decoder};
|
|||
|
||||
#[auto_encode]
|
||||
#[auto_decode]
|
||||
type spanned<T> = {node: T, span: span};
|
||||
|
||||
struct spanned<T> { node: T, span: span }
|
||||
|
||||
/* can't import macros yet, so this is copied from token.rs. See its comment
|
||||
* there. */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue