Move jsdoc constructor comments

This commit is contained in:
Frederic Junod
2018-07-17 10:20:26 +02:00
parent f2d0b11d24
commit 540b1793e7
23 changed files with 259 additions and 238 deletions

View File

@@ -87,10 +87,12 @@ const TokenType = {
/**
* Class to tokenize a WKT string.
* @param {string} wkt WKT string.
* @constructor
*/
class Lexer {
/**
* @param {string} wkt WKT string.
*/
constructor(wkt) {
/**
@@ -218,10 +220,12 @@ class Lexer {
/**
* Class to parse the tokens from the WKT string.
* @param {module:ol/format/WKT~Lexer} lexer The lexer.
* @constructor
*/
class Parser {
/**
* @param {module:ol/format/WKT~Lexer} lexer The lexer.
*/
constructor(lexer) {
/**
@@ -590,12 +594,14 @@ class Parser {
* Geometry format for reading and writing data in the `WellKnownText` (WKT)
* format.
*
* @constructor
* @extends {module:ol/format/TextFeature}
* @param {module:ol/format/WKT~Options=} opt_options Options.
* @api
*/
class WKT {
/**
* @param {module:ol/format/WKT~Options=} opt_options Options.
*/
constructor(opt_options) {
const options = opt_options ? opt_options : {};