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

[INTERNAL] JSModuleAnalyzer: update language metadata #44

Merged
merged 1 commit into from
Jul 5, 2018

Conversation

codeworrior
Copy link
Member

The JSModuleAnalyzer internally uses some metadata describing for each
type of ESTree node what properties represent conditionally executed
code branches and what properties represent unconditionally executed
branches. The metadata is used while visiting an AST to classify
dependencies as 'static' or 'conditional'.

During the migration of the analyzer from Java to JavaScript, metadata
was only maintained for a rudimentary set of nodes (basically ES5) and all
other nodes have been marked as 'toBeDone'.

This change closes this gap and maintains metadata for all ES6 node
types; only the types planned for ES7 are kept as 'toBeDone'

The JSModuleAnalyzer internally uses some metadata describing for each
type of ESTree node what properties represent conditionally executed
code branches and what properties represent unconditionally executed
branches. The metadata is used while visiting an AST to classify
dependencies as 'static' ord 'conditional'.

During the migration of the analyzer from Java to JavaScript, metadata
was only maintained for rudimentary set of nodes (basically ES5) and all
other nodes have been marked as 'toBeDone'.

This changes closes this gap and maintaines metadata for all ES6 node
types, only the types planned for ES7 are kept as 'toBeDone'
@coveralls
Copy link

coveralls commented Jul 2, 2018

Pull Request Test Coverage Report for Build 227

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 66.941%

Totals Coverage Status
Change from base Build 224: 0.0%
Covered Lines: 633
Relevant Lines: 870

💛 - Coveralls

@codeworrior codeworrior requested review from RandomByte and matz3 July 5, 2018 05:20
@codeworrior codeworrior merged commit 05d4127 into master Jul 5, 2018
@codeworrior codeworrior deleted the improve-es6-support-in-jsanalyzer branch July 5, 2018 14:55
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