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

Function lex_source

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

Source from the content-addressed store, hash-verified

1687
1688 #[track_caller]
1689 fn lex_source(source: &str) -> LexerOutput {
1690 lex_valid(source, Mode::Module, TextSize::default())
1691 }
1692
1693 #[track_caller]
1694 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