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

Method capture_token

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

Source from the content-addressed store, hash-verified

199 }
200
201 fn capture_token(&mut self, token: Token<'a>) {
202 let range = self.create_range_from_last_token();
203 if let Some(tokens) = self.tokens.as_mut() {
204 tokens.push(TokenAndRange {
205 token: token.clone(),
206 range,
207 });
208 }
209 }
210
211 fn handle_comment(&mut self, comment: Comment<'a>) -> Result<(), ParseError> {
212 if !self.allow_comments {

Callers 2

scanMethod · 0.80

Calls 1

Tested by

no test coverage detected