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

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

Issue 1653053002: Devtools: parse variables scopes and sourcemap them (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 months 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/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"],
« no previous file with comments | « third_party/WebKit/Source/devtools/devtools.gypi ('k') | third_party/WebKit/Source/devtools/front_end/es_tree/module.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698