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

Dead Code Elimination #98

Merged
merged 19 commits into from
Oct 8, 2018
Merged

Dead Code Elimination #98

merged 19 commits into from
Oct 8, 2018

Conversation

gdotdesign
Copy link
Member

@gdotdesign gdotdesign commented Sep 20, 2018

This PR adds DCE (Dead Code Eliminiation) to the language.

Since there are a fixed number of entry points in the language: routes and the Main component we can traverse recursively the AST type checking and marking nodes for compiling.

After traversing the AST this way we type check the remaining nodes but don't mark them for compilation.

Entities which can be removed this was:

  • Components
    • Functions
    • Computed Properties
    • Styles
  • Modules
    • Functions
  • Providers
  • Stores
  • Enums
  • Where Statements

Also this PR implements inline JavaScript interpolation.

@gdotdesign gdotdesign self-assigned this Sep 20, 2018
@gdotdesign gdotdesign merged commit 1fcd2b8 into development Oct 8, 2018
@gdotdesign gdotdesign changed the title [WIP] Dead Code Elimination Dead Code Elimination Dec 24, 2018
@gdotdesign gdotdesign mentioned this pull request Dec 24, 2018
6 tasks
@gdotdesign gdotdesign deleted the dead-code-eliminitation branch January 21, 2019 09:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants