
package.es.parse.parsers.Parser.mjs Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of apidom-reference Show documentation
Show all versions of apidom-reference Show documentation
Advanced algorithms for semantic ApiDOM manipulations like dereferencing or resolution.
class Parser {
name;
/**
* Whether to allow "empty" files. This includes zero-byte files.
*/
allowEmpty;
/**
* Whether to generate source map during parsing.
*/
sourceMap;
/**
* List of supported file extensions.
*/
fileExtensions;
/**
* List of supported media types.
*/
mediaTypes;
constructor({
name,
allowEmpty = true,
sourceMap = false,
fileExtensions = [],
mediaTypes = []
}) {
this.name = name;
this.allowEmpty = allowEmpty;
this.sourceMap = sourceMap;
this.fileExtensions = fileExtensions;
this.mediaTypes = mediaTypes;
}
}
export default Parser;
© 2015 - 2025 Weber Informatics LLC | Privacy Policy