diff options
Diffstat (limited to 'src/parser/event_parser/parser.rs')
-rw-r--r-- | src/parser/event_parser/parser.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/parser/event_parser/parser.rs b/src/parser/event_parser/parser.rs index a1a0ebfea..d7d24fa27 100644 --- a/src/parser/event_parser/parser.rs +++ b/src/parser/event_parser/parser.rs | |||
@@ -44,6 +44,10 @@ impl<'t> Parser<'t> { | |||
44 | } | 44 | } |
45 | } | 45 | } |
46 | 46 | ||
47 | pub(crate) fn pos(&self) -> usize { | ||
48 | self.pos | ||
49 | } | ||
50 | |||
47 | pub(crate) fn into_events(self) -> Vec<Event> { | 51 | pub(crate) fn into_events(self) -> Vec<Event> { |
48 | assert!(self.curly_limit.is_none()); | 52 | assert!(self.curly_limit.is_none()); |
49 | assert!(self.current() == EOF); | 53 | assert!(self.current() == EOF); |