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

Unified Diff: third_party/WebKit/Source/devtools/front_end/components/JavaScriptAutocomplete.js

Issue 2474143002: DevTools: Rename prefix to query in the context of autocomplete (Closed)
Patch Set: merge Created 4 years, 1 month 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/components/JavaScriptAutocomplete.js
diff --git a/third_party/WebKit/Source/devtools/front_end/components/JavaScriptAutocomplete.js b/third_party/WebKit/Source/devtools/front_end/components/JavaScriptAutocomplete.js
index b33e5f61d791715315e270ff0b75c4661a563c1f..f07ebc27333e272e9755076134a797a8afd39d37 100644
--- a/third_party/WebKit/Source/devtools/front_end/components/JavaScriptAutocomplete.js
+++ b/third_party/WebKit/Source/devtools/front_end/components/JavaScriptAutocomplete.js
@@ -20,11 +20,11 @@ WebInspector.JavaScriptAutocomplete.completionsForTextPromptInCurrentContext = f
/**
* @param {string} text
- * @param {string} completionsPrefix
+ * @param {string} query
* @param {boolean=} force
* @return {!Promise<!Array<string>>}
*/
-WebInspector.JavaScriptAutocomplete.completionsForTextInCurrentContext = function(text, completionsPrefix, force) {
+WebInspector.JavaScriptAutocomplete.completionsForTextInCurrentContext = function(text, query, force) {
var index;
var stopChars = new Set(' =:({;,!+-*/&|^<>`'.split(''));
for (index = text.length - 1; index >= 0; index--) {
@@ -50,7 +50,7 @@ WebInspector.JavaScriptAutocomplete.completionsForTextInCurrentContext = functio
}
clippedExpression = clippedExpression.substring(index + 1);
- return WebInspector.JavaScriptAutocomplete.completionsForExpression(clippedExpression, completionsPrefix, force);
+ return WebInspector.JavaScriptAutocomplete.completionsForExpression(clippedExpression, query, force);
};

Powered by Google App Engine
This is Rietveld 408576698