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

Function strip_docstrings

crates/vm/src/stdlib/_ast.rs:530–535  ·  view source on GitHub ↗
(top: &mut ast::Mod)

Source from the content-addressed store, hash-verified

528
529#[cfg(feature = "parser")]
530fn strip_docstrings(top: &mut ast::Mod) {
531 match top {
532 ast::Mod::Module(module) => strip_docstring_in_body(&mut module.body),
533 ast::Mod::Expression(_expr) => {}
534 }
535}
536
537#[cfg(feature = "parser")]
538fn strip_docstring_in_body(body: &mut Vec<ast::Stmt>) {

Callers 1

parseFunction · 0.85

Calls 1

strip_docstring_in_bodyFunction · 0.85

Tested by

no test coverage detected