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

Function lex_source

crates/ruff_python_parser/src/lexer.rs:1710–1712  ·  view source on GitHub ↗
(source: &str)

Source from the content-addressed store, hash-verified

1708
1709 #[track_caller]
1710 fn lex_source(source: &str) -> LexerOutput {
1711 lex_valid(source, Mode::Module, TextSize::default())
1712 }
1713
1714 #[track_caller]
1715 fn lex_source_with_offset(source: &str, start_offset: TextSize) -> LexerOutput {

Callers 9

comment_until_eolFunction · 0.85
indentation_with_eolFunction · 0.85
double_dedent_with_eolFunction · 0.85
newline_in_brackets_eolFunction · 0.85
triple_quoted_eolFunction · 0.85

Calls 2

lex_validFunction · 0.85
defaultFunction · 0.50

Tested by

no test coverage detected