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

Method node_start

crates/sith_python_parser/src/parser/mod.rs:195–197  ·  view source on GitHub ↗

Returns the start position for a node that starts at the current token.

(&self)

Source from the content-addressed store, hash-verified

193
194 /// Returns the start position for a node that starts at the current token.
195 fn node_start(&self) -> TextSize {
196 self.current_token_range().start()
197 }
198
199 fn node_range(&self, start: TextSize) -> TextRange {
200 // It's possible during error recovery that the parsing didn't consume any tokens. In that

Callers 15

parse_expression_listMethod · 0.80
parse_lhs_expressionMethod · 0.80
parse_atomMethod · 0.80
parse_argumentsMethod · 0.80
parse_sliceMethod · 0.80
parse_stringsMethod · 0.80
parse_fstringMethod · 0.80

Calls 2

current_token_rangeMethod · 0.80
startMethod · 0.45

Tested by

no test coverage detected