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

Function comment_until_eol

crates/ruff_python_parser/src/lexer.rs:1914–1917  ·  view source on GitHub ↗
(eol: &str)

Source from the content-addressed store, hash-verified

1912 }
1913
1914 fn comment_until_eol(eol: &str) -> LexerOutput {
1915 let source = format!("123 # Foo{eol}456");
1916 lex_source(&source)
1917 }
1918
1919 #[test]
1920 fn test_comment_until_unix_eol() {

Callers

nothing calls this directly

Calls 1

lex_sourceFunction · 0.85

Tested by

no test coverage detected