rename
This commit is contained in:
@@ -63,7 +63,7 @@ pub(super) enum MaybeItem {
|
|||||||
|
|
||||||
pub(super) fn maybe_item(p: &mut Parser, flavor: ItemFlavor) -> MaybeItem {
|
pub(super) fn maybe_item(p: &mut Parser, flavor: ItemFlavor) -> MaybeItem {
|
||||||
attributes::outer_attributes(p);
|
attributes::outer_attributes(p);
|
||||||
visibility(p);
|
opt_visibility(p);
|
||||||
if let Some(kind) = items_without_modifiers(p) {
|
if let Some(kind) = items_without_modifiers(p) {
|
||||||
return MaybeItem::Item(kind);
|
return MaybeItem::Item(kind);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -91,7 +91,7 @@ fn named_fields(p: &mut Parser) {
|
|||||||
// pub uri: Uri,
|
// pub uri: Uri,
|
||||||
// }
|
// }
|
||||||
attributes::outer_attributes(p);
|
attributes::outer_attributes(p);
|
||||||
visibility(p);
|
opt_visibility(p);
|
||||||
if p.at(IDENT) {
|
if p.at(IDENT) {
|
||||||
name(p);
|
name(p);
|
||||||
p.expect(COLON);
|
p.expect(COLON);
|
||||||
@@ -110,7 +110,7 @@ fn pos_fields(p: &mut Parser) {
|
|||||||
}
|
}
|
||||||
while !p.at(R_PAREN) && !p.at(EOF) {
|
while !p.at(R_PAREN) && !p.at(EOF) {
|
||||||
let pos_field = p.start();
|
let pos_field = p.start();
|
||||||
visibility(p);
|
opt_visibility(p);
|
||||||
types::type_(p);
|
types::type_(p);
|
||||||
pos_field.complete(p, POS_FIELD);
|
pos_field.complete(p, POS_FIELD);
|
||||||
|
|
||||||
|
|||||||
@@ -54,7 +54,7 @@ impl BlockLike {
|
|||||||
fn is_block(self) -> bool { self == BlockLike::Block }
|
fn is_block(self) -> bool { self == BlockLike::Block }
|
||||||
}
|
}
|
||||||
|
|
||||||
fn visibility(p: &mut Parser) {
|
fn opt_visibility(p: &mut Parser) {
|
||||||
match p.current() {
|
match p.current() {
|
||||||
PUB_KW => {
|
PUB_KW => {
|
||||||
let m = p.start();
|
let m = p.start();
|
||||||
|
|||||||
Reference in New Issue
Block a user