aboutsummaryrefslogtreecommitdiffstats
path: root/build/build/lib/squeeze-more.js
diff options
context:
space:
mode:
Diffstat (limited to 'build/build/lib/squeeze-more.js')
-rw-r--r--build/build/lib/squeeze-more.js22
1 files changed, 0 insertions, 22 deletions
diff --git a/build/build/lib/squeeze-more.js b/build/build/lib/squeeze-more.js
deleted file mode 100644
index 12380af82..000000000
--- a/build/build/lib/squeeze-more.js
+++ /dev/null
@@ -1,22 +0,0 @@
-var jsp = require("./parse-js"),
- pro = require("./process"),
- slice = jsp.slice,
- member = jsp.member,
- PRECEDENCE = jsp.PRECEDENCE,
- OPERATORS = jsp.OPERATORS;
-
-function ast_squeeze_more(ast) {
- var w = pro.ast_walker(), walk = w.walk;
- return w.with_walkers({
- "call": function(expr, args) {
- if (expr[0] == "dot" && expr[2] == "toString" && args.length == 0) {
- // foo.toString() ==> foo+""
- return [ "binary", "+", expr[1], [ "string", "" ]];
- }
- }
- }, function() {
- return walk(ast);
- });
-};
-
-exports.ast_squeeze_more = ast_squeeze_more;