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

Method exit_annotation_scope

crates/codegen/src/compile.rs:1361–1368  ·  view source on GitHub ↗

Exit annotation scope - similar to exit_scope but restores annotation_block to parent

(&mut self, saved_ctx: CompileContext)

Source from the content-addressed store, hash-verified

1359
1360 /// Exit annotation scope - similar to exit_scope but restores annotation_block to parent
1361 fn exit_annotation_scope(&mut self, saved_ctx: CompileContext) -> CodeObject {
1362 self.pop_annotation_symbol_table();
1363 self.ctx = saved_ctx;
1364
1365 let pop = self.code_stack.pop();
1366 let stack_top = compiler_unwrap_option(self, pop);
1367 unwrap_internal(self, stack_top.finalize_code(&self.opts))
1368 }
1369
1370 /// Enter annotation scope using the symbol table's annotation_block.
1371 /// Returns None if no annotation_block exists.

Callers 1

Calls 5

compiler_unwrap_optionFunction · 0.85
unwrap_internalFunction · 0.85
finalize_codeMethod · 0.80
popMethod · 0.45

Tested by

no test coverage detected