Replace google closure syntax = with brackets around name

This commit is contained in:
Simon Seyock
2021-02-03 14:06:02 +01:00
parent c15faa19fc
commit 8facb252f1
185 changed files with 569 additions and 569 deletions

View File

@@ -23,7 +23,7 @@ import {assert} from '../asserts.js';
*/
class LRUCache {
/**
* @param {number=} opt_highWaterMark High water mark.
* @param {number} [opt_highWaterMark] High water mark.
*/
constructor(opt_highWaterMark) {
/**
@@ -100,7 +100,7 @@ class LRUCache {
/**
* @param {string} key Key.
* @param {*=} opt_options Options (reserverd for subclasses).
* @param {*} [opt_options] Options (reserverd for subclasses).
* @return {T} Value.
*/
get(key, opt_options) {

View File

@@ -15,7 +15,7 @@
*/
class LinkedList {
/**
* @param {boolean=} opt_circular The last item is connected to the first one,
* @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

@@ -24,7 +24,7 @@ import {isEmpty} from '../obj.js';
*/
class RBush {
/**
* @param {number=} opt_maxEntries Max entries.
* @param {number} [opt_maxEntries] Max entries.
*/
constructor(opt_maxEntries) {
/**
@@ -198,7 +198,7 @@ class RBush {
}
/**
* @param {import("../extent.js").Extent=} opt_extent Extent.
* @param {import("../extent.js").Extent} [opt_extent] Extent.
* @return {import("../extent.js").Extent} Extent.
*/
getExtent(opt_extent) {