Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
more fixes
  • Loading branch information
ShaharNaveh committed Sep 21, 2025
commit ec6afeca696e6d05204ac86425494e0f5571fe44
6 changes: 6 additions & 0 deletions compiler/codegen/src/compile.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5877,6 +5877,7 @@ mod ruff_tests {
range,
id: Name::new("x"),
ctx: ExprContext::Load,
node_index: ruff_python_ast::AtomicNodeIndex::NONE,
});
let not_present = &Expr::FString(ExprFString {
range,
Expand Down Expand Up @@ -5904,6 +5905,7 @@ mod ruff_tests {
range,
id: Name::new("x"),
ctx: ExprContext::Load,
node_index: ruff_python_ast::AtomicNodeIndex::NONE,
})),
});
let present = &Expr::FString(ExprFString {
Expand All @@ -5922,6 +5924,7 @@ mod ruff_tests {
.into(),
flags,
}),
node_index: ruff_python_ast::AtomicNodeIndex::NONE,
});
assert!(Compiler::contains_await(present));

Expand All @@ -5930,14 +5933,17 @@ mod ruff_tests {
range,
id: Name::new("x"),
ctx: ExprContext::Load,
node_index: ruff_python_ast::AtomicNodeIndex::NONE,
});
let expr_await_y = Expr::Await(ExprAwait {
range,
value: Box::new(Expr::Name(ExprName {
range,
id: Name::new("y"),
ctx: ExprContext::Load,
node_index: ruff_python_ast::AtomicNodeIndex::NONE,
})),
node_index: ruff_python_ast::AtomicNodeIndex::NONE,
});
let present = &Expr::FString(ExprFString {
range,
Expand Down