ruff/crates/ruff_python_semantic
Dan 0c87832e8a Add Terminal::RaiseNotImplemented variant to avoid double traversal
Changes:
- Add `Terminal::RaiseNotImplemented` enum variant
- Modify `Terminal::from_function()` to accept `SemanticModel` and detect `NotImplementedError` during traversal
- Update `and_then()` and `branch()` combination methods to handle the new variant
- Remove `only_raises_not_implemented_error()` helper function
- Update `auto_return_type()` to check for `Terminal::RaiseNotImplemented` directly
- Update all call sites to pass `SemanticModel` to `Terminal::from_function()`
2025-11-07 17:59:19 -05:00
..
resources/test/fixtures/cfg Control flow: return and raise (#17121) 2025-04-03 08:30:29 -05:00
src Add Terminal::RaiseNotImplemented variant to avoid double traversal 2025-11-07 17:59:19 -05:00
Cargo.toml Control flow graph: setup (#17064) 2025-04-01 05:53:42 -05:00