@@ -37,24 +37,32 @@ define(function (require, exports, module) {
3737
3838 /**
3939 * if instant search is disabled, defaults to false
40+ *
41+ * @private
4042 * @type {boolean }
4143 */
4244 let instantSearchDisabled = false ;
4345
4446 /**
4547 * if indexing in progress, defaults to false
48+ *
49+ * @private
4650 * @type {boolean }
4751 */
4852 let indexingInProgress = false ;
4953
5054 /**
5155 * count of worker search, defaults to 0
56+ *
57+ * @private
5258 * @type {number }
5359 */
5460 let workerSearchCount = 0 ;
5561
5662 /**
5763 * if collapse results, defaults to false
64+ *
65+ * @private
5866 * @type {boolean }
5967 */
6068 let collapseResults = false ;
@@ -66,6 +74,7 @@ define(function (require, exports, module) {
6674 * regexp match info.
6775 * NOTE: we can't just use the ordinary replace() function here because the string has been
6876 * extracted from the original text and so might be missing some context that the regexp matched.
77+ *
6978 * @param {string } replaceWith The string containing the $-expressions.
7079 * @param {Object } match The match data from the regexp.
7180 * @return {string } The replace text with the $-expressions substituted.
@@ -97,6 +106,7 @@ define(function (require, exports, module) {
97106
98107 /**
99108 * Does a set of replacements in a single document in memory.
109+ *
100110 * @private
101111 * @param {!Document } doc The document to do the replacements in.
102112 * @param {Object } matchInfo The match info for this file, as returned by `_addSearchMatches()`. Might be mutated.
@@ -130,6 +140,7 @@ define(function (require, exports, module) {
130140
131141 /**
132142 * Does a set of replacements in a single file on disk.
143+ *
133144 * @private
134145 * @param {string } fullPath The full path to the file.
135146 * @param {Object } matchInfo The match info for this file, as returned by `_addSearchMatches()`.
@@ -172,6 +183,7 @@ define(function (require, exports, module) {
172183 /**
173184 * Does a set of replacements in a single file. If the file is already open in a Document in memory,
174185 * will do the replacement there, otherwise does it directly on disk.
186+ *
175187 * @private
176188 * @param {string } fullPath The full path to the file.
177189 * @param {Object } matchInfo The match info for this file, as returned by `_addSearchMatches()`.
@@ -281,6 +293,7 @@ define(function (require, exports, module) {
281293
282294 /**
283295 * Returns label text to indicate the search scope. Already HTML-escaped.
296+ *
284297 * @param {?Entry } scope
285298 * @return {string }
286299 */
@@ -299,6 +312,7 @@ define(function (require, exports, module) {
299312
300313 /**
301314 * Parses the given query into a regexp, and returns whether it was valid or not.
315+ *
302316 * @param {{query: string, caseSensitive: boolean, isRegexp: boolean} } queryInfo
303317 * @return {{queryExpr: RegExp, valid: boolean, empty: boolean, error: string} }
304318 * queryExpr - the regexp representing the query
@@ -337,6 +351,7 @@ define(function (require, exports, module) {
337351
338352 /**
339353 * Prioritizes the open file and then the working set files to the starting of the list of files
354+ *
340355 * @param {Array.<*> } files An array of file paths or file objects to sort
341356 * @param {?string } firstFile If specified, the path to the file that should be sorted to the top.
342357 * @return {Array.<*> }
@@ -381,6 +396,7 @@ define(function (require, exports, module) {
381396
382397 /**
383398 * Returns the path of the currently open file or null if there isn't one open
399+ *
384400 * @return {?string }
385401 */
386402 function getOpenFilePath ( ) {
@@ -390,6 +406,7 @@ define(function (require, exports, module) {
390406
391407 /**
392408 * enable/disable instant search
409+ *
393410 * @param {boolean } disable true to disable web worker based search
394411 */
395412 function setInstantSearchDisabled ( disable ) {
@@ -398,6 +415,7 @@ define(function (require, exports, module) {
398415
399416 /**
400417 * if instant search is disabled, this will return true we can only do instant search through worker
418+ *
401419 * @return {boolean }
402420 */
403421 function isInstantSearchDisabled ( ) {
@@ -406,6 +424,7 @@ define(function (require, exports, module) {
406424
407425 /**
408426 * check if a search is progressing in worker
427+ *
409428 * @return {Boolean } true if search is processing in worker
410429 */
411430 function isWorkerSearchInProgress ( ) {
@@ -472,6 +491,7 @@ define(function (require, exports, module) {
472491
473492 /**
474493 * Return true if indexing is in progress in worker
494+ *
475495 * @return {boolean } true if files are being indexed in worker
476496 */
477497 function isIndexingInProgress ( ) {
@@ -480,6 +500,7 @@ define(function (require, exports, module) {
480500
481501 /**
482502 * Set if we need to collapse all results in the results pane
503+ *
483504 * @param {boolean } collapse true to collapse
484505 */
485506 function setCollapseResults ( collapse ) {
@@ -489,6 +510,7 @@ define(function (require, exports, module) {
489510
490511 /**
491512 * check if results should be collapsed
513+ *
492514 * @return {boolean } true if results should be collapsed
493515 */
494516 function isCollapsedResults ( ) {
0 commit comments