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

Method enter_conditional_block

crates/codegen/src/compile.rs:9638–9640  ·  view source on GitHub ↗

Enter a conditional block (if/for/while/match/try/with) PEP 649: Track conditional annotation context

(&mut self)

Source from the content-addressed store, hash-verified

9636 /// Enter a conditional block (if/for/while/match/try/with)
9637 /// PEP 649: Track conditional annotation context
9638 fn enter_conditional_block(&mut self) {
9639 self.current_code_info().in_conditional_block += 1;
9640 }
9641
9642 /// Leave a conditional block
9643 fn leave_conditional_block(&mut self) {

Callers 5

compile_statementMethod · 0.80
compile_whileMethod · 0.80
compile_withMethod · 0.80
compile_forMethod · 0.80
compile_matchMethod · 0.80

Calls 1

current_code_infoMethod · 0.80

Tested by

no test coverage detected