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

Method new_syn_error

crates/derive-impl/src/util.rs:109–111  ·  view source on GitHub ↗
(&self, span: Span, message: &str)

Source from the content-addressed store, hash-verified

107 &self.inner().attr_name
108 }
109 fn new_syn_error(&self, span: Span, message: &str) -> syn::Error {
110 syn::Error::new(span, format!("#[{}] {}", self.attr_name(), message))
111 }
112}
113
114pub(crate) struct ItemMetaInner {

Callers 2

gen_impl_itemMethod · 0.80
gen_module_itemMethod · 0.80

Implementers 1

pymodule.rscrates/derive-impl/src/pymodule.rs

Calls 1

newFunction · 0.85

Tested by

no test coverage detected