[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:
Carl Meyer 2024-07-17 17:50:58 -07:00 committed by GitHub
parent 985a999234
commit b2a49d8140
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 231 additions and 52 deletions

View file

@ -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, (), ()>;