Repository navigation
feat: import and symbol analysis - #6
Merged
Merged
Conversation
Acceptance tests for the rest of Phase 2: module names in the source layer, per-scope import bindings with relative imports and recorded wildcards, and a SymbolAnalysis resolving names through scopes, imports and builtins. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Source files carry their dotted module name so relative imports resolve statically. ImportAnalysis collects bindings per scope and records wildcard imports instead of aborting. SymbolAnalysis resolves any name through scopes, imports and builtins, and lowering emits canonical symbols from it. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
6 tasks done
SizzleUnrlsd
added a commit
that referenced
this pull request
Sep 3, 2026
feat: import and symbol analysis
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Finishes Phase 2 of
docs/architecture.md(§4.2 ImportAnalysis, §4.3 SymbolAnalysis).test: define import and symbol analysis behavior), implementation follows in this PR.__init__.pypackages.ImportAnalysiscollects bindings per scope (module and function level), resolves relative imports against the module name, and records wildcard imports instead of aborting.SymbolAnalysisresolves any name in any scope to a canonicalSymbolIdthrough scope rules, imports and closures; builtins becomepython.builtins.<name>.SymbolIdaccepts any namespace (flask.request.args,django.http.HttpRequest.GET).SymbolAnalysis: builtins, function-level and relative imports now emitsymbol @....Closes #5
🤖 Generated with Claude Code