Skip to content

Commit aaa67ad

Browse files
devvaannshabose
authored andcommitted
docs: fix jsdoc issues
1 parent 2211dbf commit aaa67ad

File tree

6 files changed

+32
-94
lines changed

6 files changed

+32
-94
lines changed

docs/API-Reference/search/FindUtils.md

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -3,30 +3,6 @@
33
const FindUtils = brackets.getModule("search/FindUtils")
44
```
55

6-
<a name="instantSearchDisabled"></a>
7-
8-
## instantSearchDisabled : <code>boolean</code>
9-
if instant search is disabled, defaults to false
10-
11-
**Kind**: global variable
12-
<a name="indexingInProgress"></a>
13-
14-
## indexingInProgress : <code>boolean</code>
15-
if indexing in progress, defaults to false
16-
17-
**Kind**: global variable
18-
<a name="workerSearchCount"></a>
19-
20-
## workerSearchCount : <code>number</code>
21-
count of worker search, defaults to 0
22-
23-
**Kind**: global variable
24-
<a name="collapseResults"></a>
25-
26-
## collapseResults : <code>boolean</code>
27-
if collapse results, defaults to false
28-
29-
**Kind**: global variable
306
<a name="parseDollars"></a>
317

328
## parseDollars(replaceWith, match) ⇒ <code>string</code>

docs/API-Reference/search/QuickSearchField.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ const QuickSearchField = brackets.getModule("search/QuickSearchField")
1111
* [QuickSearchField](#QuickSearchField)
1212
* [new QuickSearchField($input)](#new_QuickSearchField_new)
1313
* [.options](#QuickSearchField+options) : <code>Object</code>
14+
* [.$input](#QuickSearchField+$input) : <code>jQueryObject</code>
15+
* [.$positionEl](#QuickSearchField+$positionEl) : <code>jQueryObject</code>
1416
* [.updateResults()](#QuickSearchField+updateResults)
1517
* [.setText(value)](#QuickSearchField+setText)
1618
* [.destroy()](#QuickSearchField+destroy)
@@ -40,6 +42,14 @@ Attaches to an existing "input" tag
4042

4143
### quickSearchField.options : <code>Object</code>
4244
**Kind**: instance property of [<code>QuickSearchField</code>](#QuickSearchField)
45+
<a name="QuickSearchField+$input"></a>
46+
47+
### quickSearchField.$input : <code>jQueryObject</code>
48+
**Kind**: instance property of [<code>QuickSearchField</code>](#QuickSearchField)
49+
<a name="QuickSearchField+$positionEl"></a>
50+
51+
### quickSearchField.$positionEl : <code>jQueryObject</code>
52+
**Kind**: instance property of [<code>QuickSearchField</code>](#QuickSearchField)
4353
<a name="QuickSearchField+updateResults"></a>
4454

4555
### quickSearchField.updateResults()

docs/API-Reference/search/ScrollTrackMarkers.md

Lines changed: 0 additions & 66 deletions
This file was deleted.

src/search/FindUtils.js

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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() {

src/search/QuickSearchField.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,13 +152,11 @@ define(function (require, exports, module) {
152152

153153
/**
154154
* @type {!jQueryObject}
155-
* @private
156155
*/
157156
QuickSearchField.prototype.$input = null;
158157

159158
/**
160159
* @type {!jQueryObject}
161-
* @private
162160
*/
163161
QuickSearchField.prototype.$positionEl = null;
164162

src/search/ScrollTrackMarkers.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@
1919
*
2020
*/
2121

22-
// @INCLUDE_IN_API_DOCS
23-
2422
/**
2523
* Manages tickmarks shown along the scrollbar track.
2624
* NOT yet intended for use by anyone other than the FindReplace module.

0 commit comments

Comments
 (0)