MCPcopy Create free account
hub / github.com/hashintel/hash / insert_range

Method insert_range

libs/@local/hashql/syntax-jexpr/src/parser/state.rs:111–119  ·  view source on GitHub ↗
(&mut self, range: TextRange)

Source from the content-addressed store, hash-verified

109 }
110
111 fn insert_range(&mut self, range: TextRange) -> SpanId {
112 self.spans.insert(
113 Span {
114 range,
115 pointer: Some(self.current_pointer()),
116 },
117 SpanAncestors::EMPTY,
118 )
119 }
120
121 #[inline]
122 const fn lexer(&mut self) -> LexerContext<'_> {

Callers 15

validate_tokenMethod · 0.45
advanceMethod · 0.45
peek_expectMethod · 0.45
finishMethod · 0.45
verify_no_repeatFunction · 0.45
visit_arrayFunction · 0.45
parse_labelled_argumentFunction · 0.45
buildMethod · 0.45
parse_dict_objectFunction · 0.45
parse_dict_arrayFunction · 0.45
parse_dictFunction · 0.45

Calls 2

current_pointerMethod · 0.80
insertMethod · 0.45

Tested by

no test coverage detected