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

refactor(compiler): simplify definition creation #1950

Merged
merged 5 commits into from
Apr 22, 2024

Conversation

bigopon
Copy link
Member

@bigopon bigopon commented Apr 22, 2024

📖 Description

To prepare for the extraction of template compiler extraction, the direct usage of resources APIs first need to be simplified. Instead of using full element definition, only use partial. It turns out to be a pretty good change, template compiler emits just enough information about what it sees in the template.

  • simplify template compiler tests, no longer use massive loops, just only scenarios that are clear and focused now.

cc @Sayan751 @fkleuver

Copy link

codecov bot commented Apr 22, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 88.45%. Comparing base (ca22bc8) to head (ed6adad).
Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1950      +/-   ##
==========================================
- Coverage   88.47%   88.45%   -0.02%     
==========================================
  Files         264      264              
  Lines       22770    22770              
  Branches     5284     5285       +1     
==========================================
- Hits        20146    20142       -4     
- Misses       2624     2628       +4     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@bigopon bigopon merged commit bb0fcab into master Apr 22, 2024
27 of 28 checks passed
@bigopon bigopon deleted the refactor/simplify-compiler branch April 22, 2024 09:27
AureliaEffect pushed a commit that referenced this pull request May 3, 2024
2.0.0-beta.16 (2024-05-03)

**Bug Fixes:**

* **au-slot:** ensure passthrough slot get the right host value (#1959) ([f266ddd](f266ddd))
* **rendering:** correctly handle compilation cache (#1955) ([c11491b](c11491b))

**Refactorings:**

* **router-lite:** avoided duplicate CE defn reg to same container (#1956) ([6578e54](6578e54))
* **compiler:** extract template compiler into own package (#1954) ([ad7ae1e](ad7ae1e))
* **compiler:** simplify definition creation (#1950) ([bb0fcab](bb0fcab))
* **observers:** use static blocks, group related code ([ca22bc8](ca22bc8))
* **runtime:** move scope to runtime html (#1945) ([bca0290](bca0290))
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