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

Unified Diff: third_party/WebKit/Source/devtools/front_end/sdk/SourceMap.js

Issue 2769843003: DevTools: split text_utils out of common module (Closed)
Patch Set: rebaseline Created 3 years, 9 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
Index: third_party/WebKit/Source/devtools/front_end/sdk/SourceMap.js
diff --git a/third_party/WebKit/Source/devtools/front_end/sdk/SourceMap.js b/third_party/WebKit/Source/devtools/front_end/sdk/SourceMap.js
index 07c42d63717becd8fee2a615089e9f9b94174b1d..6ff41459509fc63009e271a4d5d4c1617c9b7967 100644
--- a/third_party/WebKit/Source/devtools/front_end/sdk/SourceMap.js
+++ b/third_party/WebKit/Source/devtools/front_end/sdk/SourceMap.js
@@ -143,7 +143,7 @@ SDK.SourceMap.prototype = {
editable() {},
/**
- * @param {!Array<!Common.TextRange>} ranges
+ * @param {!Array<!TextUtils.TextRange>} ranges
* @param {!Array<string>} texts
* @return {!Promise<?SDK.SourceMap.EditResult>}
*/
@@ -156,7 +156,7 @@ SDK.SourceMap.prototype = {
SDK.SourceMap.EditResult = class {
/**
* @param {!SDK.SourceMap} map
- * @param {!Array<!Common.SourceEdit>} compiledEdits
+ * @param {!Array<!TextUtils.SourceEdit>} compiledEdits
* @param {!Map<string, string>} newSources
*/
constructor(map, compiledEdits, newSources) {
@@ -305,7 +305,7 @@ SDK.TextSourceMap = class {
/**
* @override
- * @param {!Array<!Common.TextRange>} ranges
+ * @param {!Array<!TextUtils.TextRange>} ranges
* @param {!Array<string>} texts
* @return {!Promise<?SDK.SourceMap.EditResult>}
*/
@@ -527,8 +527,8 @@ SDK.TextSourceMap = class {
/**
* @param {string} url
- * @param {!Common.TextRange} textRange
- * @return {!Common.TextRange}
+ * @param {!TextUtils.TextRange} textRange
+ * @return {!TextUtils.TextRange}
*/
reverseMapTextRange(url, textRange) {
/**
@@ -550,7 +550,7 @@ SDK.TextSourceMap = class {
var startMapping = mappings[startIndex];
var endMapping = mappings[endIndex];
- return new Common.TextRange(
+ return new TextUtils.TextRange(
startMapping.lineNumber, startMapping.columnNumber, endMapping.lineNumber, endMapping.columnNumber);
}
};

Powered by Google App Engine
This is Rietveld 408576698