Commit Graph

24 Commits

Author SHA1 Message Date
Tobias Koppers ab169893a1 refactor Parser to allow variable tagging
use variable tagging in harmony pluging (instead of magic renaming)
Parser no longer calls hooks.expression for x in `x = ...`, hooks.pattern is called instead
remove rootName argument from hooks.expressionMemberChain and hooks.callMemberChain
2019-09-03 14:17:46 +02:00
Tobias Koppers babe736cfa replace prefix/postfix even when equal for wrapped context
walk inner expressions in wrapped context
add tracking of inner expressions in wrapped BasicEvaluatedExpression
fixes #8293
closes ##8337
2018-11-05 15:17:56 +01:00
Tobias Koppers f0dfc45b9f merge parts too when simplifying
fix bug which keeps const conditional expression in bundle
remove parsing code from ContextDependencyHelpers
2018-11-03 11:16:16 +01:00
Zhibin Liu 25af83f288 fix after comments 2018-10-30 19:39:43 +08:00
Florent Cailhol 2a9452e51b Add brackets for multiline if/for statements 2018-05-29 15:45:44 +02:00
Tobias Koppers 5238159d21 run prettier on existing code 2018-02-25 02:00:20 +01:00
Florent Cailhol 4fc5690fe9 Make BasicEvaluatedExpression monomorphic 2018-01-03 22:44:17 +01:00
Tobias Koppers 75f68a2635 fixes linting, remove not needed context arguments 2017-11-08 20:49:41 +01:00
Tobias Koppers 8e4c8423b5 accept truthy/falsy value for not
fix #5100
2017-06-20 15:58:24 +02:00
Tobias Koppers 27cc834a49 evaluate some identifiers to truthy values
fixes #4596
2017-06-02 13:24:47 +02:00
Ali BARIN a941499889 Update variable declarations according to ES6 2017-03-02 15:09:09 +01:00
Will Mendes b1c7d5c8cf refactor(ES6): upgrade BasicEvaluatedExpression to ES6 (#3676)
* refactor(ES6): upgrade BasicEvaluatedExpression to ES6
2017-01-02 15:32:23 -06:00
Tobias Koppers 73acc3b8af beautify missing files 2016-12-06 19:40:10 +01:00
Diogo Franco (Kovensky) da5c735b56 Add implementation 2016-11-21 08:37:22 +09:00
Tobias Koppers f7d799adb4 rebeautify without spacing after keyword 2015-07-16 00:19:23 +02:00
Avi Haiat 0a340f2b1a feat(app): Beautify all lib files 2015-07-13 01:20:09 +03:00
Tobias Koppers cebd3b9722 added linting 2015-04-23 23:55:50 +02:00
Tobias Koppers cd5252b962 fixed a bug with wrapped expressions in ?: 2015-03-06 17:02:24 +01:00
Tobias Koppers 3ddb26ff36 more reliable parsing of wrapped expressions
fixed #801
2015-02-28 00:51:15 +01:00
Tobias Koppers 4fef1312c5 evaluate null
fixes #633
2014-12-22 09:32:42 +01:00
Tobias Koppers 63f40c0e76 support fancy array in AMD, support .replace and .split 2013-12-08 14:59:52 +01:00
Tobias Koppers 415d161dbe evaluate the callee in CallExpression, fixes #117
This allow fancy wrappers around identifiers
2013-11-08 09:00:39 +01:00
Tobias Koppers a37948d114 added options.define, evaluate conditionals, fixes #99 2013-09-13 11:17:57 +02:00
Tobias Koppers ee01837d66 Refactored everything for 0.9 2013-01-30 18:49:25 +01:00