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

Method scan_object_colon

src/parser.rs:179–188  ·  view source on GitHub ↗

Scans an object property colon separator.

(&mut self)

Source from the content-addressed store, hash-verified

177
178 /// Scans an object property colon separator.
179 pub fn scan_object_colon(&mut self) -> Result<(), ParseError> {
180 match self.scan()? {
181 Some(Token::Colon) => Ok(()),
182 _ => Err(
183 self
184 .scanner
185 .create_error_for_current_token(ParseErrorKind::ExpectedColonAfterObjectKey),
186 ),
187 }
188 }
189
190 /// After an array element, scans for the comma/close-bracket and
191 /// returns the next token.

Callers 3

parse_objectFunction · 0.80
deserialize_enumMethod · 0.80
next_value_seedMethod · 0.80

Calls 2

scanMethod · 0.45

Tested by

no test coverage detected