mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-28 21:05:08 +00:00
Improve ruff_python_semantic::all::extract_all_names()
(#11335)
This commit is contained in:
parent
4541337f3d
commit
dfe4291c0b
8 changed files with 111 additions and 92 deletions
|
@ -5,7 +5,6 @@ use std::fmt::Debug;
|
|||
use std::ops::Deref;
|
||||
use std::path::Path;
|
||||
|
||||
use crate::all::DunderAllName;
|
||||
use ruff_index::{newtype_index, IndexSlice, IndexVec};
|
||||
use ruff_python_ast::{self as ast, Stmt};
|
||||
use ruff_text_size::{Ranged, TextRange};
|
||||
|
@ -13,6 +12,7 @@ use ruff_text_size::{Ranged, TextRange};
|
|||
use crate::analyze::visibility::{
|
||||
class_visibility, function_visibility, method_visibility, module_visibility, Visibility,
|
||||
};
|
||||
use crate::model::all::DunderAllName;
|
||||
|
||||
/// Id uniquely identifying a definition in a program.
|
||||
#[newtype_index]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue