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
+11 -13
View File
@@ -7,15 +7,13 @@ import {isDocument, isNode, parse} from '../xml.js';
* @classdesc
* Generic format for reading non-feature XML data
*
* @constructor
* @abstract
* @struct
*/
class XML {
/**
* @param {Document|Node|string} source Source.
* @return {Object} The parsed result.
*/
* @param {Document|Node|string} source Source.
* @return {Object} The parsed result.
*/
read(source) {
if (isDocument(source)) {
return this.readFromDocument(/** @type {Document} */ (source));
@@ -30,17 +28,17 @@ class XML {
}
/**
* @abstract
* @param {Document} doc Document.
* @return {Object} Object
*/
* @abstract
* @param {Document} doc Document.
* @return {Object} Object
*/
readFromDocument(doc) {}
/**
* @abstract
* @param {Node} node Node.
* @return {Object} Object
*/
* @abstract
* @param {Node} node Node.
* @return {Object} Object
*/
readFromNode(node) {}
}