File tree Expand file tree Collapse file tree 3 files changed +7
-6
lines changed
branches/auto/src/libsyntax/parse Expand file tree Collapse file tree 3 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,6 @@ refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0
14
14
refs/tags/release-0.3.1: 495bae036dfe5ec6ceafd3312b4dca48741e845b
15
15
refs/tags/release-0.4: e828ea2080499553b97dfe33b3f4d472b4562ad7
16
16
refs/tags/release-0.5: 7e3bcfbf21278251ee936ad53e92e9b719702d73
17
- refs/heads/auto: 968089e4228ef9c3caab0ce6e327356757cb52c1
17
+ refs/heads/auto: 915e76a974b732044390b38397eb628e76377def
18
18
refs/heads/servo: af82457af293e2a842ba6b7759b70288da276167
19
19
refs/tags/release-0.6: b4ebcfa1812664df5e142f0134a5faea3918544c
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