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

Method from_interpolated_string_error

crates/ruff_python_parser/src/error.rs:208–216  ·  view source on GitHub ↗
(
        error: InterpolatedStringErrorType,
        string_kind: InterpolatedStringKind,
    )

Source from the content-addressed store, hash-verified

206
207impl ParseErrorType {
208 pub(crate) fn from_interpolated_string_error(
209 error: InterpolatedStringErrorType,
210 string_kind: InterpolatedStringKind,
211 ) -> Self {
212 match string_kind {
213 InterpolatedStringKind::FString => Self::FStringError(error),
214 InterpolatedStringKind::TString => Self::TStringError(error),
215 }
216 }
217}
218
219impl std::error::Error for ParseErrorType {}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected