parse_block_tail: reduce visibility
This commit is contained in:
parent
addbc5b9df
commit
fe848b44fe
1 changed files with 1 additions and 5 deletions
|
@ -318,11 +318,7 @@ impl<'a> Parser<'a> {
|
||||||
|
|
||||||
/// Parses the rest of a block expression or function body.
|
/// Parses the rest of a block expression or function body.
|
||||||
/// Precondition: already parsed the '{'.
|
/// Precondition: already parsed the '{'.
|
||||||
pub(super) fn parse_block_tail(
|
fn parse_block_tail(&mut self, lo: Span, s: BlockCheckMode) -> PResult<'a, P<Block>> {
|
||||||
&mut self,
|
|
||||||
lo: Span,
|
|
||||||
s: BlockCheckMode,
|
|
||||||
) -> PResult<'a, P<Block>> {
|
|
||||||
let mut stmts = vec![];
|
let mut stmts = vec![];
|
||||||
while !self.eat(&token::CloseDelim(token::Brace)) {
|
while !self.eat(&token::CloseDelim(token::Brace)) {
|
||||||
if self.token == token::Eof {
|
if self.token == token::Eof {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue