1
Fork 0

Field identifiers now include specific spans (Closes #8263).

This commit is contained in:
Joshua Yanovski 2013-10-28 19:22:42 -07:00
parent dba6070080
commit 01ab8542fb
10 changed files with 22 additions and 18 deletions

View file

@ -529,7 +529,7 @@ impl AstBuilder for @ExtCtxt {
self.expr(b.span, ast::ExprBlock(b))
}
fn field_imm(&self, span: Span, name: Ident, e: @ast::Expr) -> ast::Field {
ast::Field { ident: name, expr: e, span: span }
ast::Field { ident: respan(span, name), expr: e, span: span }
}
fn expr_struct(&self, span: Span, path: ast::Path, fields: ~[ast::Field]) -> @ast::Expr {
self.expr(span, ast::ExprStruct(path, fields, None))