| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 * @param {number} endColumn | 36 * @param {number} endColumn |
| 37 */ | 37 */ |
| 38 WebInspector.TextRange = function(startLine, startColumn, endLine, endColumn) | 38 WebInspector.TextRange = function(startLine, startColumn, endLine, endColumn) |
| 39 { | 39 { |
| 40 this.startLine = startLine; | 40 this.startLine = startLine; |
| 41 this.startColumn = startColumn; | 41 this.startColumn = startColumn; |
| 42 this.endLine = endLine; | 42 this.endLine = endLine; |
| 43 this.endColumn = endColumn; | 43 this.endColumn = endColumn; |
| 44 } | 44 } |
| 45 | 45 |
| 46 /** |
| 47 * @param {number} line |
| 48 * @param {number} column |
| 49 * @return {!WebInspector.TextRange} |
| 50 */ |
| 46 WebInspector.TextRange.createFromLocation = function(line, column) | 51 WebInspector.TextRange.createFromLocation = function(line, column) |
| 47 { | 52 { |
| 48 return new WebInspector.TextRange(line, column, line, column); | 53 return new WebInspector.TextRange(line, column, line, column); |
| 49 } | 54 } |
| 50 | 55 |
| 51 /** | 56 /** |
| 52 * @param {!Object} serializedTextRange | 57 * @param {!Object} serializedTextRange |
| 53 * @return {!WebInspector.TextRange} | 58 * @return {!WebInspector.TextRange} |
| 54 */ | 59 */ |
| 55 WebInspector.TextRange.fromObject = function(serializedTextRange) | 60 WebInspector.TextRange.fromObject = function(serializedTextRange) |
| (...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 235 /** | 240 /** |
| 236 * @constructor | 241 * @constructor |
| 237 * @param {number} offset | 242 * @param {number} offset |
| 238 * @param {number} length | 243 * @param {number} length |
| 239 */ | 244 */ |
| 240 WebInspector.SourceRange = function(offset, length) | 245 WebInspector.SourceRange = function(offset, length) |
| 241 { | 246 { |
| 242 this.offset = offset; | 247 this.offset = offset; |
| 243 this.length = length; | 248 this.length = length; |
| 244 } | 249 } |
| OLD | NEW |