pub fn resolve_with_scopes(
root: &Path,
file_paths: &[String],
all_entities: &[SemanticEntity],
entity_map: &HashMap<String, EntityInfo>,
) -> ScopeResultExpand description
Resolve references using tree-sitter scope analysis.
For each file:
- Parse with tree-sitter
- Build a scope tree (module -> class -> function)
- Walk entity AST subtrees to find reference nodes
- Resolve each reference via scope chain + type tracking