Change the type for the macro body to also store the span.

Note: the body is the part of the macro syntax between the {}.
This commit is contained in:
Kevin Atkinson 2012-01-31 20:30:26 -07:00
parent 099290bc73
commit e76fdeb3a6
8 changed files with 13 additions and 10 deletions

View file

@ -272,8 +272,11 @@ enum blk_sort {
type mac = spanned<mac_>;
type mac_body_ = {str: str, span: span};
type mac_body = option::t<mac_body_>;
enum mac_ {
mac_invoc(@path, @expr, option<str>),
mac_invoc(@path, @expr, mac_body),
mac_embed_type(@ty),
mac_embed_block(blk),
mac_ellipsis,