| OLD | NEW |
| 1 // Copyright 2016 the V8 project authors. All rights reserved. | 1 // Copyright 2016 the V8 project 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 /** @typedef {{ | 5 /** @typedef {{ |
| 6 type: string, | 6 type: string, |
| 7 object: !Object, | 7 object: !Object, |
| 8 name: (string|undefined), | 8 name: (string|undefined), |
| 9 startLocation: (!RawLocation|undefined), | 9 startLocation: (!RawLocation|undefined), |
| 10 endLocation: (!RawLocation|undefined) | 10 endLocation: (!RawLocation|undefined) |
| (...skipping 26 matching lines...) Expand all Loading... |
| 37 isAtReturn: boolean, | 37 isAtReturn: boolean, |
| 38 details: function():!JavaScriptCallFrameDetails | 38 details: function():!JavaScriptCallFrameDetails |
| 39 }} */ | 39 }} */ |
| 40 var JavaScriptCallFrame; | 40 var JavaScriptCallFrame; |
| 41 | 41 |
| 42 /** | 42 /** |
| 43 * @const | 43 * @const |
| 44 */ | 44 */ |
| 45 var Debug = {}; | 45 var Debug = {}; |
| 46 | 46 |
| 47 Debug.clearAllBreakPoints = function() {} | |
| 48 | |
| 49 /** @return {!Array<!Script>} */ | 47 /** @return {!Array<!Script>} */ |
| 50 Debug.scripts = function() {} | 48 Debug.scripts = function() {} |
| 51 | 49 |
| 52 /** | |
| 53 * @param {number} scriptId | |
| 54 * @param {number=} line | |
| 55 * @param {number=} column | |
| 56 * @param {string=} condition | |
| 57 * @param {string=} groupId | |
| 58 * @param {Debug.BreakPositionAlignment=} positionAlignment | |
| 59 */ | |
| 60 Debug.setScriptBreakPointById = function(scriptId, line, column, condition, grou
pId, positionAlignment) {} | |
| 61 | |
| 62 /** | |
| 63 * @param {number} breakId | |
| 64 * @return {!Array<!SourceLocation>} | |
| 65 */ | |
| 66 Debug.findBreakPointActualLocations = function(breakId) {} | |
| 67 | |
| 68 /** | |
| 69 * @param {number} breakId | |
| 70 * @param {boolean} remove | |
| 71 * @return {!BreakPoint|undefined} | |
| 72 */ | |
| 73 Debug.findBreakPoint = function(breakId, remove) {} | |
| 74 | |
| 75 /** @enum */ | |
| 76 const BreakPositionAlignment = { | |
| 77 Statement: 0, | |
| 78 BreakPosition: 1 | |
| 79 }; | |
| 80 Debug.BreakPositionAlignment = BreakPositionAlignment; | |
| 81 | |
| 82 /** @const */ | 50 /** @const */ |
| 83 var LiveEdit = {} | 51 var LiveEdit = {} |
| 84 | 52 |
| 85 /** | 53 /** |
| 86 * @param {!Script} script | 54 * @param {!Script} script |
| 87 * @param {string} newSource | 55 * @param {string} newSource |
| 88 * @param {boolean} previewOnly | 56 * @param {boolean} previewOnly |
| 89 * @return {!{stack_modified: (boolean|undefined)}} | 57 * @return {!{stack_modified: (boolean|undefined)}} |
| 90 */ | 58 */ |
| 91 LiveEdit.SetScriptSource = function(script, newSource, previewOnly, change_log)
{} | 59 LiveEdit.SetScriptSource = function(script, newSource, previewOnly, change_log)
{} |
| 92 | 60 |
| 93 /** @constructor */ | 61 /** @constructor */ |
| 94 function Failure() {} | 62 function Failure() {} |
| 95 LiveEdit.Failure = Failure; | 63 LiveEdit.Failure = Failure; |
| 96 | 64 |
| 97 Debug.LiveEdit = LiveEdit; | 65 Debug.LiveEdit = LiveEdit; |
| 98 | 66 |
| 99 /** @typedef {{ | 67 /** @typedef {{ |
| 100 * type: string, | 68 * type: string, |
| 101 * syntaxErrorMessage: string, | 69 * syntaxErrorMessage: string, |
| 102 * position: !{start: !{line: number, column: number}}, | 70 * position: !{start: !{line: number, column: number}}, |
| 103 * }} | 71 * }} |
| 104 */ | 72 */ |
| 105 var LiveEditErrorDetails; | 73 var LiveEditErrorDetails; |
| 106 | 74 |
| 107 /** @typedef {{ | |
| 108 * breakpointId: number, | |
| 109 * sourceID: number, | |
| 110 * lineNumber: (number|undefined), | |
| 111 * columnNumber: (number|undefined), | |
| 112 * condition: (string|undefined), | |
| 113 * interstatementLocation: (boolean|undefined), | |
| 114 * }} | |
| 115 */ | |
| 116 var BreakpointInfo; | |
| 117 | |
| 118 | |
| 119 /** @interface */ | |
| 120 function BreakPoint() {} | |
| 121 | |
| 122 /** @return {!BreakPoint|undefined} */ | |
| 123 BreakPoint.prototype.script_break_point = function() {} | |
| 124 | |
| 125 /** @return {number} */ | |
| 126 BreakPoint.prototype.number = function() {} | |
| 127 | |
| 128 | |
| 129 /** @interface */ | 75 /** @interface */ |
| 130 function ExecutionState() {} | 76 function ExecutionState() {} |
| 131 | 77 |
| 132 /** | |
| 133 * @param {string} source | |
| 134 */ | |
| 135 ExecutionState.prototype.evaluateGlobal = function(source) {} | |
| 136 | |
| 137 /** @return {number} */ | 78 /** @return {number} */ |
| 138 ExecutionState.prototype.frameCount = function() {} | 79 ExecutionState.prototype.frameCount = function() {} |
| 139 | 80 |
| 140 /** | 81 /** |
| 141 * @param {number} index | 82 * @param {number} index |
| 142 * @return {!FrameMirror} | 83 * @return {!FrameMirror} |
| 143 */ | 84 */ |
| 144 ExecutionState.prototype.frame = function(index) {} | 85 ExecutionState.prototype.frame = function(index) {} |
| 145 | 86 |
| 146 /** @param {number} index */ | |
| 147 ExecutionState.prototype.setSelectedFrame = function(index) {} | |
| 148 | |
| 149 /** @return {number} */ | |
| 150 ExecutionState.prototype.selectedFrame = function() {} | |
| 151 | |
| 152 | |
| 153 /** @enum */ | 87 /** @enum */ |
| 154 var ScopeType = { Global: 0, | 88 var ScopeType = { Global: 0, |
| 155 Local: 1, | 89 Local: 1, |
| 156 With: 2, | 90 With: 2, |
| 157 Closure: 3, | 91 Closure: 3, |
| 158 Catch: 4, | 92 Catch: 4, |
| 159 Block: 5, | 93 Block: 5, |
| 160 Script: 6, | 94 Script: 6, |
| 161 Eval: 7, | 95 Eval: 7, |
| 162 Module: 8}; | 96 Module: 8}; |
| (...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 378 ScopeMirror.prototype.setVariableValue = function(name, newValue) {} | 312 ScopeMirror.prototype.setVariableValue = function(name, newValue) {} |
| 379 | 313 |
| 380 /** | 314 /** |
| 381 * @interface | 315 * @interface |
| 382 * @extends {Mirror} | 316 * @extends {Mirror} |
| 383 */ | 317 */ |
| 384 function ContextMirror() {} | 318 function ContextMirror() {} |
| 385 | 319 |
| 386 /** @return {string|undefined} */ | 320 /** @return {string|undefined} */ |
| 387 ContextMirror.prototype.data = function() {} | 321 ContextMirror.prototype.data = function() {} |
| OLD | NEW |