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

Method end_range

src/parse_to_ast.rs:148–155  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

146 }
147
148 pub fn end_range(&mut self) -> Range {
149 let mut range = self
150 .range_stack
151 .pop()
152 .expect("Range was popped from the stack, but the stack was empty.");
153 range.end = self.scanner.token_end();
154 range
155 }
156
157 pub fn create_range_from_last_token(&self) -> Range {
158 Range {

Callers 4

parse_objectFunction · 0.80
parse_object_propertyFunction · 0.80
parse_arrayFunction · 0.80

Calls 1

token_endMethod · 0.80

Tested by

no test coverage detected