Accept prefix notation for writing the types of str/~ and friends.
This commit is contained in:
parent
acb86921a6
commit
2ea9c8df0f
37 changed files with 198 additions and 147 deletions
|
|
@ -32,7 +32,7 @@ fn deserialize_span<D>(_d: D) -> span {
|
|||
type spanned<T> = {node: T, span: span};
|
||||
|
||||
#[auto_serialize]
|
||||
type ident = @str;
|
||||
type ident = @str/~;
|
||||
|
||||
// Functions may or may not have names.
|
||||
#[auto_serialize]
|
||||
|
|
@ -427,11 +427,11 @@ type lit = spanned<lit_>;
|
|||
|
||||
#[auto_serialize]
|
||||
enum lit_ {
|
||||
lit_str(@str),
|
||||
lit_str(@str/~),
|
||||
lit_int(i64, int_ty),
|
||||
lit_uint(u64, uint_ty),
|
||||
lit_int_unsuffixed(i64),
|
||||
lit_float(@str, float_ty),
|
||||
lit_float(@str/~, float_ty),
|
||||
lit_nil,
|
||||
lit_bool(bool),
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue