mirror of
https://github.com/astral-sh/ruff.git
synced 2025-10-01 06:11:43 +00:00
Move visibility
module into ast
crate (#3367)
This commit is contained in:
parent
e1ebd9130d
commit
694d41897a
16 changed files with 59 additions and 61 deletions
|
@ -2,8 +2,8 @@
|
|||
|
||||
use rustpython_parser::ast::{Constant, Expr, ExprKind, Stmt, StmtKind};
|
||||
|
||||
use crate::ast::visibility::{Modifier, VisibleScope};
|
||||
use crate::docstrings::definition::{Definition, DefinitionKind, Documentable};
|
||||
use crate::visibility::{Modifier, VisibleScope};
|
||||
|
||||
/// Extract a docstring from a function or class body.
|
||||
pub fn docstring_from(suite: &[Stmt]) -> Option<&Expr> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue