[ty] Clarify the use of `SymbolKind` in auto-import

This commit is contained in:
Andrew Gallant 2025-12-04 12:23:59 -05:00 committed by Andrew Gallant
parent 6a025d1925
commit fdcb5a7e73
1 changed files with 7 additions and 1 deletions

View File

@ -292,7 +292,13 @@ impl<'a> From<&'a SymbolTreeWithChildren> for SymbolInfo<'a> {
}
}
/// The kind of symbol
/// The kind of symbol.
///
/// Note that this is computed on a best effort basis. The nature of
/// auto-import is that it tries to do a very low effort scan of a lot of code
/// very quickly. This means that it doesn't use things like type information
/// or completely resolve the definition of every symbol. So for example, we
/// might label a module as a variable, depending on how it was introduced.
#[derive(Debug, Clone, Copy, PartialEq, Eq, get_size2::GetSize)]
pub enum SymbolKind {
Module,