main
Last change
on this file since d24f17c was d24f17c, checked in by Aleksandar Panovski <apano77@…>, 15 months ago |
Initial commit
|
-
Property mode
set to
100644
|
File size:
1.3 KB
|
Line | |
---|
1 | "use strict";
|
---|
2 |
|
---|
3 | var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault").default;
|
---|
4 | exports.__esModule = true;
|
---|
5 | exports.default = void 0;
|
---|
6 | var _stampit = _interopRequireDefault(require("stampit"));
|
---|
7 | var _apidomError = require("@swagger-api/apidom-error");
|
---|
8 | const Parser = (0, _stampit.default)({
|
---|
9 | props: {
|
---|
10 | name: '',
|
---|
11 | /**
|
---|
12 | * Whether to allow "empty" files. This includes zero-byte files.
|
---|
13 | */
|
---|
14 | allowEmpty: true,
|
---|
15 | /**
|
---|
16 | * Whether to generate source map during parsing.
|
---|
17 | */
|
---|
18 | sourceMap: false,
|
---|
19 | /**
|
---|
20 | * List of supported file extensions.
|
---|
21 | */
|
---|
22 | fileExtensions: [],
|
---|
23 | /**
|
---|
24 | * List of supported media types.
|
---|
25 | */
|
---|
26 | mediaTypes: []
|
---|
27 | },
|
---|
28 | init({
|
---|
29 | allowEmpty = this.allowEmpty,
|
---|
30 | sourceMap = this.sourceMap,
|
---|
31 | fileExtensions = this.fileExtensions,
|
---|
32 | mediaTypes = this.mediaTypes
|
---|
33 | } = {}) {
|
---|
34 | this.allowEmpty = allowEmpty;
|
---|
35 | this.sourceMap = sourceMap;
|
---|
36 | this.fileExtensions = fileExtensions;
|
---|
37 | this.mediaTypes = mediaTypes;
|
---|
38 | },
|
---|
39 | methods: {
|
---|
40 | async canParse() {
|
---|
41 | throw new _apidomError.NotImplementedError('canParse method in Parser stamp is not yet implemented.');
|
---|
42 | },
|
---|
43 | async parse() {
|
---|
44 | throw new _apidomError.NotImplementedError('parse method in Parser stamp is not yet implemented.');
|
---|
45 | }
|
---|
46 | }
|
---|
47 | });
|
---|
48 | var _default = exports.default = Parser; |
---|
Note:
See
TracBrowser
for help on using the repository browser.