File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -288,7 +288,7 @@ pub impl Parser {
288
288
self . eat_keyword ( & ~"priv") ;
289
289
self . bump ( ) ;
290
290
while * self . token != token:: RBRACE {
291
- self . parse_single_class_item ( ast:: private) ;
291
+ self . parse_single_struct_field ( ast:: private) ;
292
292
}
293
293
self . bump ( ) ;
294
294
true
Original file line number Diff line number Diff line change @@ -3321,7 +3321,8 @@ pub impl Parser {
3321
3321
}
3322
3322
}
3323
3323
3324
- fn parse_single_class_item ( & self , vis : visibility ) -> @struct_field {
3324
+ // parse a structure field declaration
3325
+ fn parse_single_struct_field ( & self , vis : visibility ) -> @struct_field {
3325
3326
if self . eat_obsolete_ident ( "let" ) {
3326
3327
self . obsolete ( * self . last_span , ObsoleteLet ) ;
3327
3328
}
@@ -3365,11 +3366,11 @@ pub impl Parser {
3365
3366
let attrs = self . parse_outer_attributes ( ) ;
3366
3367
3367
3368
if self . eat_keyword ( & ~"priv") {
3368
- return members ( ~[ self . parse_single_class_item ( private) ] )
3369
+ return members ( ~[ self . parse_single_struct_field ( private) ] )
3369
3370
}
3370
3371
3371
3372
if self . eat_keyword ( & ~"pub ") {
3372
- return members ( ~[ self . parse_single_class_item ( public) ] ) ;
3373
+ return members ( ~[ self . parse_single_struct_field ( public) ] ) ;
3373
3374
}
3374
3375
3375
3376
if self . try_parse_obsolete_struct_ctor ( ) {
@@ -3380,7 +3381,7 @@ pub impl Parser {
3380
3381
return self . parse_dtor ( attrs) ;
3381
3382
}
3382
3383
else {
3383
- return members ( ~[ self . parse_single_class_item ( inherited) ] ) ;
3384
+ return members ( ~[ self . parse_single_struct_field ( inherited) ] ) ;
3384
3385
}
3385
3386
}
3386
3387
You can’t perform that action at this time.
0 commit comments