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

Method compile_opts

crates/vm/src/vm/mod.rs:1719–1724  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

1717 /// as the CompileOpts for `vm.compile()`.
1718 #[cfg(feature = "rustpython-codegen")]
1719 pub fn compile_opts(&self) -> crate::compiler::CompileOpts {
1720 crate::compiler::CompileOpts {
1721 optimize: self.state.config.settings.optimize,
1722 debug_ranges: self.state.config.settings.code_debug_ranges,
1723 }
1724 }
1725
1726 // To be called right before raising the recursion depth.
1727 fn check_recursive_call(&self, _where: &str) -> PyResult<()> {

Callers 5

import_fileFunction · 0.80
import_sourceFunction · 0.80
compileFunction · 0.80
compileFunction · 0.80
compileMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected