Remove @extends and @constructor annotations

This commit is contained in:
Tim Schaub
2018-07-18 00:36:29 -06:00
parent b7b15eb7f0
commit 9ce36da349
87 changed files with 110 additions and 282 deletions

View File

@@ -22,8 +22,7 @@ class LRUCache extends EventTarget {
* Implements a Least-Recently-Used cache where the keys do not conflict with
* Object's properties (e.g. 'hasOwnProperty' is not allowed as a key). Expiring
* items from the cache is the responsibility of the user.
* @constructor
* @extends {module:ol/events/EventTarget}
*
* @fires module:ol/events/Event~Event
* @struct
* @template T

View File

@@ -11,16 +11,14 @@
*/
/**
* Creates an empty linked list structure.
*
* @constructor
* @struct
* @param {boolean=} opt_circular The last item is connected to the first one,
* and the first item to the last one. Default is true.
*/
class LinkedList {
/**
* Creates an empty linked list structure.
*
* @param {boolean=} opt_circular The last item is connected to the first one,
* and the first item to the last one. Default is true.
*/
constructor(opt_circular) {
/**

View File

@@ -11,23 +11,21 @@ import {clear} from '../obj.js';
export const DROP = Infinity;
/**
* Priority queue.
*
* The implementation is inspired from the Closure Library's Heap class and
* Python's heapq module.
*
* @see http://closure-library.googlecode.com/svn/docs/closure_goog_structs_heap.js.source.html
* @see http://hg.python.org/cpython/file/2.7/Lib/heapq.py
*
* @constructor
* @param {function(T): number} priorityFunction Priority function.
* @param {function(T): string} keyFunction Key function.
* @struct
* @template T
*/
class PriorityQueue {
/**
* Priority queue.
*
* The implementation is inspired from the Closure Library's Heap class and
* Python's heapq module.
*
* @see http://closure-library.googlecode.com/svn/docs/closure_goog_structs_heap.js.source.html
* @see http://hg.python.org/cpython/file/2.7/Lib/heapq.py
*
* @param {function(T): number} priorityFunction Priority function.
* @param {function(T): string} keyFunction Key function.
* @struct
* @template T
*/
constructor(priorityFunction, keyFunction) {
/**

View File

@@ -15,17 +15,16 @@ import {isEmpty} from '../obj.js';
* @property {Object} [value]
*/
/**
* Wrapper around the RBush by Vladimir Agafonkin.
*
* @constructor
* @param {number=} opt_maxEntries Max entries.
* @see https://github.com/mourner/rbush
* @struct
* @template T
*/
class RBush {
/**
* Wrapper around the RBush by Vladimir Agafonkin.
*
* @param {number=} opt_maxEntries Max entries.
* @see https://github.com/mourner/rbush
* @struct
* @template T
*/
constructor(opt_maxEntries) {
/**