MCPcopy Index your code
hub / github.com/RustPython/RustPython / error

Method error

crates/derive-impl/src/error.rs:78–85  ·  view source on GitHub ↗
(text: T)

Source from the content-addressed store, hash-verified

76
77impl Diagnostic {
78 pub fn error<T: Into<String>>(text: T) -> Self {
79 Self {
80 inner: Repr::Single {
81 text: text.into(),
82 span: None,
83 },
84 }
85 }
86
87 pub(crate) fn spans_error<T: Into<String>>(spans: (Span, Span), text: T) -> Self {
88 Self {

Callers 4

parseMethod · 0.45
from_attributeMethod · 0.45
parse_argumentMethod · 0.45
pytraverse_argFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected