MCPcopy Create free account
hub / github.com/LaBatata101/sith-language-server / offset

Method offset

crates/sith_python_parser/src/lexer.rs:1451–1453  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

1449 #[allow(clippy::cast_possible_truncation)]
1450 #[inline]
1451 fn offset(&self) -> TextSize {
1452 TextSize::new(self.source.len() as u32) - self.cursor.text_len()
1453 }
1454
1455 #[inline]
1456 fn token_start(&self) -> TextSize {

Callers 11

get_usersFunction · 0.45
get_itemsFunction · 0.45
eat_indentationMethod · 0.45
skip_whitespaceMethod · 0.45
lex_stringMethod · 0.45
lex_number_radixMethod · 0.45
lex_decimal_numberMethod · 0.45
token_rangeMethod · 0.45
checkpointMethod · 0.45
to_text_rangeMethod · 0.45

Calls 2

lenMethod · 0.45
text_lenMethod · 0.45

Tested by

no test coverage detected