mirror of
https://github.com/astral-sh/ruff.git
synced 2025-08-18 01:20:24 +00:00
Pull in RustPython parser (#6099)
This commit is contained in:
parent
86539c1fc5
commit
40f54375cb
779 changed files with 108400 additions and 2078 deletions
|
@ -1,5 +1,5 @@
|
|||
//! Utilities for manually traversing a Python AST.
|
||||
use rustpython_ast::{self as ast, ExceptHandler, Stmt, Suite};
|
||||
use crate::{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