Index: Source/devtools/front_end/CompletionDictionary.js |
diff --git a/Source/devtools/front_end/CompletionDictionary.js b/Source/devtools/front_end/CompletionDictionary.js |
index fd88165ea4c80c09908e407034046a591b8039fb..a7ee6e74faa173cb63ee10981d43336f13e68b43 100644 |
--- a/Source/devtools/front_end/CompletionDictionary.js |
+++ b/Source/devtools/front_end/CompletionDictionary.js |
@@ -45,6 +45,12 @@ WebInspector.CompletionDictionary.prototype = { |
removeWord: function(word) { }, |
/** |
+ * @param {string} word |
+ * @return {boolean} |
+ */ |
+ hasWord: function(word) { }, |
+ |
+ /** |
* @param {string} prefix |
* @return {Array.<string>} |
*/ |
@@ -96,5 +102,14 @@ WebInspector.SampleCompletionDictionary.prototype = { |
words.push(i); |
} |
return words; |
+ }, |
+ |
+ /** |
+ * @param {string} word |
+ * @return {boolean} |
+ */ |
+ hasWord: function(word) |
+ { |
+ return !!this._words[word]; |
} |
} |