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

Function lex_source_with_offset

crates/ruff_python_parser/src/lexer.rs:1694–1696  ·  view source on GitHub ↗
(source: &str, start_offset: TextSize)

Source from the content-addressed store, hash-verified

1692
1693 #[track_caller]
1694 fn lex_source_with_offset(source: &str, start_offset: TextSize) -> LexerOutput {
1695 lex_valid(source, Mode::Module, start_offset)
1696 }
1697
1698 #[track_caller]
1699 fn lex_jupyter_source(source: &str) -> LexerOutput {

Callers

nothing calls this directly

Calls 1

lex_validFunction · 0.85

Tested by

no test coverage detected