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

Method compile_pattern_star

crates/codegen/src/compile.rs:6191–6198  ·  view source on GitHub ↗
(
        &mut self,
        p: &ast::PatternMatchStar,
        pc: &mut PatternContext,
    )

Source from the content-addressed store, hash-verified

6189 }
6190
6191 fn compile_pattern_star(
6192 &mut self,
6193 p: &ast::PatternMatchStar,
6194 pc: &mut PatternContext,
6195 ) -> CompileResult<()> {
6196 self.pattern_helper_store_name(p.name.as_ref(), pc)?;
6197 Ok(())
6198 }
6199
6200 /// Validates that keyword attributes in a class pattern are allowed
6201 /// and not duplicated.

Callers 1

compile_patternMethod · 0.80

Calls 2

as_refMethod · 0.45

Tested by

no test coverage detected