Skip to content

Commit

Permalink
[FIX] Adapt to recent extension of estraverse's set of node types (#310)
Browse files Browse the repository at this point in the history
  • Loading branch information
codeworrior authored and matz3 committed Aug 14, 2019
1 parent ab1073e commit 9db14e6
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
6 changes: 5 additions & 1 deletion lib/lbt/analyzer/JSModuleAnalyzer.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const EnrichedVisitorKeys = (function() {
* E.g. in an IfExpression, the 'test' is always executed, whereas 'consequent'
* and 'alternate' are only executed under certain conditions.
*
* While visiting the AST of a JavaSCript file, the JSModuleAnalyzer uses this information
* While visiting the AST of a JavaScript file, the JSModuleAnalyzer uses this information
* to decide whether a code block is executed conditionally or unconditionally.
* Besides this information which is inherent to the language, the analyzer uses
* additional knowledge about special APIS / constructs (e.g. the factory function of
Expand Down Expand Up @@ -103,6 +103,10 @@ const EnrichedVisitorKeys = (function() {
* import >>>a<<< from 'module';
*/
ImportDefaultSpecifier: [], // local
/*
* Dynamic Import expression, the argument is evaluated unconditionally.
*/
ImportExpression: [], // source,
/*
* import >>>* as b<<< from 'module';
*/
Expand Down
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@
"escodegen": "^1.11.1",
"escope": "^3.6.0",
"esprima": "^4.0.1",
"estraverse": "^4.2.0",
"estraverse": "^4.3.0",
"globby": "^10.0.1",
"graceful-fs": "^4.2.1",
"jsdoc": "3.5.5",
Expand Down

0 comments on commit 9db14e6

Please sign in to comment.