Skip to main content

resolve_with_scopes

Function resolve_with_scopes 

Source
pub fn resolve_with_scopes(
    root: &Path,
    file_paths: &[String],
    all_entities: &[SemanticEntity],
    entity_map: &HashMap<String, EntityInfo>,
) -> ScopeResult
Expand description

Resolve references using tree-sitter scope analysis.

For each file:

  1. Parse with tree-sitter
  2. Build a scope tree (module -> class -> function)
  3. Walk entity AST subtrees to find reference nodes
  4. Resolve each reference via scope chain + type tracking