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

Function comment_until_eol

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

Source from the content-addressed store, hash-verified

1933 }
1934
1935 fn comment_until_eol(eol: &str) -> LexerOutput {
1936 let source = format!("123 # Foo{eol}456");
1937 lex_source(&source)
1938 }
1939
1940 #[test]
1941 fn test_comment_until_unix_eol() {

Callers

nothing calls this directly

Calls 1

lex_sourceFunction · 0.85

Tested by

no test coverage detected