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

Method compile_error_forbidden_name

crates/codegen/src/compile.rs:5899–5903  ·  view source on GitHub ↗
(&mut self, name: &str)

Source from the content-addressed store, hash-verified

5897 }
5898
5899 fn compile_error_forbidden_name(&mut self, name: &str) -> CodegenError {
5900 self.error(CodegenErrorType::SyntaxError(format!(
5901 "cannot use forbidden name '{name}' in pattern"
5902 )))
5903 }
5904
5905 /// Ensures that `pc.fail_pop` has at least `n + 1` entries.
5906 /// If not, new labels are generated and pushed until the required size is reached.

Callers 2

validate_kwd_attrsMethod · 0.80

Calls 1

errorMethod · 0.45

Tested by

no test coverage detected