MCPcopy Create free account
hub / github.com/dprint/jsonc-parser / put_back

Method put_back

src/parser.rs:85–88  ·  view source on GitHub ↗
(&mut self, token: Token<'a>)

Source from the content-addressed store, hash-verified

83 /// Puts a token back so the next `scan()` returns it.
84 #[cfg(feature = "serde")]
85 pub fn put_back(&mut self, token: Token<'a>) {
86 debug_assert!(self.pending_token.is_none(), "put_back called with pending token");
87 self.pending_token = Some(token);
88 }
89
90 /// Increments depth and checks the nesting limit.
91 pub fn enter_container(&mut self) -> Result<(), ParseError> {

Callers 4

parse_to_serde_valueFunction · 0.80
deserialize_optionMethod · 0.80
drain_arrayFunction · 0.80
next_element_seedMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected