| Index: third_party/WebKit/Source/devtools/front_end/console/ConsolePrompt.js
|
| diff --git a/third_party/WebKit/Source/devtools/front_end/console/ConsolePrompt.js b/third_party/WebKit/Source/devtools/front_end/console/ConsolePrompt.js
|
| index f0c2ff7dd76c17e60e6d8eb9316bf830f8174de4..b80b97cbdf891a258f777df820274371abd0ab77 100644
|
| --- a/third_party/WebKit/Source/devtools/front_end/console/ConsolePrompt.js
|
| +++ b/third_party/WebKit/Source/devtools/front_end/console/ConsolePrompt.js
|
| @@ -64,7 +64,7 @@ Console.ConsolePrompt = class extends UI.Widget {
|
|
|
| moveCaretToEndOfPrompt() {
|
| if (this._editor)
|
| - this._editor.setSelection(Common.TextRange.createFromLocation(Infinity, Infinity));
|
| + this._editor.setSelection(TextUtils.TextRange.createFromLocation(Infinity, Infinity));
|
| }
|
|
|
| /**
|
| @@ -134,7 +134,7 @@ Console.ConsolePrompt = class extends UI.Widget {
|
| this.setText(newText);
|
|
|
| if (isPrevious)
|
| - this._editor.setSelection(Common.TextRange.createFromLocation(0, Infinity));
|
| + this._editor.setSelection(TextUtils.TextRange.createFromLocation(0, Infinity));
|
| else
|
| this.moveCaretToEndOfPrompt();
|
| this.setMinimumSize(0, this._editor.widget().element.offsetHeight);
|
| @@ -238,7 +238,7 @@ Console.ConsolePrompt = class extends UI.Widget {
|
| /**
|
| * @param {number} lineNumber
|
| * @param {number} columnNumber
|
| - * @return {?Common.TextRange}
|
| + * @return {?TextUtils.TextRange}
|
| */
|
| _substituteRange(lineNumber, columnNumber) {
|
| var lineText = this._editor.line(lineNumber);
|
| @@ -247,19 +247,19 @@ Console.ConsolePrompt = class extends UI.Widget {
|
| if (' =:[({;,!+-*/&|^<>.\t\r\n'.indexOf(lineText.charAt(index)) !== -1)
|
| break;
|
| }
|
| - return new Common.TextRange(lineNumber, index + 1, lineNumber, columnNumber);
|
| + return new TextUtils.TextRange(lineNumber, index + 1, lineNumber, columnNumber);
|
| }
|
|
|
| /**
|
| - * @param {!Common.TextRange} queryRange
|
| - * @param {!Common.TextRange} substituteRange
|
| + * @param {!TextUtils.TextRange} queryRange
|
| + * @param {!TextUtils.TextRange} substituteRange
|
| * @param {boolean=} force
|
| * @param {string=} currentTokenType
|
| * @return {!Promise<!UI.SuggestBox.Suggestions>}
|
| */
|
| _wordsWithQuery(queryRange, substituteRange, force, currentTokenType) {
|
| var query = this._editor.text(queryRange);
|
| - var before = this._editor.text(new Common.TextRange(0, 0, queryRange.startLine, queryRange.startColumn));
|
| + var before = this._editor.text(new TextUtils.TextRange(0, 0, queryRange.startLine, queryRange.startColumn));
|
| var historyWords = this._historyCompletions(query, force);
|
|
|
| var excludedTokens = new Set(['js-comment', 'js-string-2', 'js-def']);
|
|
|