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

Reuse the loc of the macroMaybeAttrs hashes for the created attributes #1119

Merged
merged 2 commits into from Feb 10, 2022

Conversation

Windvis
Copy link
Collaborator

@Windvis Windvis commented Feb 8, 2022

The newer template compiler sorts attributes based on their loc location when printing. Since previously no loc info was added to the newly created attributes, they were being moved to the front of the element. By reusing their original loc data we can ensure that the order from the source file is maintained.

This commit was included in #1103 since it's a requirement for the tests to pass under the newer compiler version.

The newer template compiler sorts attributes based on their `loc` location when printing. Since previously no `loc` info was added to the newly created attributes, they were being moved to the front of the element. By reusing their original `loc` data we can ensure that the order from the source file is maintained.
@Windvis Windvis changed the title Reuse the loc of the macroMaybeAttrs hashes for the created attributes Reuse the loc of the macroMaybeAttrs hashes for the created attributes Feb 8, 2022
@ef4 ef4 merged commit 59959c8 into embroider-build:main Feb 10, 2022
@ef4
Copy link
Contributor

ef4 commented Feb 10, 2022

Thanks, looking good.

@ef4 ef4 added the enhancement New feature or request label Feb 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants