Add span to field to catch per-field comments in rec exprs.
This commit is contained in:
parent
d12ea39896
commit
b48cab962a
8 changed files with 27 additions and 22 deletions
|
|
@ -118,7 +118,7 @@ fn elt_exprs(&vec[ast::elt] elts) -> vec[@ast::expr] {
|
|||
ret vec::map[ast::elt, @ast::expr](f, elts);
|
||||
}
|
||||
|
||||
fn field_expr(&ast::field f) -> @ast::expr { ret f.expr; }
|
||||
fn field_expr(&ast::field f) -> @ast::expr { ret f.node.expr; }
|
||||
|
||||
fn field_exprs(vec[ast::field] fields) -> vec [@ast::expr] {
|
||||
auto f = field_expr;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue