Improve ruff_python_semantic::all::extract_all_names() (#11335)

This commit is contained in:
Alex Waygood 2024-05-08 17:09:31 +01:00 committed by GitHub
parent 4541337f3d
commit dfe4291c0b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 111 additions and 92 deletions

View file

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