Index: third_party/WebKit/Source/devtools/front_end/es_tree/ESTreeWalker.js |
diff --git a/third_party/WebKit/Source/devtools/front_end/script_formatter_worker/ESTreeWalker.js b/third_party/WebKit/Source/devtools/front_end/es_tree/ESTreeWalker.js |
similarity index 94% |
rename from third_party/WebKit/Source/devtools/front_end/script_formatter_worker/ESTreeWalker.js |
rename to third_party/WebKit/Source/devtools/front_end/es_tree/ESTreeWalker.js |
index 243b89f0ba2f2de94f96f534869b8c2824d3fc78..6f564dbcac23a0291c47acdaf7eab451d4c36a80 100644 |
--- a/third_party/WebKit/Source/devtools/front_end/script_formatter_worker/ESTreeWalker.js |
+++ b/third_party/WebKit/Source/devtools/front_end/es_tree/ESTreeWalker.js |
@@ -7,13 +7,13 @@ |
* @param {function(!ESTree.Node)} beforeVisit |
* @param {function(!ESTree.Node)} afterVisit |
*/ |
-FormatterWorker.ESTreeWalker = function(beforeVisit, afterVisit) |
+WebInspector.ESTreeWalker = function(beforeVisit, afterVisit) |
{ |
this._beforeVisit = beforeVisit; |
this._afterVisit = afterVisit; |
} |
-FormatterWorker.ESTreeWalker.prototype = { |
+WebInspector.ESTreeWalker.prototype = { |
/** |
* @param {!ESTree.Node} ast |
*/ |
@@ -34,7 +34,7 @@ FormatterWorker.ESTreeWalker.prototype = { |
this._beforeVisit.call(null, node); |
- var walkOrder = FormatterWorker.ESTreeWalker._walkOrder[node.type]; |
+ var walkOrder = WebInspector.ESTreeWalker._walkOrder[node.type]; |
if (!walkOrder) { |
console.error("Walk order not defined for " + node.type); |
return; |
@@ -73,7 +73,7 @@ FormatterWorker.ESTreeWalker.prototype = { |
} |
/** @enum {!Array.<string>} */ |
-FormatterWorker.ESTreeWalker._walkOrder = { |
+WebInspector.ESTreeWalker._walkOrder = { |
"ArrayExpression": ["elements"], |
"ArrowFunctionExpression": ["params", "body"], |
"AssignmentExpression": ["left", "right"], |