File tree Expand file tree Collapse file tree 3 files changed +10
-11
lines changed Expand file tree Collapse file tree 3 files changed +10
-11
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- refs/heads/master: 7c2979e26f23739b62fcda7500d4c5eac092c42c
2
+ refs/heads/master: 6a53e39e710d4a31785015d042cc491692954ab7
Original file line number Diff line number Diff line change @@ -372,12 +372,12 @@ type _obj = rec(vec[obj_field] fields,
372
372
vec[ @method] methods ,
373
373
option:: t[ @method] dtor ) ;
374
374
375
-
376
- // Hmm. An anon_obj might extend an existing object, in which case it'll
377
- // probably add fields and methods.
378
- type anon_obj = rec ( option . t [ vec[ obj_field ] ] fields ,
379
- vec [ @method ] methods ,
380
- option . t[ ident] with_obj ) ;
375
+ type anon_obj = rec (
376
+ // New fields and methods, if they exist.
377
+ Option . t [ vec [ obj_field ] ] fields ,
378
+ vec[ @method ] methods ,
379
+ // with_obj: the original object being extended, if it exists.
380
+ Option . t[ ident] with_obj ) ;
381
381
382
382
tag mod_index_entry {
383
383
mie_view_item( @view_item) ;
Original file line number Diff line number Diff line change @@ -795,7 +795,6 @@ fn parse_bottom_expr(parser p) -> @ast::expr {
795
795
} else {
796
796
unexpected ( p, p. peek ( ) ) ;
797
797
}
798
-
799
798
}
800
799
801
800
ex = ast:: expr_rec ( fields, base, p. get_ann ( ) ) ;
@@ -836,9 +835,9 @@ fn parse_bottom_expr(parser p) -> @ast::expr {
836
835
hi = p. get_hi_pos ( ) ;
837
836
expect ( p, token. RBRACE ) ;
838
837
839
- // fields and methods may be *additional* or *overriding* fields
840
- // and methods if there's a with_obj, or they may be the *only*
841
- // fields and methods if there's no with_obj.
838
+ // fields and methods may be *additional* or *overriding* fields and
839
+ // methods if there's a with_obj, or they may be the *only* fields and
840
+ // methods if there's no with_obj.
842
841
843
842
// We don't need to pull ".node" out of fields because it's not a
844
843
// "spanned".
You can’t perform that action at this time.
0 commit comments