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

Unified 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: Rebased patch 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/devtools/front_end/common/Platform.js ('k') | Source/devtools/front_end/common/utilities.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/devtools/front_end/common/TextRange.js
diff --git a/Source/devtools/front_end/common/TextRange.js b/Source/devtools/front_end/common/TextRange.js
index 834e8166cfd4574964ce2f6aae86ee3f8674c1f7..3639fb8ec639b9246af942e336e080d5fca659b3 100644
--- a/Source/devtools/front_end/common/TextRange.js
+++ b/Source/devtools/front_end/common/TextRange.js
@@ -43,6 +43,11 @@ WebInspector.TextRange = function(startLine, startColumn, endLine, endColumn)
this.endColumn = endColumn;
}
+/**
+ * @param {number} line
+ * @param {number} column
+ * @return {!WebInspector.TextRange}
+ */
WebInspector.TextRange.createFromLocation = function(line, column)
{
return new WebInspector.TextRange(line, column, line, column);
« no previous file with comments | « Source/devtools/front_end/common/Platform.js ('k') | Source/devtools/front_end/common/utilities.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698