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

Method visit_expr

crates/codegen/src/symboltable.rs:325–333  ·  view source on GitHub ↗
(&mut self, expr: &ast::Expr)

Source from the content-addressed store, hash-verified

323 struct AwaitFinder(bool);
324 impl ast::visitor::Visitor<'_> for AwaitFinder {
325 fn visit_expr(&mut self, expr: &ast::Expr) {
326 if !self.0 {
327 if matches!(expr, ast::Expr::Await(_)) {
328 self.0 = true;
329 } else {
330 ast::visitor::walk_expr(self, expr);
331 }
332 }
333 }
334 }
335 let mut finder = AwaitFinder(false);
336 finder.visit_expr(expr);

Callers 1

expr_contains_awaitFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected