Preserve parenthesization in the AST
Maintain explicit "paren" nodes in the AST so we can pretty-print without having to guess where parens should go. We may revisit this in the future. r=graydon
This commit is contained in:
@@ -744,7 +744,10 @@ enum expr_ {
|
||||
expr_struct(@path, ~[field], Option<@expr>),
|
||||
|
||||
// A vector literal constructed from one repeated element.
|
||||
expr_repeat(@expr /* element */, @expr /* count */, mutability)
|
||||
expr_repeat(@expr /* element */, @expr /* count */, mutability),
|
||||
|
||||
// No-op: used solely so we can pretty-print faithfully
|
||||
expr_paren(@expr)
|
||||
}
|
||||
|
||||
#[auto_serialize]
|
||||
|
||||
Reference in New Issue
Block a user