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

Method from

crates/ruff_python_parser/src/error.rs:38–43  ·  view source on GitHub ↗
(error: LexicalError)

Source from the content-addressed store, hash-verified

36
37impl From<LexicalError> for ParseError {
38 fn from(error: LexicalError) -> Self {
39 ParseError {
40 location: error.location(),
41 error: ParseErrorType::Lexical(error.into_error()),
42 }
43 }
44}
45
46impl Ranged for ParseError {

Callers

nothing calls this directly

Calls 2

locationMethod · 0.80
into_errorMethod · 0.45

Tested by

no test coverage detected