parser: scope block method to crate

This commit is contained in:
Ryan Chandler 2022-07-26 17:58:37 +01:00
parent 2cfc502299
commit e3a0e3e62f
No known key found for this signature in database
GPG Key ID: F113BCADDB3B0CCA

View File

@ -5,7 +5,7 @@ use crate::Block;
use super::{Parser, ParseResult};
impl Parser {
pub fn block(&mut self, until: &TokenKind) -> ParseResult<Block> {
pub(crate) fn block(&mut self, until: &TokenKind) -> ParseResult<Block> {
let mut block = Block::new();
while ! self.is_eof() && &self.current.kind != until {