Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(13)

Side by Side Diff: Source/devtools/front_end/common/TextRange.js

Issue 340513003: DevTools: Add JSDoc for static methods, fix JSDoc types and induced errors (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698