Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(791)

Unified Diff: third_party/WebKit/Source/devtools/front_end/formatter_worker/ESTreeWalker.js

Issue 2493373002: DevTools: rename WebInspector into modules. (Closed)
Patch Set: for bots Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/devtools/front_end/formatter_worker/ESTreeWalker.js
diff --git a/third_party/WebKit/Source/devtools/front_end/formatter_worker/ESTreeWalker.js b/third_party/WebKit/Source/devtools/front_end/formatter_worker/ESTreeWalker.js
index 84aea297ade03517a22580621f4ecfbfb92feb66..1f9398bd0440d558bd542853d6d95634841006de 100644
--- a/third_party/WebKit/Source/devtools/front_end/formatter_worker/ESTreeWalker.js
+++ b/third_party/WebKit/Source/devtools/front_end/formatter_worker/ESTreeWalker.js
@@ -4,7 +4,7 @@
/**
* @unrestricted
*/
-WebInspector.ESTreeWalker = class {
+FormatterWorker.ESTreeWalker = class {
/**
* @param {function(!ESTree.Node):(!Object|undefined)} beforeVisit
* @param {function(!ESTree.Node)=} afterVisit
@@ -44,12 +44,12 @@ WebInspector.ESTreeWalker = class {
return;
node.parent = parent;
- if (this._beforeVisit.call(null, node) === WebInspector.ESTreeWalker.SkipSubtree) {
+ if (this._beforeVisit.call(null, node) === FormatterWorker.ESTreeWalker.SkipSubtree) {
this._afterVisit.call(null, node);
return;
}
- var walkOrder = WebInspector.ESTreeWalker._walkOrder[node.type];
+ var walkOrder = FormatterWorker.ESTreeWalker._walkOrder[node.type];
if (!walkOrder) {
console.error('Walk order not defined for ' + node.type);
return;
@@ -86,11 +86,11 @@ WebInspector.ESTreeWalker = class {
}
};
-/** @typedef {!Object} WebInspector.ESTreeWalker.SkipSubtree */
-WebInspector.ESTreeWalker.SkipSubtree = {};
+/** @typedef {!Object} FormatterWorker.ESTreeWalker.SkipSubtree */
+FormatterWorker.ESTreeWalker.SkipSubtree = {};
/** @enum {!Array.<string>} */
-WebInspector.ESTreeWalker._walkOrder = {
+FormatterWorker.ESTreeWalker._walkOrder = {
'ArrayExpression': ['elements'],
'ArrowFunctionExpression': ['params', 'body'],
'AssignmentExpression': ['left', 'right'],

Powered by Google App Engine
This is Rietveld 408576698