Chromium Code Reviews| Index: Source/devtools/front_end/workspace/UISourceCode.js |
| diff --git a/Source/devtools/front_end/workspace/UISourceCode.js b/Source/devtools/front_end/workspace/UISourceCode.js |
| index 5c6597aff3557b60b93be09f899abedd25f386cc..b5feb54893467f15badf05249ff86850c0dcad58 100644 |
| --- a/Source/devtools/front_end/workspace/UISourceCode.js |
| +++ b/Source/devtools/front_end/workspace/UISourceCode.js |
| @@ -729,3 +729,65 @@ WebInspector.Revision.prototype = { |
| callback([]); |
| } |
| } |
| + |
| +/** |
| + * @constructor |
| + * @param {string} text |
| + * @param {string} kind |
| + * @param {{startLine: number, startColumn: number, endLine: number, endColumn: number}} location |
| + */ |
| +WebInspector.UISourceCodeMessage = function(text, kind, location) { |
| + this._text = text; |
| + this._kind = kind; |
| + this._location = location; |
|
pfeldman
2015/10/21 23:47:53
Range?
wes
2015/10/23 20:35:30
Acknowledged.
|
| +} |
| + |
| +WebInspector.UISourceCodeMessage.prototype = { |
| + /** |
| + * @return {string} |
| + */ |
| + text: function() { |
|
pfeldman
2015/10/21 23:47:53
{ goes next line.
wes
2015/10/23 20:35:30
Acknowledged.
|
| + return this._text; |
| + }, |
| + |
| + /** |
| + * @return {string} |
| + */ |
| + kind: function() { |
| + return this._kind; |
| + }, |
| + |
| + /** |
| + * @return {{startLine: number, startColumn: number, endLine: number, endColumn: number}} |
| + */ |
| + location: function() { |
| + return this._location; |
| + } |
| +} |
| + |
| +/** |
| + * @constructor |
| + * @param {!WebInspector.UISourceCode} source |
| + * @param {!Array<!WebInspector.UISourceCodeMessage>} messages |
| + */ |
| +WebInspector.UISourceCodeMessages = function(source, messages) |
|
pfeldman
2015/10/21 23:47:53
Looks like unusual data structure. Why would you s
wes
2015/10/23 20:35:30
The source is how the source frame can lookup the
|
| +{ |
| + this._source = source; |
| + this._messages = messages; |
| +} |
| + |
| +WebInspector.UISourceCodeMessages.prototype = { |
| + /** |
| + * @return {!WebInspector.UISourceCode} |
| + */ |
| + source: function() { |
| + return this._source; |
| + }, |
| + |
| + /** |
| + * @return {!Array<!WebInspector.UISourceCodeMessage>} |
| + */ |
| + messages: function() { |
| + return this._messages; |
| + } |
| +} |