ruff/crates/ruff_python_ast
Junhson Jean-Baptiste fa28dc5ccf
[internal] Move Linter OperatorPrecedence into ruff_python_ast crate (#16162)
## Summary

This change begins to resolve #16071 by moving the `OperatorPrecedence`
structs from the `ruff_python_linter` crate into `ruff_python_ast`. This
PR also implements `precedence()` methods on the `Expr` and `ExprRef`
enums.

## Test Plan

Since this change mainly shifts existing logic, I didn't add any
additional tests. Existing tests do pass.
2025-02-14 15:55:07 +01:00
..
src [internal] Move Linter OperatorPrecedence into ruff_python_ast crate (#16162) 2025-02-14 15:55:07 +01:00
ast.toml Remove customizable reference enum names (#15647) 2025-01-21 13:46:31 -05:00
Cargo.toml Transition to salsa coarse-grained tracked structs (#15763) 2025-02-11 11:38:50 +01:00
generate.py Replace is-macro with implementation in enums (#16144) 2025-02-13 22:49:00 +00:00