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

Method push

crates/sith_python_parser/src/lexer.rs:1640–1648  ·  view source on GitHub ↗
(&mut self, c: char)

Source from the content-addressed store, hash-verified

1638 }
1639
1640 fn push(&mut self, c: char) {
1641 match self {
1642 LexedText::Source { range, source } => {
1643 *range = range.add_end(c.text_len());
1644 debug_assert!(source[*range].ends_with(c));
1645 }
1646 LexedText::Owned(owned) => owned.push(c),
1647 }
1648 }
1649
1650 fn as_str<'b>(&'b self) -> &'b str
1651 where

Callers 6

push_errorMethod · 0.45
lex_fstring_startMethod · 0.45
lex_decimal_numberMethod · 0.45
radix_runMethod · 0.45
lexFunction · 0.45

Calls 2

add_endMethod · 0.80
text_lenMethod · 0.45

Tested by

no test coverage detected