#909·GitNexus

元: 语义模型中的纯范围基解析

作者: magyargergo创建于 2026年4月18日更新于 2026年9月18日
标签refactorsemantic-modelrfc:scope-resolutiontracking

RFC: RFC: Pure Scope-Based Resolution in the Semantic Model Predecessor: ️ RFC: From fuzzy lookups to a semantic model Complements: ️ Ingestion Roadmap — Phase 3 + Phase 4 Triggering feedback: #902 (closed; work absorbed into #912)


What this is

Replace today's call-resolution DAG and TieredCandidates API with a pure scope-based resolution layer on the SemanticModel. Resolver consults three scope-aware per-kind entry points — ClassRegistry.lookup(name, scope), MethodRegistry.lookup(name, scope), FieldRegistry.lookup(name, scope) — backed by a scope tree with declarations, imports, and type bindings. Confidence and provenance become first-class per resolution. No AST reads at resolution time. Details in the Notion RFC.

内容来源: abhigyanpatwari/GitNexus