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

Method token_range

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

Source from the content-addressed store, hash-verified

1433
1434 #[inline]
1435 fn token_range(&self) -> TextRange {
1436 let end = self.offset();
1437 let len = self.cursor.token_len();
1438
1439 TextRange::at(end - len, len)
1440 }
1441
1442 #[inline]
1443 fn token_text(&self) -> &'src str {

Callers 13

next_tokenMethod · 0.80
lex_tokenMethod · 0.80
eat_indentationMethod · 0.80
handle_indentationMethod · 0.80
skip_whitespaceMethod · 0.80
lex_stringMethod · 0.80
lex_number_radixMethod · 0.80
lex_decimal_numberMethod · 0.80
consume_endMethod · 0.80
token_textMethod · 0.80

Calls 2

token_lenMethod · 0.80
offsetMethod · 0.45

Tested by

no test coverage detected