Skip to content

Commit 2285849

Browse files
committed
Merge branch 'fix-jsdoc' of https://github.com/teppeis/closure-library into teppeis-fix-jsdoc
Fix conflicts
2 parents 30845a1 + 797c2a0 commit 2285849

File tree

6 files changed

+12
-11
lines changed

6 files changed

+12
-11
lines changed

closure/goog/array/array.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1181,8 +1181,7 @@ goog.array.stableSort = function(arr, opt_compareFn) {
11811181
* and return a negative number, zero, or a positive number depending on
11821182
* whether the first argument is less than, equal to, or greater than the
11831183
* second.
1184-
* @template T
1185-
* @template K
1184+
* @template T,K
11861185
*/
11871186
goog.array.sortByKey = function(arr, keyFn, opt_compareFn) {
11881187
var keyCompareFn = opt_compareFn || goog.array.defaultCompare;

closure/goog/date/daterange.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ goog.date.DateRange.prototype.contains = function(date) {
9898

9999

100100
/**
101-
* @return {!goog.iter.Iterator} An iterator over the date range.
101+
* @return {!goog.date.DateRange.Iterator} An iterator over the date range.
102102
*/
103103
goog.date.DateRange.prototype.iterator = function() {
104104
return new goog.date.DateRange.Iterator(this);
@@ -397,7 +397,7 @@ goog.date.DateRange.cloneOrCreate_ = function(opt_today) {
397397
* @constructor
398398
* @struct
399399
* @suppress {checkStructDictInheritance}
400-
* @extends {goog.iter.Iterator}
400+
* @extends {goog.iter.Iterator<goog.date.Date>}
401401
* @param {goog.date.DateRange} dateRange The date range to iterate.
402402
* @final
403403
*/

closure/goog/db/objectstore.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,11 @@ goog.require('goog.events');
4141
*
4242
* @param {!IDBObjectStore} store The backing IndexedDb object.
4343
* @constructor
44+
* @final
4445
*
4546
* TODO(arthurhsu): revisit msg in exception and errors in this class. In newer
4647
* Chrome (v22+) the error/request come with a DOM error string that is
4748
* already very descriptive.
48-
* @final
4949
*/
5050
goog.db.ObjectStore = function(store) {
5151
/**

closure/goog/events/eventtargettester.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,7 @@ goog.events.eventTargetTester.KeyType = {
135135

136136
/**
137137
* The type of unlisten function's return value.
138+
* @enum {number}
138139
*/
139140
goog.events.eventTargetTester.UnlistenReturnType = {
140141
/**

closure/goog/graphics/vmlgraphics.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -372,6 +372,7 @@ goog.graphics.VmlGraphics.prototype.setElementStroke = function(element,
372372
*
373373
* If a more general affine transform is needed than this provides
374374
* (e.g. skew and scale) then use setElementAffineTransform.
375+
* @param {goog.graphics.Element} element The element wrapper.
375376
* @param {number} x The x coordinate of the translation transform.
376377
* @param {number} y The y coordinate of the translation transform.
377378
* @param {number} angle The angle of the rotation transform.

closure/goog/structs/linkedmap.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ goog.structs.LinkedMap = function(opt_maxCount, opt_cache,
9393
/**
9494
* Finds a node and updates it to be the most recently used.
9595
* @param {string} key The key of the node.
96-
* @return {goog.structs.LinkedMap.Node_} The node or null if not found.
96+
* @return {goog.structs.LinkedMap.Node_<string,VALUE>} The node or null if not found.
9797
* @private
9898
*/
9999
goog.structs.LinkedMap.prototype.findAndMoveToTop_ = function(key) {
@@ -211,7 +211,7 @@ goog.structs.LinkedMap.prototype.remove = function(key) {
211211
/**
212212
* Removes a node from the {@code LinkedMap}. It can be overridden to do
213213
* further cleanup such as disposing of the node value.
214-
* @param {!goog.structs.LinkedMap.Node_} node The node to remove.
214+
* @param {!goog.structs.LinkedMap.Node_<string,VALUE>} node The node to remove.
215215
* @protected
216216
*/
217217
goog.structs.LinkedMap.prototype.removeNode = function(node) {
@@ -414,7 +414,7 @@ goog.structs.LinkedMap.prototype.every = function(f, opt_obj) {
414414
* the head of the list, otherwise they are appended to the tail. If there is a
415415
* maximum size, the list will be truncated if necessary.
416416
*
417-
* @param {goog.structs.LinkedMap.Node_} node The item to insert.
417+
* @param {goog.structs.LinkedMap.Node_<string,VALUE>} node The item to insert.
418418
* @private
419419
*/
420420
goog.structs.LinkedMap.prototype.insert_ = function(node) {
@@ -459,7 +459,7 @@ goog.structs.LinkedMap.prototype.truncate_ = function(count) {
459459
/**
460460
* Removes the node from the LinkedMap if it is not the head, and returns
461461
* the node's value.
462-
* @param {!goog.structs.LinkedMap.Node_} node The item to remove.
462+
* @param {!goog.structs.LinkedMap.Node_<string,VALUE>} node The item to remove.
463463
* @return {VALUE} The value of the popped node.
464464
* @private
465465
*/
@@ -488,14 +488,14 @@ goog.structs.LinkedMap.Node_ = function(key, value) {
488488

489489
/**
490490
* The next node in the list.
491-
* @type {!goog.structs.LinkedMap.Node_}
491+
* @type {!goog.structs.LinkedMap.Node_<KEY,VALUE>}
492492
*/
493493
goog.structs.LinkedMap.Node_.prototype.next;
494494

495495

496496
/**
497497
* The previous node in the list.
498-
* @type {!goog.structs.LinkedMap.Node_}
498+
* @type {!goog.structs.LinkedMap.Node_<KEY,VALUE>}
499499
*/
500500
goog.structs.LinkedMap.Node_.prototype.prev;
501501

0 commit comments

Comments
 (0)