mirror of
https://github.com/abhigyanpatwari/GitNexus.git
synced 2026-09-07 08:26:11 +00:00
`import models as m` aliases were stored in namedImportMap (a symbol-binding map) then cross-referenced in pipeline.ts — semantic misuse and inefficient. Refactored: NamedBinding gains `isModuleAlias` flag. applyImportResult routes tagged bindings directly to moduleAliasMap at import time. Removes the pipeline.ts post-processing loop entirely. Added test fixture and 5 integration tests for `import X as Y` with multi-module disambiguation (both models.py and auth.py export User).
12 lines
145 B
Python
12 lines
145 B
Python
import models as m
|
|
import auth as a
|
|
|
|
def main():
|
|
u = m.User()
|
|
u.save()
|
|
|
|
r = m.Repo()
|
|
r.persist()
|
|
|
|
v = a.User()
|
|
v.login()
|