File tree Expand file tree Collapse file tree 3 files changed +7
-6
lines changed
branches/incoming/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 @@ -6,7 +6,7 @@ refs/heads/try: bf67eb2362b7d0f37012f2d6dac604c3bbacd2c6
6
6
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
7
7
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8
8
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c
9
- refs/heads/incoming: 968089e4228ef9c3caab0ce6e327356757cb52c1
9
+ refs/heads/incoming: 915e76a974b732044390b38397eb628e76377def
10
10
refs/heads/dist-snap: 00dbbd01c2aee72982b3e0f9511ae1d4428c3ba9
11
11
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
12
12
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
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