mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-28 12:55:05 +00:00
[red-knot] better docs for use-def maps (#12357)
Add better doc comments and comments, as well as one debug assertion, to use-def map building.
This commit is contained in:
parent
985a999234
commit
b2a49d8140
3 changed files with 231 additions and 52 deletions
|
@ -15,7 +15,6 @@ use crate::semantic_index::expression::Expression;
|
|||
use crate::semantic_index::symbol::{
|
||||
FileScopeId, NodeWithScopeKey, NodeWithScopeRef, Scope, ScopeId, ScopedSymbolId, SymbolTable,
|
||||
};
|
||||
use crate::semantic_index::use_def::UseDefMap;
|
||||
use crate::Db;
|
||||
|
||||
pub mod ast_ids;
|
||||
|
@ -23,7 +22,9 @@ mod builder;
|
|||
pub mod definition;
|
||||
pub mod expression;
|
||||
pub mod symbol;
|
||||
pub mod use_def;
|
||||
mod use_def;
|
||||
|
||||
pub(crate) use self::use_def::UseDefMap;
|
||||
|
||||
type SymbolMap = hashbrown::HashMap<ScopedSymbolId, (), ()>;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue