Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[REF-2370] Combine library/version into ImportVar and replace _get_imports with _get_imports_list #3198

Draft
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

masenf
Copy link
Collaborator

@masenf masenf commented Apr 30, 2024

Refactor the method for specifying ImportVar to a more flat format which is easier to combine and work with the intermediate format. No need to merge_imports, just append the new ImportVar to the list.

Combination occurs in the new ImportList.collapse function which handles version conflict detection and combination of other metadata that doesn't influence the identity of the ImportVar, like install, render, and transpile


2024-04-30: converted to draft to focus on component public API first.

* deprecate `_get_imports` in favor of new `_get_imports_list`
* `_get_all_imports` now returns an `ImportList`
* Compiler uses `ImportList.collapse` to get an `ImportDict`
@masenf masenf marked this pull request as draft April 30, 2024 21:59
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.

None yet

1 participant