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

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

Issue 2017723002: DevTools: pretty-print javascript class expression (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2014 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 /** 5 /**
6 * @constructor 6 * @constructor
7 * @param {function(!ESTree.Node):(!Object|undefined)} beforeVisit 7 * @param {function(!ESTree.Node):(!Object|undefined)} beforeVisit
8 * @param {function(!ESTree.Node)=} afterVisit 8 * @param {function(!ESTree.Node)=} afterVisit
9 */ 9 */
10 WebInspector.ESTreeWalker = function(beforeVisit, afterVisit) 10 WebInspector.ESTreeWalker = function(beforeVisit, afterVisit)
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 "ArrayExpression": ["elements"], 100 "ArrayExpression": ["elements"],
101 "ArrowFunctionExpression": ["params", "body"], 101 "ArrowFunctionExpression": ["params", "body"],
102 "AssignmentExpression": ["left", "right"], 102 "AssignmentExpression": ["left", "right"],
103 "BinaryExpression": ["left", "right"], 103 "BinaryExpression": ["left", "right"],
104 "BlockStatement": ["body"], 104 "BlockStatement": ["body"],
105 "BreakStatement": ["label"], 105 "BreakStatement": ["label"],
106 "CallExpression": ["callee", "arguments"], 106 "CallExpression": ["callee", "arguments"],
107 "CatchClause": ["param", "body"], 107 "CatchClause": ["param", "body"],
108 "ClassBody": ["body"], 108 "ClassBody": ["body"],
109 "ClassDeclaration": ["id", "superClass", "body"], 109 "ClassDeclaration": ["id", "superClass", "body"],
110 "ClassExpression": ["id", "superClass", "body"],
110 "ConditionalExpression": ["test", "consequent", "alternate"], 111 "ConditionalExpression": ["test", "consequent", "alternate"],
111 "ContinueStatement": ["label"], 112 "ContinueStatement": ["label"],
112 "DebuggerStatement": [], 113 "DebuggerStatement": [],
113 "DoWhileStatement": ["body", "test"], 114 "DoWhileStatement": ["body", "test"],
114 "EmptyStatement": [], 115 "EmptyStatement": [],
115 "ExpressionStatement": ["expression"], 116 "ExpressionStatement": ["expression"],
116 "ForInStatement": ["left", "right", "body"], 117 "ForInStatement": ["left", "right", "body"],
117 "ForOfStatement": ["left", "right", "body"], 118 "ForOfStatement": ["left", "right", "body"],
118 "ForStatement": ["init", "test", "update", "body"], 119 "ForStatement": ["init", "test", "update", "body"],
119 "FunctionDeclaration": ["id", "params", "body"], 120 "FunctionDeclaration": ["id", "params", "body"],
(...skipping 21 matching lines...) Expand all
141 "ThrowStatement": ["argument"], 142 "ThrowStatement": ["argument"],
142 "TryStatement": ["block", "handler", "finalizer"], 143 "TryStatement": ["block", "handler", "finalizer"],
143 "UnaryExpression": ["argument"], 144 "UnaryExpression": ["argument"],
144 "UpdateExpression": ["argument"], 145 "UpdateExpression": ["argument"],
145 "VariableDeclaration": ["declarations"], 146 "VariableDeclaration": ["declarations"],
146 "VariableDeclarator": ["id", "init"], 147 "VariableDeclarator": ["id", "init"],
147 "WhileStatement": ["test", "body"], 148 "WhileStatement": ["test", "body"],
148 "WithStatement": ["object", "body"], 149 "WithStatement": ["object", "body"],
149 "YieldExpression": ["argument"] 150 "YieldExpression": ["argument"]
150 } 151 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698