| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 } |
| OLD | NEW |