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

Method varname

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

Source from the content-addressed store, hash-verified

1695 }
1696
1697 fn varname(&mut self, name: &str) -> CompileResult<oparg::VarNum> {
1698 // Note: __debug__ checks are now handled in symboltable phase
1699 Ok(oparg::VarNum::from_u32(
1700 self._name_inner(name, |i| &mut i.metadata.varnames),
1701 ))
1702 }
1703
1704 fn _name_inner(
1705 &mut self,

Callers 3

enter_functionMethod · 0.80
compile_comprehensionMethod · 0.80

Calls 1

_name_innerMethod · 0.80

Tested by

no test coverage detected