Skip to content
This repository was archived by the owner on Sep 6, 2021. It is now read-only.

Commit 56662ba

Browse files
committed
Merge pull request #9782 from adobe/jbalsas/links_api_fixes
Fix some @link and @see tags
2 parents 57dcc1a + 61ce50a commit 56662ba

File tree

10 files changed

+29
-28
lines changed

10 files changed

+29
-28
lines changed

src/document/DocumentManager.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ define(function (require, exports, module) {
115115
/**
116116
* Returns the existing open Document for the given file, or null if the file is not open ('open'
117117
* means referenced by the UI somewhere). If you will hang onto the Document, you must addRef()
118-
* it; see {@link getDocumentForPath()} for details.
118+
* it; see {@link #getDocumentForPath} for details.
119119
* @param {!string} fullPath
120120
* @return {?Document}
121121
*/

src/editor/Editor.js

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1248,7 +1248,7 @@ define(function (require, exports, module) {
12481248
* @param {boolean} center true to center the viewport
12491249
* @param {number} centerOptions Option value, or 0 for no options; one of the BOUNDARY_* constants above.
12501250
* @param {?string} origin An optional string that describes what other selection or edit operations this
1251-
* should be merged with for the purposes of undo. See Document.replaceRange() for more details.
1251+
* should be merged with for the purposes of undo. See {@link Document#replaceRange} for more details.
12521252
*/
12531253
Editor.prototype.setSelection = function (start, end, center, centerOptions, origin) {
12541254
this.setSelections([{start: start, end: end || start}], center, centerOptions, origin);
@@ -1267,7 +1267,7 @@ define(function (require, exports, module) {
12671267
* @param {boolean} center true to center the viewport around the primary selection.
12681268
* @param {number} centerOptions Option value, or 0 for no options; one of the BOUNDARY_* constants above.
12691269
* @param {?string} origin An optional string that describes what other selection or edit operations this
1270-
* should be merged with for the purposes of undo. See Document.replaceRange() for more details.
1270+
* should be merged with for the purposes of undo. See {@link Document#replaceRange} for more details.
12711271
*/
12721272
Editor.prototype.setSelections = function (selections, center, centerOptions, origin) {
12731273
var primIndex = selections.length - 1, options;
@@ -2002,7 +2002,7 @@ define(function (require, exports, module) {
20022002
* the start and end.
20032003
* @return {?(Object|string)} Name of syntax-highlighting mode, or object containing a "name" property
20042004
* naming the mode along with configuration options required by the mode.
2005-
* @see {@link LanguageManager#getLanguageForPath()} and {@link Language#getMode()}.
2005+
* @see {@link LanguageManager::#getLanguageForPath} and {@link LanguageManager::Language#getMode}.
20062006
*/
20072007
Editor.prototype.getModeForRange = function (start, end, knownMixed) {
20082008
var outerMode = this._codeMirror.getMode(),
@@ -2028,7 +2028,7 @@ define(function (require, exports, module) {
20282028
*
20292029
* @return {?(Object|string)} Name of syntax-highlighting mode, or object containing a "name" property
20302030
* naming the mode along with configuration options required by the mode.
2031-
* @see {@link LanguageManager#getLanguageForPath()} and {@link Language#getMode()}.
2031+
* @see {@link LanguageManager::#getLanguageForPath} and {@link LanguageManager::Language#getMode}.
20322032
*/
20332033
Editor.prototype.getModeForSelection = function () {
20342034
// Check for mixed mode info
@@ -2081,7 +2081,8 @@ define(function (require, exports, module) {
20812081
/**
20822082
* Gets the syntax-highlighting mode for the document.
20832083
*
2084-
* @return {Object|String} Object or Name of syntax-highlighting mode; see {@link LanguageManager#getLanguageForPath()} and {@link Language#getMode()}.
2084+
* @return {Object|String} Object or Name of syntax-highlighting mode
2085+
* @see {@link LanguageManager::#getLanguageForPath|LanguageManager.getLanguageForPath} and {@link LanguageManager::Language#getMode|Language.getMode}.
20852086
*/
20862087
Editor.prototype.getModeForDocument = function () {
20872088
return this._codeMirror.getOption("mode");

src/editor/EditorManager.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -81,23 +81,23 @@ define(function (require, exports, module) {
8181

8282
/**
8383
* Registered inline-editor widget providers sorted descending by priority.
84-
* @see {@link #registerInlineEditProvider()}.
84+
* @see {@link #registerInlineEditProvider}.
8585
* @type {Array.<{priority:number, provider:function(...)}>}
8686
* @private
8787
*/
8888
var _inlineEditProviders = [];
8989

9090
/**
9191
* Registered inline documentation widget providers sorted descending by priority.
92-
* @see {@link #registerInlineDocsProvider()}.
92+
* @see {@link #registerInlineDocsProvider}.
9393
* @type {Array.<{priority:number, provider:function(...)}>}
9494
* @private
9595
*/
9696
var _inlineDocsProviders = [];
9797

9898
/**
9999
* Registered jump-to-definition providers.
100-
* @see {@link #registerJumpToDefProvider()}.
100+
* @see {@link #registerJumpToDefProvider}.
101101
* @private
102102
* @type {Array.<function(...)>}
103103
*/
@@ -598,7 +598,7 @@ define(function (require, exports, module) {
598598

599599
/**
600600
* @deprecated Register a View Factory instead
601-
* @see MainViewManager.registerViewFactory()
601+
* @see MainViewFactory::#registerViewFactory
602602
*/
603603
function registerCustomViewer() {
604604
throw new Error("EditorManager.registerCustomViewer() has been removed.");
@@ -685,7 +685,7 @@ define(function (require, exports, module) {
685685
* Returns the current active editor (full-sized OR inline editor). This editor may not
686686
* have focus at the moment, but it is visible and was the last editor that was given
687687
* focus. Returns null if no editors are active.
688-
* @see getFocusedEditor()
688+
* @see #getFocusedEditor
689689
* @return {?Editor}
690690
*/
691691
function getActiveEditor() {

src/language/LanguageManager.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -807,7 +807,7 @@ define(function (require, exports, module) {
807807
* Returns either a language associated with the mode or the fallback language.
808808
* Used to disambiguate modes used by multiple languages.
809809
* @param {!string} mode The mode to associate the language with
810-
* @return {Language} This language if it uses the mode, or whatever {@link LanguageManager#_getLanguageForMode} returns
810+
* @return {Language} This language if it uses the mode, or whatever {@link #_getLanguageForMode} returns
811811
*/
812812
Language.prototype.getLanguageForMode = function (mode) {
813813
if (mode === this._mode) {
@@ -846,7 +846,7 @@ define(function (require, exports, module) {
846846

847847
/**
848848
* Trigger the "languageModified" event if this language is registered already
849-
* @see _triggerLanguageModified
849+
* @see #_triggerLanguageModified
850850
* @private
851851
*/
852852
Language.prototype._wasModified = function () {

src/project/FileViewController.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ define(function (require, exports, module) {
5959
/**
6060
* Tracks whether a "currentFileChange" notification occured due to a call to
6161
* openAndSelectDocument.
62-
* @see FileviewController.openAndSelectDocument
62+
* @see #openAndSelectDocument
6363
* @private
6464
*/
6565
var _curDocChangedDueToMe = false;
@@ -68,7 +68,7 @@ define(function (require, exports, module) {
6868

6969
/**
7070
* @private
71-
* @see FileViewController.getFileSelectionFocus()
71+
* @see #getFileSelectionFocus
7272
*/
7373
var _fileSelectionFocus = PROJECT_MANAGER;
7474

src/project/ProjectModel.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ define(function (require, exports, module) {
9292

9393
/**
9494
* @private
95-
* See shouldShow
95+
* @see #shouldShow
9696
*/
9797
function _shouldShowName(name) {
9898
return !name.match(_exclusionListRegEx);
@@ -244,7 +244,7 @@ define(function (require, exports, module) {
244244
* @type {string}
245245
*
246246
* Encoded URL
247-
* @see getBaseUrl(), setBaseUrl()
247+
* @see {@link ProjectModel#getBaseUrl}, {@link ProjectModel#setBaseUrl}
248248
*/
249249
ProjectModel.prototype._projectBaseUrl = "";
250250

@@ -1236,7 +1236,7 @@ define(function (require, exports, module) {
12361236
* Returns the full path to the welcome project, which we open on first launch.
12371237
*
12381238
* @param {string} sampleUrl URL for getting started project
1239-
* @param {string} initialPath Path to Brackets directory (see FileUtils.getNativeBracketsDirectoryPath())
1239+
* @param {string} initialPath Path to Brackets directory (see {@link FileUtils::#getNativeBracketsDirectoryPath})
12401240
* @return {!string} fullPath reference
12411241
*/
12421242
function _getWelcomeProjectPath(sampleUrl, initialPath) {

src/project/WorkingSetView.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,14 +57,14 @@ define(function (require, exports, module) {
5757

5858
/**
5959
* Icon Providers
60-
* @see {@link WorkingSetView#addIconProvider()}
60+
* @see {@link #addIconProvider}
6161
* @private
6262
*/
6363
var _iconProviders = [];
6464

6565
/**
6666
* Class Providers
67-
* @see {@link WorkingSetView#addClassProvider()}
67+
* @see {@link #addClassProvider}
6868
* @private
6969
*/
7070
var _classProviders = [];

src/utils/ExtensionUtils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ define(function (require, exports, module) {
7272
/**
7373
* getModuleUrl returns different urls for win platform
7474
* so that's why we need a different check here
75-
* @see getModuleUrl()
75+
* @see #getModuleUrl
7676
* @param {!string} pathOrUrl that should be checked if it's absolute
7777
* @return {!boolean} returns true if pathOrUrl is absolute url on win platform
7878
* or when it's absolute path on other platforms

src/view/MainViewManager.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ define(function (require, exports, module) {
227227
* localized pane titles
228228
* @type {Object.<FIRST_PANE|SECOND_PANE, <VERTICAL.string, HORIZONTAL.string>}}
229229
* Localized string for first and second panes in the current orientation.
230-
* @see {@link getPaneTitle()} for more information
230+
* @see {@link #getPaneTitle} for more information
231231
* @private
232232
*/
233233
var _paneTitles = {};
@@ -846,7 +846,7 @@ define(function (require, exports, module) {
846846
* sorts the pane's view list
847847
* @param {!string} paneId - id of the pane to sort, ALL_PANES or ACTIVE_PANE
848848
* @param {sortFunctionCallback} compareFn - callback to determine sort order (called on each item)
849-
* @see {@link Pane.sortViewList()} for more information
849+
* @see {@link Pane#sortViewList} for more information
850850
* @see {@link https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Array/sort|Sort Array - MDN}
851851
* @private
852852
*/

src/view/Pane.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -170,8 +170,8 @@ define(function (require, exports, module) {
170170
* @param {boolean} requestIndex - true to request an index, false if not
171171
* @param {number} index - the index to request
172172
* @return {indexRequested:boolean, index:number} an object that can be pased to
173-
* Pane._addToViewList to insert the item at a specific index
174-
* @see {Pane._addToViewList}
173+
* {@link Pane#addToViewList} to insert the item at a specific index
174+
* @see Pane#addToViewList
175175
*/
176176
function _makeIndexRequestObject(requestIndex, index) {
177177
return {indexRequested: requestIndex, index: index};
@@ -585,23 +585,23 @@ define(function (require, exports, module) {
585585

586586
/**
587587
* Return value from reorderItem when the Item was not found
588-
* @see {@link reorderItem()}
588+
* @see {@link Pane#reorderItem}
589589
* @const
590590
*/
591591
Pane.prototype.ITEM_NOT_FOUND = -1;
592592

593593
/**
594594
* Return value from reorderItem when the Item was found at its natural index
595595
* and the workingset does not need to be resorted
596-
* @see {@link reorderItem()}
596+
* @see {@link Pane#reorderItem}
597597
* @const
598598
*/
599599
Pane.prototype.ITEM_FOUND_NO_SORT = 0;
600600

601601
/**
602602
* Return value from reorderItem when the Item was found and reindexed
603603
* and the workingset needs to be resorted
604-
* @see {@link reorderItem()}
604+
* @see {@link Pane#reorderItem}
605605
* @const
606606
*/
607607
Pane.prototype.ITEM_FOUND_NEEDS_SORT = 1;

0 commit comments

Comments
 (0)