mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-02 03:33:59 +00:00
make stuff private
This commit is contained in:
parent
5b617e3bf8
commit
df6efe62c5
@ -68,7 +68,7 @@ pub(crate) struct ParserImpl<'t> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
impl<'t> ParserImpl<'t> {
|
impl<'t> ParserImpl<'t> {
|
||||||
pub(crate) fn new(inp: &'t ParserInput<'t>) -> ParserImpl<'t> {
|
fn new(inp: &'t ParserInput<'t>) -> ParserImpl<'t> {
|
||||||
ParserImpl {
|
ParserImpl {
|
||||||
parser_input: inp,
|
parser_input: inp,
|
||||||
pos: InputPosition::new(),
|
pos: InputPosition::new(),
|
||||||
@ -77,7 +77,7 @@ impl<'t> ParserImpl<'t> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
pub(crate) fn into_events(self) -> Vec<Event> {
|
fn into_events(self) -> Vec<Event> {
|
||||||
assert_eq!(self.nth(0), EOF);
|
assert_eq!(self.nth(0), EOF);
|
||||||
self.events
|
self.events
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user