rename parse_instance_var to parse_name_and_ty
the name no longer made sense. perhaps this could just be inlined.
This commit is contained in:
parent
2a74c58588
commit
7ef92ba246
1 changed files with 3 additions and 3 deletions
|
@ -2463,8 +2463,8 @@ pub impl Parser {
|
||||||
return @spanned(lo, self.last_span.hi, decl_local(locals));
|
return @spanned(lo, self.last_span.hi, decl_local(locals));
|
||||||
}
|
}
|
||||||
|
|
||||||
/* assumes "let" token has already been consumed */
|
// parse a structure field
|
||||||
fn parse_instance_var(&self, pr: visibility) -> @struct_field {
|
fn parse_name_and_ty(&self, pr: visibility) -> @struct_field {
|
||||||
let mut is_mutbl = struct_immutable;
|
let mut is_mutbl = struct_immutable;
|
||||||
let lo = self.span.lo;
|
let lo = self.span.lo;
|
||||||
if self.eat_keyword(&~"mut") {
|
if self.eat_keyword(&~"mut") {
|
||||||
|
@ -3327,7 +3327,7 @@ pub impl Parser {
|
||||||
self.obsolete(*self.last_span, ObsoleteLet);
|
self.obsolete(*self.last_span, ObsoleteLet);
|
||||||
}
|
}
|
||||||
|
|
||||||
let a_var = self.parse_instance_var(vis);
|
let a_var = self.parse_name_and_ty(vis);
|
||||||
match *self.token {
|
match *self.token {
|
||||||
token::SEMI => {
|
token::SEMI => {
|
||||||
self.obsolete(copy *self.span, ObsoleteFieldTerminator);
|
self.obsolete(copy *self.span, ObsoleteFieldTerminator);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue