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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/sources/SourceMapNamesResolver.js

Issue 1763193002: [DevTools] Fix more frontend compiler errors (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@caseq-patch
Patch Set: Created 4 years, 9 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 WebInspector.SourceMapNamesResolver = {}; 5 WebInspector.SourceMapNamesResolver = {};
6 6
7 WebInspector.SourceMapNamesResolver._cachedMapSymbol = Symbol("cache"); 7 WebInspector.SourceMapNamesResolver._cachedMapSymbol = Symbol("cache");
8 WebInspector.SourceMapNamesResolver._cachedPromiseSymbol = Symbol("cache"); 8 WebInspector.SourceMapNamesResolver._cachedPromiseSymbol = Symbol("cache");
9 9
10 /** 10 /**
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 if (isFunction(node)) 75 if (isFunction(node))
76 functionDeclarationCounter++; 76 functionDeclarationCounter++;
77 77
78 if (functionDeclarationCounter > 1) 78 if (functionDeclarationCounter > 1)
79 return; 79 return;
80 80
81 if (isFunction(node) && node.params) 81 if (isFunction(node) && node.params)
82 identifiers.pushAll(node.params); 82 identifiers.pushAll(node.params);
83 83
84 if (node.type === "VariableDeclarator") 84 if (node.type === "VariableDeclarator")
85 identifiers.push(node.id); 85 identifiers.push(/** @type {!ESTree.Node} */(node.id));
86 } 86 }
87 87
88 /** 88 /**
89 * @param {!ESTree.Node} node 89 * @param {!ESTree.Node} node
90 */ 90 */
91 function afterVisit(node) 91 function afterVisit(node)
92 { 92 {
93 if (isFunction(node)) 93 if (isFunction(node))
94 functionDeclarationCounter--; 94 functionDeclarationCounter--;
95 } 95 }
(...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after
371 /** 371 /**
372 * @override 372 * @override
373 * @param {function(?Array<!DebuggerAgent.CollectionEntry>)} callback 373 * @param {function(?Array<!DebuggerAgent.CollectionEntry>)} callback
374 */ 374 */
375 collectionEntries: function(callback) 375 collectionEntries: function(callback)
376 { 376 {
377 this._object.collectionEntries(callback); 377 this._object.collectionEntries(callback);
378 }, 378 },
379 379
380 __proto__: WebInspector.RemoteObject.prototype 380 __proto__: WebInspector.RemoteObject.prototype
381 } 381 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698