Skip to content

Unify Python projection symbol naming - #165

Merged
leileizhang (lei9444) merged 4 commits into
mainfrom
lei9444-python-projection-symbols
Sep 20, 2026
Merged

leileizhang (lei9444) merged 4 commits into
mainfrom
lei9444-python-projection-symbols

Conversation

@lei9444

@lei9444 leileizhang (lei9444) commented Sep 18, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Centralize Python symbol mapping for declarations, references, imports, exports, identity/Like aliases, and conversion helpers using canonical type identities and module-local roles.
  • Fix class/self/base aliases, normalized struct-helper collisions, and enum/generic name mismatches. Reserve native registration variables and imported or inline required-interface declarations so helper aliases cannot overwrite them.
  • Add typing and native-call regressions while preserving isolated public helper APIs, native metadata identities, and JavaScript output.

Bind local declarations, foreign aliases, class identity markers, enum projections, and struct conversion helpers by canonical type identity and symbol role. Preserve isolated helper APIs and native metadata names, and cover package, standalone, incremental, typing, and native conversion paths without changing JavaScript output.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: e4cdc05d-5918-44e0-9c37-7b33ab3cf02d
Allocate conversion helper aliases against actual module imports and local declarations. Preserve owning struct helper APIs by aliasing foreign types when needed, keep type and marker roles consistent, and cover imported, local-owner, and isolated-struct collisions in both Python layouts.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: e4cdc05d-5918-44e0-9c37-7b33ab3cf02d
@github-actions

github-actions Bot commented Sep 18, 2026 •

Copy link
Copy Markdown

Mixed-language test coverage

Workflow status: ✅ Passed

Layer Lines Functions Branches/regions
Rust, including native .pyd/.node 86.07% 81.19% 85.66% regions
Python aggregate 71.06% n/a 37.9% branches
Python runtime 99.12% n/a 97.37% branches
Generated Python WinRT projections 70.05% n/a 27.07% branches
Generated Python WinRT implementations 72.29% n/a 47.04% branches
JavaScript aggregate 22.14% 25.21% 57.88% branches
JavaScript runtime 44.27% 45.76% 78.99% branches
Generated WinRT projections 22.97% 18.71% 54.94% branches
Generated WinRT implementations 48.66% 59.76% 61.14% branches
Generated Classic COM projections 11.92% 23.97% 54.2% branches

View workflow run and download full HTML/LCOV/XML reports

Reserve actual emitted registration and required-view symbols in the module-local allocator. Share those roles across declarations and invocations, preserve call behavior and public helpers, and add native callback regressions for packaged, standalone, shared, and inline-required projections.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: bdea384f-3022-47e8-8c74-11fd768c2105
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: bdea384f-3022-47e8-8c74-11fd768c2105
@lei9444
leileizhang (lei9444) merged commit 571fb6e into main Sep 20, 2026
33 checks passed
@lei9444
leileizhang (lei9444) deleted the lei9444-python-projection-symbols branch September 20, 2026 01:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants