MCPcopy Create free account
hub / github.com/astral-sh/ruff / position

Method position

crates/ruff_python_parser/src/string.rs:121–123  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

119 /// Returns the current position of the parser considering the offset.
120 #[inline]
121 fn position(&self) -> TextSize {
122 self.compute_position(self.cursor)
123 }
124
125 /// Computes the position of the cursor considering the offset.
126 #[inline]

Callers 6

newMethod · 0.45
indexMethod · 0.45
parseMethod · 0.45
parse_unicode_literalMethod · 0.45
parse_unicode_nameMethod · 0.45
parse_escaped_charMethod · 0.45

Calls 1

compute_positionMethod · 0.80

Tested by

no test coverage detected