mirror of
https://github.com/astral-sh/ruff.git
synced 2025-08-16 00:20:22 +00:00
Remove parser dependency from ruff-python-ast (#6096)
This commit is contained in:
parent
99127243f4
commit
2cf00fee96
658 changed files with 1714 additions and 1546 deletions
|
@ -1,6 +1,5 @@
|
|||
//! Utilities for manually traversing a Python AST.
|
||||
use rustpython_ast::{ExceptHandler, Stmt, Suite};
|
||||
use rustpython_parser::ast;
|
||||
use rustpython_ast::{self as ast, ExceptHandler, Stmt, Suite};
|
||||
|
||||
/// Given a [`Stmt`] and its parent, return the [`Suite`] that contains the [`Stmt`].
|
||||
pub fn suite<'a>(stmt: &'a Stmt, parent: &'a Stmt) -> Option<&'a Suite> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue