Chromium Code Reviews| Index: third_party/WebKit/Source/devtools/front_end/bindings/CompilerScriptMapping.js |
| diff --git a/third_party/WebKit/Source/devtools/front_end/bindings/CompilerScriptMapping.js b/third_party/WebKit/Source/devtools/front_end/bindings/CompilerScriptMapping.js |
| index 8ff4c7f32d14d7a318d4747efe8115547a205353..a21ffd59fc0f71f2ae56e0c6d2897a8d5ebeb7e4 100644 |
| --- a/third_party/WebKit/Source/devtools/front_end/bindings/CompilerScriptMapping.js |
| +++ b/third_party/WebKit/Source/devtools/front_end/bindings/CompilerScriptMapping.js |
| @@ -150,19 +150,20 @@ Bindings.CompilerScriptMapping = class { |
| * @param {!Workspace.UISourceCode} uiSourceCode |
| * @param {number} lineNumber |
| * @param {number} columnNumber |
| - * @return {?SDK.DebuggerModel.Location} |
| + * @return {!Array<!SDK.DebuggerModel.Location>} |
| */ |
| - uiLocationToRawLocation(uiSourceCode, lineNumber, columnNumber) { |
| + uiLocationToRawLocations(uiSourceCode, lineNumber, columnNumber) { |
| var script = uiSourceCode[Bindings.CompilerScriptMapping._scriptSymbol]; |
| if (!script) |
| - return null; |
| + return []; |
| var sourceMap = this._sourceMapManager.sourceMapForClient(script); |
| if (!sourceMap) |
| - return null; |
| + return []; |
| var entry = sourceMap.firstSourceLineMapping(uiSourceCode.url(), lineNumber); |
|
dgozman
2017/05/02 19:47:41
We can actually return multiple here. Are you goin
|
| if (!entry) |
| - return null; |
| - return this._debuggerModel.createRawLocation(script, entry.lineNumber, entry.columnNumber); |
| + return []; |
| + var location = this._debuggerModel.createRawLocation(script, entry.lineNumber, entry.columnNumber); |
| + return location ? [location] : []; |
| } |
| /** |