Move visibility module into ast crate (#3367)

This commit is contained in:
Charlie Marsh 2023-03-06 15:14:47 -05:00 committed by GitHub
parent e1ebd9130d
commit 694d41897a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
16 changed files with 59 additions and 61 deletions

View file

@ -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> {