@swagger-api/apidom-parser-adapter-api-design-systems-json 0.91.0 → 0.93.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -6381,38 +6381,6 @@ var isUndefined = (0,ramda__WEBPACK_IMPORTED_MODULE_0__["default"])((0,_stubUnde
|
|
|
6381
6381
|
|
|
6382
6382
|
/***/ }),
|
|
6383
6383
|
|
|
6384
|
-
/***/ 1329:
|
|
6385
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
6386
|
-
|
|
6387
|
-
"use strict";
|
|
6388
|
-
__webpack_require__.r(__webpack_exports__);
|
|
6389
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
6390
|
-
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
6391
|
-
/* harmony export */ });
|
|
6392
|
-
/* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6360);
|
|
6393
|
-
/* harmony import */ var _stubUndefined__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(2031);
|
|
6394
|
-
|
|
6395
|
-
|
|
6396
|
-
|
|
6397
|
-
/**
|
|
6398
|
-
* A function that performs no operations.
|
|
6399
|
-
*
|
|
6400
|
-
* @func noop
|
|
6401
|
-
* @memberOf RA
|
|
6402
|
-
* @since {@link https://char0n.github.io/ramda-adjunct/1.0.0|v1.0.0}
|
|
6403
|
-
* @category Function
|
|
6404
|
-
* @sig ... -> undefined
|
|
6405
|
-
* @return {undefined}
|
|
6406
|
-
* @example
|
|
6407
|
-
*
|
|
6408
|
-
* RA.noop(); //=> undefined
|
|
6409
|
-
* RA.noop(1, 2, 3); //=> undefined
|
|
6410
|
-
*/
|
|
6411
|
-
var noop = (0,ramda__WEBPACK_IMPORTED_MODULE_0__["default"])((0,_stubUndefined__WEBPACK_IMPORTED_MODULE_1__["default"])());
|
|
6412
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (noop);
|
|
6413
|
-
|
|
6414
|
-
/***/ }),
|
|
6415
|
-
|
|
6416
6384
|
/***/ 2031:
|
|
6417
6385
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
6418
6386
|
|
|
@@ -6484,10 +6452,383 @@ var trimCharsStart = (0,ramda__WEBPACK_IMPORTED_MODULE_0__["default"])(function
|
|
|
6484
6452
|
|
|
6485
6453
|
/***/ }),
|
|
6486
6454
|
|
|
6487
|
-
/***/
|
|
6488
|
-
/***/ ((
|
|
6455
|
+
/***/ 6252:
|
|
6456
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
6457
|
+
|
|
6458
|
+
"use strict";
|
|
6459
|
+
__webpack_require__.r(__webpack_exports__);
|
|
6460
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
6461
|
+
/* harmony export */ Mixin: () => (/* binding */ Mixin),
|
|
6462
|
+
/* harmony export */ decorate: () => (/* binding */ decorate),
|
|
6463
|
+
/* harmony export */ hasMixin: () => (/* binding */ hasMixin),
|
|
6464
|
+
/* harmony export */ mix: () => (/* binding */ mix),
|
|
6465
|
+
/* harmony export */ settings: () => (/* binding */ settings)
|
|
6466
|
+
/* harmony export */ });
|
|
6467
|
+
/**
|
|
6468
|
+
* Utility function that works like `Object.apply`, but copies getters and setters properly as well. Additionally gives
|
|
6469
|
+
* the option to exclude properties by name.
|
|
6470
|
+
*/
|
|
6471
|
+
const copyProps = (dest, src, exclude = []) => {
|
|
6472
|
+
const props = Object.getOwnPropertyDescriptors(src);
|
|
6473
|
+
for (let prop of exclude)
|
|
6474
|
+
delete props[prop];
|
|
6475
|
+
Object.defineProperties(dest, props);
|
|
6476
|
+
};
|
|
6477
|
+
/**
|
|
6478
|
+
* Returns the full chain of prototypes up until Object.prototype given a starting object. The order of prototypes will
|
|
6479
|
+
* be closest to farthest in the chain.
|
|
6480
|
+
*/
|
|
6481
|
+
const protoChain = (obj, currentChain = [obj]) => {
|
|
6482
|
+
const proto = Object.getPrototypeOf(obj);
|
|
6483
|
+
if (proto === null)
|
|
6484
|
+
return currentChain;
|
|
6485
|
+
return protoChain(proto, [...currentChain, proto]);
|
|
6486
|
+
};
|
|
6487
|
+
/**
|
|
6488
|
+
* Identifies the nearest ancestor common to all the given objects in their prototype chains. For most unrelated
|
|
6489
|
+
* objects, this function should return Object.prototype.
|
|
6490
|
+
*/
|
|
6491
|
+
const nearestCommonProto = (...objs) => {
|
|
6492
|
+
if (objs.length === 0)
|
|
6493
|
+
return undefined;
|
|
6494
|
+
let commonProto = undefined;
|
|
6495
|
+
const protoChains = objs.map(obj => protoChain(obj));
|
|
6496
|
+
while (protoChains.every(protoChain => protoChain.length > 0)) {
|
|
6497
|
+
const protos = protoChains.map(protoChain => protoChain.pop());
|
|
6498
|
+
const potentialCommonProto = protos[0];
|
|
6499
|
+
if (protos.every(proto => proto === potentialCommonProto))
|
|
6500
|
+
commonProto = potentialCommonProto;
|
|
6501
|
+
else
|
|
6502
|
+
break;
|
|
6503
|
+
}
|
|
6504
|
+
return commonProto;
|
|
6505
|
+
};
|
|
6506
|
+
/**
|
|
6507
|
+
* Creates a new prototype object that is a mixture of the given prototypes. The mixing is achieved by first
|
|
6508
|
+
* identifying the nearest common ancestor and using it as the prototype for a new object. Then all properties/methods
|
|
6509
|
+
* downstream of this prototype (ONLY downstream) are copied into the new object.
|
|
6510
|
+
*
|
|
6511
|
+
* The resulting prototype is more performant than softMixProtos(...), as well as ES5 compatible. However, it's not as
|
|
6512
|
+
* flexible as updates to the source prototypes aren't captured by the mixed result. See softMixProtos for why you may
|
|
6513
|
+
* want to use that instead.
|
|
6514
|
+
*/
|
|
6515
|
+
const hardMixProtos = (ingredients, constructor, exclude = []) => {
|
|
6516
|
+
var _a;
|
|
6517
|
+
const base = (_a = nearestCommonProto(...ingredients)) !== null && _a !== void 0 ? _a : Object.prototype;
|
|
6518
|
+
const mixedProto = Object.create(base);
|
|
6519
|
+
// Keeps track of prototypes we've already visited to avoid copying the same properties multiple times. We init the
|
|
6520
|
+
// list with the proto chain below the nearest common ancestor because we don't want any of those methods mixed in
|
|
6521
|
+
// when they will already be accessible via prototype access.
|
|
6522
|
+
const visitedProtos = protoChain(base);
|
|
6523
|
+
for (let prototype of ingredients) {
|
|
6524
|
+
let protos = protoChain(prototype);
|
|
6525
|
+
// Apply the prototype chain in reverse order so that old methods don't override newer ones.
|
|
6526
|
+
for (let i = protos.length - 1; i >= 0; i--) {
|
|
6527
|
+
let newProto = protos[i];
|
|
6528
|
+
if (visitedProtos.indexOf(newProto) === -1) {
|
|
6529
|
+
copyProps(mixedProto, newProto, ['constructor', ...exclude]);
|
|
6530
|
+
visitedProtos.push(newProto);
|
|
6531
|
+
}
|
|
6532
|
+
}
|
|
6533
|
+
}
|
|
6534
|
+
mixedProto.constructor = constructor;
|
|
6535
|
+
return mixedProto;
|
|
6536
|
+
};
|
|
6537
|
+
const unique = (arr) => arr.filter((e, i) => arr.indexOf(e) == i);
|
|
6538
|
+
|
|
6539
|
+
/**
|
|
6540
|
+
* Finds the ingredient with the given prop, searching in reverse order and breadth-first if searching ingredient
|
|
6541
|
+
* prototypes is required.
|
|
6542
|
+
*/
|
|
6543
|
+
const getIngredientWithProp = (prop, ingredients) => {
|
|
6544
|
+
const protoChains = ingredients.map(ingredient => protoChain(ingredient));
|
|
6545
|
+
// since we search breadth-first, we need to keep track of our depth in the prototype chains
|
|
6546
|
+
let protoDepth = 0;
|
|
6547
|
+
// not all prototype chains are the same depth, so this remains true as long as at least one of the ingredients'
|
|
6548
|
+
// prototype chains has an object at this depth
|
|
6549
|
+
let protosAreLeftToSearch = true;
|
|
6550
|
+
while (protosAreLeftToSearch) {
|
|
6551
|
+
// with the start of each horizontal slice, we assume this is the one that's deeper than any of the proto chains
|
|
6552
|
+
protosAreLeftToSearch = false;
|
|
6553
|
+
// scan through the ingredients right to left
|
|
6554
|
+
for (let i = ingredients.length - 1; i >= 0; i--) {
|
|
6555
|
+
const searchTarget = protoChains[i][protoDepth];
|
|
6556
|
+
if (searchTarget !== undefined && searchTarget !== null) {
|
|
6557
|
+
// if we find something, this is proof that this horizontal slice potentially more objects to search
|
|
6558
|
+
protosAreLeftToSearch = true;
|
|
6559
|
+
// eureka, we found it
|
|
6560
|
+
if (Object.getOwnPropertyDescriptor(searchTarget, prop) != undefined) {
|
|
6561
|
+
return protoChains[i][0];
|
|
6562
|
+
}
|
|
6563
|
+
}
|
|
6564
|
+
}
|
|
6565
|
+
protoDepth++;
|
|
6566
|
+
}
|
|
6567
|
+
return undefined;
|
|
6568
|
+
};
|
|
6569
|
+
/**
|
|
6570
|
+
* "Mixes" ingredients by wrapping them in a Proxy. The optional prototype argument allows the mixed object to sit
|
|
6571
|
+
* downstream of an existing prototype chain. Note that "properties" cannot be added, deleted, or modified.
|
|
6572
|
+
*/
|
|
6573
|
+
const proxyMix = (ingredients, prototype = Object.prototype) => new Proxy({}, {
|
|
6574
|
+
getPrototypeOf() {
|
|
6575
|
+
return prototype;
|
|
6576
|
+
},
|
|
6577
|
+
setPrototypeOf() {
|
|
6578
|
+
throw Error('Cannot set prototype of Proxies created by ts-mixer');
|
|
6579
|
+
},
|
|
6580
|
+
getOwnPropertyDescriptor(_, prop) {
|
|
6581
|
+
return Object.getOwnPropertyDescriptor(getIngredientWithProp(prop, ingredients) || {}, prop);
|
|
6582
|
+
},
|
|
6583
|
+
defineProperty() {
|
|
6584
|
+
throw new Error('Cannot define new properties on Proxies created by ts-mixer');
|
|
6585
|
+
},
|
|
6586
|
+
has(_, prop) {
|
|
6587
|
+
return getIngredientWithProp(prop, ingredients) !== undefined || prototype[prop] !== undefined;
|
|
6588
|
+
},
|
|
6589
|
+
get(_, prop) {
|
|
6590
|
+
return (getIngredientWithProp(prop, ingredients) || prototype)[prop];
|
|
6591
|
+
},
|
|
6592
|
+
set(_, prop, val) {
|
|
6593
|
+
const ingredientWithProp = getIngredientWithProp(prop, ingredients);
|
|
6594
|
+
if (ingredientWithProp === undefined)
|
|
6595
|
+
throw new Error('Cannot set new properties on Proxies created by ts-mixer');
|
|
6596
|
+
ingredientWithProp[prop] = val;
|
|
6597
|
+
return true;
|
|
6598
|
+
},
|
|
6599
|
+
deleteProperty() {
|
|
6600
|
+
throw new Error('Cannot delete properties on Proxies created by ts-mixer');
|
|
6601
|
+
},
|
|
6602
|
+
ownKeys() {
|
|
6603
|
+
return ingredients
|
|
6604
|
+
.map(Object.getOwnPropertyNames)
|
|
6605
|
+
.reduce((prev, curr) => curr.concat(prev.filter(key => curr.indexOf(key) < 0)));
|
|
6606
|
+
},
|
|
6607
|
+
});
|
|
6608
|
+
/**
|
|
6609
|
+
* Creates a new proxy-prototype object that is a "soft" mixture of the given prototypes. The mixing is achieved by
|
|
6610
|
+
* proxying all property access to the ingredients. This is not ES5 compatible and less performant. However, any
|
|
6611
|
+
* changes made to the source prototypes will be reflected in the proxy-prototype, which may be desirable.
|
|
6612
|
+
*/
|
|
6613
|
+
const softMixProtos = (ingredients, constructor) => proxyMix([...ingredients, { constructor }]);
|
|
6614
|
+
|
|
6615
|
+
const settings = {
|
|
6616
|
+
initFunction: null,
|
|
6617
|
+
staticsStrategy: 'copy',
|
|
6618
|
+
prototypeStrategy: 'copy',
|
|
6619
|
+
decoratorInheritance: 'deep',
|
|
6620
|
+
};
|
|
6621
|
+
|
|
6622
|
+
// Keeps track of constituent classes for every mixin class created by ts-mixer.
|
|
6623
|
+
const mixins = new Map();
|
|
6624
|
+
const getMixinsForClass = (clazz) => mixins.get(clazz);
|
|
6625
|
+
const registerMixins = (mixedClass, constituents) => mixins.set(mixedClass, constituents);
|
|
6626
|
+
const hasMixin = (instance, mixin) => {
|
|
6627
|
+
if (instance instanceof mixin)
|
|
6628
|
+
return true;
|
|
6629
|
+
const constructor = instance.constructor;
|
|
6630
|
+
const visited = new Set();
|
|
6631
|
+
let frontier = new Set();
|
|
6632
|
+
frontier.add(constructor);
|
|
6633
|
+
while (frontier.size > 0) {
|
|
6634
|
+
// check if the frontier has the mixin we're looking for. if not, we can say we visited every item in the frontier
|
|
6635
|
+
if (frontier.has(mixin))
|
|
6636
|
+
return true;
|
|
6637
|
+
frontier.forEach(item => visited.add(item));
|
|
6638
|
+
// build a new frontier based on the associated mixin classes and prototype chains of each frontier item
|
|
6639
|
+
const newFrontier = new Set();
|
|
6640
|
+
frontier.forEach(item => {
|
|
6641
|
+
var _a;
|
|
6642
|
+
const itemConstituents = (_a = mixins.get(item)) !== null && _a !== void 0 ? _a : protoChain(item.prototype).map(proto => proto.constructor).filter(item => item !== null);
|
|
6643
|
+
if (itemConstituents)
|
|
6644
|
+
itemConstituents.forEach(constituent => {
|
|
6645
|
+
if (!visited.has(constituent) && !frontier.has(constituent))
|
|
6646
|
+
newFrontier.add(constituent);
|
|
6647
|
+
});
|
|
6648
|
+
});
|
|
6649
|
+
// we have a new frontier, now search again
|
|
6650
|
+
frontier = newFrontier;
|
|
6651
|
+
}
|
|
6652
|
+
// if we get here, we couldn't find the mixin anywhere in the prototype chain or associated mixin classes
|
|
6653
|
+
return false;
|
|
6654
|
+
};
|
|
6655
|
+
|
|
6656
|
+
const mergeObjectsOfDecorators = (o1, o2) => {
|
|
6657
|
+
var _a, _b;
|
|
6658
|
+
const allKeys = unique([...Object.getOwnPropertyNames(o1), ...Object.getOwnPropertyNames(o2)]);
|
|
6659
|
+
const mergedObject = {};
|
|
6660
|
+
for (let key of allKeys)
|
|
6661
|
+
mergedObject[key] = unique([...((_a = o1 === null || o1 === void 0 ? void 0 : o1[key]) !== null && _a !== void 0 ? _a : []), ...((_b = o2 === null || o2 === void 0 ? void 0 : o2[key]) !== null && _b !== void 0 ? _b : [])]);
|
|
6662
|
+
return mergedObject;
|
|
6663
|
+
};
|
|
6664
|
+
const mergePropertyAndMethodDecorators = (d1, d2) => {
|
|
6665
|
+
var _a, _b, _c, _d;
|
|
6666
|
+
return ({
|
|
6667
|
+
property: mergeObjectsOfDecorators((_a = d1 === null || d1 === void 0 ? void 0 : d1.property) !== null && _a !== void 0 ? _a : {}, (_b = d2 === null || d2 === void 0 ? void 0 : d2.property) !== null && _b !== void 0 ? _b : {}),
|
|
6668
|
+
method: mergeObjectsOfDecorators((_c = d1 === null || d1 === void 0 ? void 0 : d1.method) !== null && _c !== void 0 ? _c : {}, (_d = d2 === null || d2 === void 0 ? void 0 : d2.method) !== null && _d !== void 0 ? _d : {}),
|
|
6669
|
+
});
|
|
6670
|
+
};
|
|
6671
|
+
const mergeDecorators = (d1, d2) => {
|
|
6672
|
+
var _a, _b, _c, _d, _e, _f;
|
|
6673
|
+
return ({
|
|
6674
|
+
class: unique([...(_a = d1 === null || d1 === void 0 ? void 0 : d1.class) !== null && _a !== void 0 ? _a : [], ...(_b = d2 === null || d2 === void 0 ? void 0 : d2.class) !== null && _b !== void 0 ? _b : []]),
|
|
6675
|
+
static: mergePropertyAndMethodDecorators((_c = d1 === null || d1 === void 0 ? void 0 : d1.static) !== null && _c !== void 0 ? _c : {}, (_d = d2 === null || d2 === void 0 ? void 0 : d2.static) !== null && _d !== void 0 ? _d : {}),
|
|
6676
|
+
instance: mergePropertyAndMethodDecorators((_e = d1 === null || d1 === void 0 ? void 0 : d1.instance) !== null && _e !== void 0 ? _e : {}, (_f = d2 === null || d2 === void 0 ? void 0 : d2.instance) !== null && _f !== void 0 ? _f : {}),
|
|
6677
|
+
});
|
|
6678
|
+
};
|
|
6679
|
+
const decorators = new Map();
|
|
6680
|
+
const findAllConstituentClasses = (...classes) => {
|
|
6681
|
+
var _a;
|
|
6682
|
+
const allClasses = new Set();
|
|
6683
|
+
const frontier = new Set([...classes]);
|
|
6684
|
+
while (frontier.size > 0) {
|
|
6685
|
+
for (let clazz of frontier) {
|
|
6686
|
+
const protoChainClasses = protoChain(clazz.prototype).map(proto => proto.constructor);
|
|
6687
|
+
const mixinClasses = (_a = getMixinsForClass(clazz)) !== null && _a !== void 0 ? _a : [];
|
|
6688
|
+
const potentiallyNewClasses = [...protoChainClasses, ...mixinClasses];
|
|
6689
|
+
const newClasses = potentiallyNewClasses.filter(c => !allClasses.has(c));
|
|
6690
|
+
for (let newClass of newClasses)
|
|
6691
|
+
frontier.add(newClass);
|
|
6692
|
+
allClasses.add(clazz);
|
|
6693
|
+
frontier.delete(clazz);
|
|
6694
|
+
}
|
|
6695
|
+
}
|
|
6696
|
+
return [...allClasses];
|
|
6697
|
+
};
|
|
6698
|
+
const deepDecoratorSearch = (...classes) => {
|
|
6699
|
+
const decoratorsForClassChain = findAllConstituentClasses(...classes)
|
|
6700
|
+
.map(clazz => decorators.get(clazz))
|
|
6701
|
+
.filter(decorators => !!decorators);
|
|
6702
|
+
if (decoratorsForClassChain.length == 0)
|
|
6703
|
+
return {};
|
|
6704
|
+
if (decoratorsForClassChain.length == 1)
|
|
6705
|
+
return decoratorsForClassChain[0];
|
|
6706
|
+
return decoratorsForClassChain.reduce((d1, d2) => mergeDecorators(d1, d2));
|
|
6707
|
+
};
|
|
6708
|
+
const directDecoratorSearch = (...classes) => {
|
|
6709
|
+
const classDecorators = classes.map(clazz => getDecoratorsForClass(clazz));
|
|
6710
|
+
if (classDecorators.length === 0)
|
|
6711
|
+
return {};
|
|
6712
|
+
if (classDecorators.length === 1)
|
|
6713
|
+
return classDecorators[0];
|
|
6714
|
+
return classDecorators.reduce((d1, d2) => mergeDecorators(d1, d2));
|
|
6715
|
+
};
|
|
6716
|
+
const getDecoratorsForClass = (clazz) => {
|
|
6717
|
+
let decoratorsForClass = decorators.get(clazz);
|
|
6718
|
+
if (!decoratorsForClass) {
|
|
6719
|
+
decoratorsForClass = {};
|
|
6720
|
+
decorators.set(clazz, decoratorsForClass);
|
|
6721
|
+
}
|
|
6722
|
+
return decoratorsForClass;
|
|
6723
|
+
};
|
|
6724
|
+
const decorateClass = (decorator) => ((clazz) => {
|
|
6725
|
+
const decoratorsForClass = getDecoratorsForClass(clazz);
|
|
6726
|
+
let classDecorators = decoratorsForClass.class;
|
|
6727
|
+
if (!classDecorators) {
|
|
6728
|
+
classDecorators = [];
|
|
6729
|
+
decoratorsForClass.class = classDecorators;
|
|
6730
|
+
}
|
|
6731
|
+
classDecorators.push(decorator);
|
|
6732
|
+
return decorator(clazz);
|
|
6733
|
+
});
|
|
6734
|
+
const decorateMember = (decorator) => ((object, key, ...otherArgs) => {
|
|
6735
|
+
var _a, _b, _c;
|
|
6736
|
+
const decoratorTargetType = typeof object === 'function' ? 'static' : 'instance';
|
|
6737
|
+
const decoratorType = typeof object[key] === 'function' ? 'method' : 'property';
|
|
6738
|
+
const clazz = decoratorTargetType === 'static' ? object : object.constructor;
|
|
6739
|
+
const decoratorsForClass = getDecoratorsForClass(clazz);
|
|
6740
|
+
const decoratorsForTargetType = (_a = decoratorsForClass === null || decoratorsForClass === void 0 ? void 0 : decoratorsForClass[decoratorTargetType]) !== null && _a !== void 0 ? _a : {};
|
|
6741
|
+
decoratorsForClass[decoratorTargetType] = decoratorsForTargetType;
|
|
6742
|
+
let decoratorsForType = (_b = decoratorsForTargetType === null || decoratorsForTargetType === void 0 ? void 0 : decoratorsForTargetType[decoratorType]) !== null && _b !== void 0 ? _b : {};
|
|
6743
|
+
decoratorsForTargetType[decoratorType] = decoratorsForType;
|
|
6744
|
+
let decoratorsForKey = (_c = decoratorsForType === null || decoratorsForType === void 0 ? void 0 : decoratorsForType[key]) !== null && _c !== void 0 ? _c : [];
|
|
6745
|
+
decoratorsForType[key] = decoratorsForKey;
|
|
6746
|
+
// @ts-ignore: array is type `A[] | B[]` and item is type `A | B`, so technically a type error, but it's fine
|
|
6747
|
+
decoratorsForKey.push(decorator);
|
|
6748
|
+
// @ts-ignore
|
|
6749
|
+
return decorator(object, key, ...otherArgs);
|
|
6750
|
+
});
|
|
6751
|
+
const decorate = (decorator) => ((...args) => {
|
|
6752
|
+
if (args.length === 1)
|
|
6753
|
+
return decorateClass(decorator)(args[0]);
|
|
6754
|
+
return decorateMember(decorator)(...args);
|
|
6755
|
+
});
|
|
6756
|
+
|
|
6757
|
+
function Mixin(...constructors) {
|
|
6758
|
+
var _a, _b, _c;
|
|
6759
|
+
const prototypes = constructors.map(constructor => constructor.prototype);
|
|
6760
|
+
// Here we gather up the init functions of the ingredient prototypes, combine them into one init function, and
|
|
6761
|
+
// attach it to the mixed class prototype. The reason we do this is because we want the init functions to mix
|
|
6762
|
+
// similarly to constructors -- not methods, which simply override each other.
|
|
6763
|
+
const initFunctionName = settings.initFunction;
|
|
6764
|
+
if (initFunctionName !== null) {
|
|
6765
|
+
const initFunctions = prototypes
|
|
6766
|
+
.map(proto => proto[initFunctionName])
|
|
6767
|
+
.filter(func => typeof func === 'function');
|
|
6768
|
+
const combinedInitFunction = function (...args) {
|
|
6769
|
+
for (let initFunction of initFunctions)
|
|
6770
|
+
initFunction.apply(this, args);
|
|
6771
|
+
};
|
|
6772
|
+
const extraProto = { [initFunctionName]: combinedInitFunction };
|
|
6773
|
+
prototypes.push(extraProto);
|
|
6774
|
+
}
|
|
6775
|
+
function MixedClass(...args) {
|
|
6776
|
+
for (const constructor of constructors)
|
|
6777
|
+
// @ts-ignore: potentially abstract class
|
|
6778
|
+
copyProps(this, new constructor(...args));
|
|
6779
|
+
if (initFunctionName !== null && typeof this[initFunctionName] === 'function')
|
|
6780
|
+
this[initFunctionName].apply(this, args);
|
|
6781
|
+
}
|
|
6782
|
+
MixedClass.prototype = settings.prototypeStrategy === 'copy'
|
|
6783
|
+
? hardMixProtos(prototypes, MixedClass)
|
|
6784
|
+
: softMixProtos(prototypes, MixedClass);
|
|
6785
|
+
Object.setPrototypeOf(MixedClass, settings.staticsStrategy === 'copy'
|
|
6786
|
+
? hardMixProtos(constructors, null, ['prototype'])
|
|
6787
|
+
: proxyMix(constructors, Function.prototype));
|
|
6788
|
+
let DecoratedMixedClass = MixedClass;
|
|
6789
|
+
if (settings.decoratorInheritance !== 'none') {
|
|
6790
|
+
const classDecorators = settings.decoratorInheritance === 'deep'
|
|
6791
|
+
? deepDecoratorSearch(...constructors)
|
|
6792
|
+
: directDecoratorSearch(...constructors);
|
|
6793
|
+
for (let decorator of (_a = classDecorators === null || classDecorators === void 0 ? void 0 : classDecorators.class) !== null && _a !== void 0 ? _a : []) {
|
|
6794
|
+
const result = decorator(DecoratedMixedClass);
|
|
6795
|
+
if (result) {
|
|
6796
|
+
DecoratedMixedClass = result;
|
|
6797
|
+
}
|
|
6798
|
+
}
|
|
6799
|
+
applyPropAndMethodDecorators((_b = classDecorators === null || classDecorators === void 0 ? void 0 : classDecorators.static) !== null && _b !== void 0 ? _b : {}, DecoratedMixedClass);
|
|
6800
|
+
applyPropAndMethodDecorators((_c = classDecorators === null || classDecorators === void 0 ? void 0 : classDecorators.instance) !== null && _c !== void 0 ? _c : {}, DecoratedMixedClass.prototype);
|
|
6801
|
+
}
|
|
6802
|
+
registerMixins(DecoratedMixedClass, constructors);
|
|
6803
|
+
return DecoratedMixedClass;
|
|
6804
|
+
}
|
|
6805
|
+
const applyPropAndMethodDecorators = (propAndMethodDecorators, target) => {
|
|
6806
|
+
const propDecorators = propAndMethodDecorators.property;
|
|
6807
|
+
const methodDecorators = propAndMethodDecorators.method;
|
|
6808
|
+
if (propDecorators)
|
|
6809
|
+
for (let key in propDecorators)
|
|
6810
|
+
for (let decorator of propDecorators[key])
|
|
6811
|
+
decorator(target, key);
|
|
6812
|
+
if (methodDecorators)
|
|
6813
|
+
for (let key in methodDecorators)
|
|
6814
|
+
for (let decorator of methodDecorators[key])
|
|
6815
|
+
decorator(target, key, Object.getOwnPropertyDescriptor(target, key));
|
|
6816
|
+
};
|
|
6817
|
+
/**
|
|
6818
|
+
* A decorator version of the `Mixin` function. You'll want to use this instead of `Mixin` for mixing generic classes.
|
|
6819
|
+
*/
|
|
6820
|
+
const mix = (...ingredients) => decoratedClass => {
|
|
6821
|
+
// @ts-ignore
|
|
6822
|
+
const mixedClass = Mixin(...ingredients.concat([decoratedClass]));
|
|
6823
|
+
Object.defineProperty(mixedClass, 'name', {
|
|
6824
|
+
value: decoratedClass.name,
|
|
6825
|
+
writable: false,
|
|
6826
|
+
});
|
|
6827
|
+
return mixedClass;
|
|
6828
|
+
};
|
|
6829
|
+
|
|
6830
|
+
|
|
6489
6831
|
|
|
6490
|
-
!function(){"use strict";var u,c,a,s,f,y="properties",l="deepProperties",b="propertyDescriptors",d="staticProperties",O="staticDeepProperties",h="staticPropertyDescriptors",g="configuration",m="deepConfiguration",P="deepProps",A="deepStatics",j="deepConf",v="initializers",_="methods",w="composers",D="compose";function S(r){return Object.getOwnPropertyNames(r).concat(Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(r):[])}function r(r,t){return Array.prototype.slice.call(arguments,2).reduce(r,t)}var x=r.bind(0,function r(t,e){if(e)for(var n=S(e),o=0;o<n.length;o+=1)Object.defineProperty(t,n[o],Object.getOwnPropertyDescriptor(e,n[o]));return t});function C(r){return"function"==typeof r}function N(r){return r&&"object"==typeof r||C(r)}function z(r){return r&&"object"==typeof r&&r.__proto__==Object.prototype}var E=r.bind(0,function r(t,e){if(e===u)return t;if(Array.isArray(e))return(Array.isArray(t)?t:[]).concat(e);if(!z(e))return e;for(var n,o,i=S(e),p=0;p<i.length;)n=i[p++],(o=Object.getOwnPropertyDescriptor(e,n)).hasOwnProperty("value")?o.value!==u&&(t[n]=r(z(t[n])||Array.isArray(e[n])?t[n]:{},e[n])):Object.defineProperty(t,n,o);return t});function I(){return(c=Array.prototype.concat.apply([],arguments).filter(function(r,t,e){return C(r)&&e.indexOf(r)===t})).length?c:u}function t(r){return c=function r(){return function r(t){var e,n,o=r[D]||{},i={__proto__:o[_]},p=o[v],c=Array.prototype.slice.apply(arguments),a=o[l];if(a&&E(i,a),(a=o[y])&&x(i,a),(a=o[b])&&Object.defineProperties(i,a),!p||!p.length)return i;for(t===u&&(t={}),o=0;o<p.length;)C(e=p[o++])&&(i=(n=e.call(i,t,{instance:i,stamp:r,args:c}))===u?i:n);return i}}(),(a=r[O])&&E(c,a),(a=r[d])&&x(c,a),(a=r[h])&&Object.defineProperties(c,a),a=C(c[D])?c[D]:R,x(c[D]=function(){return a.apply(this,arguments)},r),c}function e(e,n){function r(r,t){N(n[r])&&(N(e[r])||(e[r]={}),(t||x)(e[r],n[r]))}function t(r){(c=I(e[r],n[r]))&&(e[r]=c)}return n&&N(n=n[D]||n)&&(r(_),r(y),r(l,E),r(b),r(d),r(O,E),r(h),r(g),r(m,E),t(v),t(w)),e}function R(){return t(Array.prototype.concat.apply([this],arguments).reduce(e,{}))}function V(r){return C(r)&&C(r[D])}var n={};function o(r,t){return function(){return(s={})[r]=t.apply(u,Array.prototype.concat.apply([{}],arguments)),((c=this)&&c[D]||a).call(c,s)}}n[_]=o(_,x),n[y]=n.props=o(y,x),n[v]=n.init=o(v,I),n[w]=o(w,I),n[l]=n[P]=o(l,E),n[d]=n.statics=o(d,x),n[O]=n[A]=o(O,E),n[g]=n.conf=o(g,x),n[m]=n[j]=o(m,E),n[b]=o(b,x),n[h]=o(h,x),a=n[D]=x(function r(){for(var t,e,n=0,o=[],i=arguments,p=this;n<i.length;)N(t=i[n++])&&o.push(V(t)?t:((s={})[_]=(e=t)[_]||u,a=e.props,s[y]=N((c=e[y])||a)?x({},a,c):u,s[v]=I(e.init,e[v]),s[w]=I(e[w]),a=e[P],s[l]=N((c=e[l])||a)?E({},a,c):u,s[b]=e[b],a=e.statics,s[d]=N((c=e[d])||a)?x({},a,c):u,a=e[A],s[O]=N((c=e[O])||a)?E({},a,c):u,c=e[h],s[h]=N((a=e.name&&{name:{value:e.name}})||c)?x({},c,a):u,a=e.conf,s[g]=N((c=e[g])||a)?x({},a,c):u,a=e[j],s[m]=N((c=e[m])||a)?E({},a,c):u,s));if(t=R.apply(p||f,o),p&&o.unshift(p),Array.isArray(i=t[D][w]))for(n=0;n<i.length;)t=V(p=i[n++]({stamp:t,composables:o}))?p:t;return t},n),n.create=function(){return this.apply(u,arguments)},(s={})[d]=n,f=R(s),a[D]=a.bind(),a.version="4.3.2",typeof u!="object"?module.exports=a:self.stampit=a}();
|
|
6491
6832
|
|
|
6492
6833
|
/***/ }),
|
|
6493
6834
|
|
|
@@ -14256,26 +14597,22 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
14256
14597
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
14257
14598
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
14258
14599
|
/* harmony export */ });
|
|
14259
|
-
/* harmony import */ var
|
|
14260
|
-
/* harmony import */ var _Node_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(9824);
|
|
14261
|
-
|
|
14600
|
+
/* harmony import */ var _Node_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9824);
|
|
14262
14601
|
|
|
14263
|
-
|
|
14264
|
-
|
|
14265
|
-
|
|
14266
|
-
|
|
14267
|
-
|
|
14268
|
-
|
|
14269
|
-
isUnexpected: false
|
|
14270
|
-
},
|
|
14271
|
-
init({
|
|
14272
|
-
value = null,
|
|
14273
|
-
isUnexpected = false
|
|
14602
|
+
class Error extends _Node_mjs__WEBPACK_IMPORTED_MODULE_0__["default"] {
|
|
14603
|
+
static type = 'error';
|
|
14604
|
+
constructor({
|
|
14605
|
+
value,
|
|
14606
|
+
isUnexpected = false,
|
|
14607
|
+
...rest
|
|
14274
14608
|
} = {}) {
|
|
14609
|
+
super({
|
|
14610
|
+
...rest
|
|
14611
|
+
});
|
|
14275
14612
|
this.value = value;
|
|
14276
14613
|
this.isUnexpected = isUnexpected;
|
|
14277
14614
|
}
|
|
14278
|
-
}
|
|
14615
|
+
}
|
|
14279
14616
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Error);
|
|
14280
14617
|
|
|
14281
14618
|
/***/ }),
|
|
@@ -14288,23 +14625,20 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
14288
14625
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
14289
14626
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
14290
14627
|
/* harmony export */ });
|
|
14291
|
-
/* harmony import */ var
|
|
14292
|
-
/* harmony import */ var _Node_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(9824);
|
|
14628
|
+
/* harmony import */ var _Node_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9824);
|
|
14293
14629
|
|
|
14294
|
-
|
|
14295
|
-
|
|
14296
|
-
|
|
14297
|
-
|
|
14298
|
-
|
|
14299
|
-
props: {
|
|
14300
|
-
value: null
|
|
14301
|
-
},
|
|
14302
|
-
init({
|
|
14303
|
-
value = null
|
|
14630
|
+
class Literal extends _Node_mjs__WEBPACK_IMPORTED_MODULE_0__["default"] {
|
|
14631
|
+
static type = 'literal';
|
|
14632
|
+
constructor({
|
|
14633
|
+
value,
|
|
14634
|
+
...rest
|
|
14304
14635
|
} = {}) {
|
|
14636
|
+
super({
|
|
14637
|
+
...rest
|
|
14638
|
+
});
|
|
14305
14639
|
this.value = value;
|
|
14306
14640
|
}
|
|
14307
|
-
}
|
|
14641
|
+
}
|
|
14308
14642
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Literal);
|
|
14309
14643
|
|
|
14310
14644
|
/***/ }),
|
|
@@ -14317,45 +14651,36 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
14317
14651
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
14318
14652
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
14319
14653
|
/* harmony export */ });
|
|
14320
|
-
|
|
14321
|
-
|
|
14322
|
-
|
|
14323
|
-
|
|
14324
|
-
type: null,
|
|
14325
|
-
position: null,
|
|
14326
|
-
children: []
|
|
14327
|
-
},
|
|
14328
|
-
// eslint-disable-next-line @typescript-eslint/default-param-last
|
|
14329
|
-
init({
|
|
14654
|
+
class Node {
|
|
14655
|
+
static type = 'node';
|
|
14656
|
+
type = 'node';
|
|
14657
|
+
constructor({
|
|
14330
14658
|
children = [],
|
|
14331
|
-
position
|
|
14659
|
+
position,
|
|
14332
14660
|
isMissing = false
|
|
14333
|
-
} = {}
|
|
14334
|
-
|
|
14335
|
-
}) {
|
|
14336
|
-
this.type = stamp.type;
|
|
14661
|
+
} = {}) {
|
|
14662
|
+
this.type = this.constructor.type;
|
|
14337
14663
|
this.isMissing = isMissing;
|
|
14338
14664
|
this.children = children;
|
|
14339
14665
|
this.position = position;
|
|
14340
|
-
},
|
|
14341
|
-
methods: {
|
|
14342
|
-
// creates shallow clone of node
|
|
14343
|
-
clone() {
|
|
14344
|
-
// 1. copy has same prototype as orig
|
|
14345
|
-
const copy = Object.create(Object.getPrototypeOf(this));
|
|
14346
|
-
|
|
14347
|
-
// 2. copy has all of orig’s properties
|
|
14348
|
-
Object.getOwnPropertyNames(this) // (1)
|
|
14349
|
-
.forEach(propKey => {
|
|
14350
|
-
// (2)
|
|
14351
|
-
const descriptor = Object.getOwnPropertyDescriptor(this, propKey); // (3)
|
|
14352
|
-
// @ts-ignore
|
|
14353
|
-
Object.defineProperty(copy, propKey, descriptor); // (4)
|
|
14354
|
-
});
|
|
14355
|
-
return copy;
|
|
14356
|
-
}
|
|
14357
14666
|
}
|
|
14358
|
-
|
|
14667
|
+
|
|
14668
|
+
// creates shallow clone of node
|
|
14669
|
+
clone() {
|
|
14670
|
+
// 1. copy has same prototype as orig
|
|
14671
|
+
const copy = Object.create(Object.getPrototypeOf(this));
|
|
14672
|
+
|
|
14673
|
+
// 2. copy has all of orig’s properties
|
|
14674
|
+
Object.getOwnPropertyNames(this) // (1)
|
|
14675
|
+
.forEach(propKey => {
|
|
14676
|
+
// (2)
|
|
14677
|
+
const descriptor = Object.getOwnPropertyDescriptor(this, propKey); // (3)
|
|
14678
|
+
// @ts-ignore
|
|
14679
|
+
Object.defineProperty(copy, propKey, descriptor); // (4)
|
|
14680
|
+
});
|
|
14681
|
+
return copy;
|
|
14682
|
+
}
|
|
14683
|
+
}
|
|
14359
14684
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Node);
|
|
14360
14685
|
|
|
14361
14686
|
/***/ }),
|
|
@@ -14368,24 +14693,16 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
14368
14693
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
14369
14694
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
14370
14695
|
/* harmony export */ });
|
|
14371
|
-
/* harmony import */ var
|
|
14372
|
-
/* harmony import */ var
|
|
14373
|
-
/* harmony import */ var _Node_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(9824);
|
|
14696
|
+
/* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(7018);
|
|
14697
|
+
/* harmony import */ var _Node_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9824);
|
|
14374
14698
|
|
|
14375
14699
|
|
|
14376
|
-
|
|
14377
|
-
|
|
14378
|
-
|
|
14379
|
-
|
|
14380
|
-
},
|
|
14381
|
-
methods: {
|
|
14382
|
-
// @ts-ignore
|
|
14383
|
-
get rootNode() {
|
|
14384
|
-
// @ts-ignore
|
|
14385
|
-
return (0,ramda__WEBPACK_IMPORTED_MODULE_2__["default"])(this.children);
|
|
14386
|
-
}
|
|
14700
|
+
class ParseResult extends _Node_mjs__WEBPACK_IMPORTED_MODULE_0__["default"] {
|
|
14701
|
+
static type = 'parseResult';
|
|
14702
|
+
get rootNode() {
|
|
14703
|
+
return (0,ramda__WEBPACK_IMPORTED_MODULE_1__["default"])(this.children);
|
|
14387
14704
|
}
|
|
14388
|
-
}
|
|
14705
|
+
}
|
|
14389
14706
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (ParseResult);
|
|
14390
14707
|
|
|
14391
14708
|
/***/ }),
|
|
@@ -14399,45 +14716,32 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
14399
14716
|
/* harmony export */ Point: () => (/* binding */ Point),
|
|
14400
14717
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
14401
14718
|
/* harmony export */ });
|
|
14402
|
-
/*
|
|
14403
|
-
|
|
14404
|
-
|
|
14405
|
-
|
|
14406
|
-
|
|
14407
|
-
|
|
14408
|
-
|
|
14409
|
-
|
|
14410
|
-
|
|
14411
|
-
|
|
14412
|
-
char: null
|
|
14413
|
-
},
|
|
14414
|
-
init({
|
|
14415
|
-
row = null,
|
|
14416
|
-
column = null,
|
|
14417
|
-
char = null
|
|
14418
|
-
} = {}) {
|
|
14719
|
+
/* eslint-disable max-classes-per-file */
|
|
14720
|
+
|
|
14721
|
+
class Point {
|
|
14722
|
+
static type = 'point';
|
|
14723
|
+
type = Point.type;
|
|
14724
|
+
constructor({
|
|
14725
|
+
row,
|
|
14726
|
+
column,
|
|
14727
|
+
char
|
|
14728
|
+
}) {
|
|
14419
14729
|
this.row = row;
|
|
14420
14730
|
this.column = column;
|
|
14421
14731
|
this.char = char;
|
|
14422
14732
|
}
|
|
14423
|
-
}
|
|
14424
|
-
|
|
14425
|
-
|
|
14426
|
-
|
|
14427
|
-
|
|
14428
|
-
|
|
14429
|
-
|
|
14430
|
-
|
|
14431
|
-
end: null
|
|
14432
|
-
},
|
|
14433
|
-
init({
|
|
14434
|
-
start = null,
|
|
14435
|
-
end = null
|
|
14436
|
-
} = {}) {
|
|
14733
|
+
}
|
|
14734
|
+
class Position {
|
|
14735
|
+
static type = 'position';
|
|
14736
|
+
type = Position.type;
|
|
14737
|
+
constructor({
|
|
14738
|
+
start,
|
|
14739
|
+
end
|
|
14740
|
+
}) {
|
|
14437
14741
|
this.start = start;
|
|
14438
14742
|
this.end = end;
|
|
14439
14743
|
}
|
|
14440
|
-
}
|
|
14744
|
+
}
|
|
14441
14745
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Position);
|
|
14442
14746
|
|
|
14443
14747
|
/***/ }),
|
|
@@ -14450,23 +14754,16 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
14450
14754
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
14451
14755
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
14452
14756
|
/* harmony export */ });
|
|
14453
|
-
/* harmony import */ var
|
|
14454
|
-
/* harmony import */ var
|
|
14455
|
-
/* harmony import */ var _predicates_mjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1918);
|
|
14757
|
+
/* harmony import */ var _JsonNode_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9426);
|
|
14758
|
+
/* harmony import */ var _predicates_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1918);
|
|
14456
14759
|
|
|
14457
14760
|
|
|
14458
|
-
|
|
14459
|
-
|
|
14460
|
-
|
|
14461
|
-
|
|
14462
|
-
},
|
|
14463
|
-
methods: {
|
|
14464
|
-
get items() {
|
|
14465
|
-
// @ts-ignore
|
|
14466
|
-
return this.children.filter(node => (0,_predicates_mjs__WEBPACK_IMPORTED_MODULE_2__.isFalse)(node) || (0,_predicates_mjs__WEBPACK_IMPORTED_MODULE_2__.isTrue)(node) || (0,_predicates_mjs__WEBPACK_IMPORTED_MODULE_2__.isNull)(node) || (0,_predicates_mjs__WEBPACK_IMPORTED_MODULE_2__.isNumber)(node) || (0,_predicates_mjs__WEBPACK_IMPORTED_MODULE_2__.isString)(node) || (0,_predicates_mjs__WEBPACK_IMPORTED_MODULE_2__.isArray)(node) || _predicates_mjs__WEBPACK_IMPORTED_MODULE_2__.isObject);
|
|
14467
|
-
}
|
|
14761
|
+
class JsonArray extends _JsonNode_mjs__WEBPACK_IMPORTED_MODULE_0__["default"] {
|
|
14762
|
+
static type = 'array';
|
|
14763
|
+
get items() {
|
|
14764
|
+
return this.children.filter(node => (0,_predicates_mjs__WEBPACK_IMPORTED_MODULE_1__.isFalse)(node) || (0,_predicates_mjs__WEBPACK_IMPORTED_MODULE_1__.isTrue)(node) || (0,_predicates_mjs__WEBPACK_IMPORTED_MODULE_1__.isNull)(node) || (0,_predicates_mjs__WEBPACK_IMPORTED_MODULE_1__.isNumber)(node) || (0,_predicates_mjs__WEBPACK_IMPORTED_MODULE_1__.isString)(node) || (0,_predicates_mjs__WEBPACK_IMPORTED_MODULE_1__.isArray)(node) || _predicates_mjs__WEBPACK_IMPORTED_MODULE_1__.isObject);
|
|
14468
14765
|
}
|
|
14469
|
-
}
|
|
14766
|
+
}
|
|
14470
14767
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (JsonArray);
|
|
14471
14768
|
|
|
14472
14769
|
/***/ }),
|
|
@@ -14479,24 +14776,16 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
14479
14776
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
14480
14777
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
14481
14778
|
/* harmony export */ });
|
|
14482
|
-
/* harmony import */ var
|
|
14483
|
-
/* harmony import */ var
|
|
14484
|
-
/* harmony import */ var _JsonNode_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(9426);
|
|
14779
|
+
/* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(7018);
|
|
14780
|
+
/* harmony import */ var _JsonNode_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9426);
|
|
14485
14781
|
|
|
14486
14782
|
|
|
14487
|
-
|
|
14488
|
-
|
|
14489
|
-
|
|
14490
|
-
|
|
14491
|
-
},
|
|
14492
|
-
methods: {
|
|
14493
|
-
// @ts-ignore
|
|
14494
|
-
get child() {
|
|
14495
|
-
// @ts-ignore
|
|
14496
|
-
return (0,ramda__WEBPACK_IMPORTED_MODULE_2__["default"])(this.children);
|
|
14497
|
-
}
|
|
14783
|
+
class JsonDocument extends _JsonNode_mjs__WEBPACK_IMPORTED_MODULE_0__["default"] {
|
|
14784
|
+
static type = 'document';
|
|
14785
|
+
get child() {
|
|
14786
|
+
return (0,ramda__WEBPACK_IMPORTED_MODULE_1__["default"])(this.children);
|
|
14498
14787
|
}
|
|
14499
|
-
}
|
|
14788
|
+
}
|
|
14500
14789
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (JsonDocument);
|
|
14501
14790
|
|
|
14502
14791
|
/***/ }),
|
|
@@ -14509,15 +14798,11 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
14509
14798
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
14510
14799
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
14511
14800
|
/* harmony export */ });
|
|
14512
|
-
/* harmony import */ var
|
|
14513
|
-
/* harmony import */ var _JsonValue_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6204);
|
|
14514
|
-
|
|
14801
|
+
/* harmony import */ var _JsonValue_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6204);
|
|
14515
14802
|
|
|
14516
|
-
|
|
14517
|
-
|
|
14518
|
-
|
|
14519
|
-
}
|
|
14520
|
-
});
|
|
14803
|
+
class JsonFalse extends _JsonValue_mjs__WEBPACK_IMPORTED_MODULE_0__["default"] {
|
|
14804
|
+
static type = 'false';
|
|
14805
|
+
}
|
|
14521
14806
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (JsonFalse);
|
|
14522
14807
|
|
|
14523
14808
|
/***/ }),
|
|
@@ -14530,15 +14815,11 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
14530
14815
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
14531
14816
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
14532
14817
|
/* harmony export */ });
|
|
14533
|
-
/* harmony import */ var
|
|
14534
|
-
/* harmony import */ var _JsonString_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(9443);
|
|
14535
|
-
|
|
14818
|
+
/* harmony import */ var _JsonString_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9443);
|
|
14536
14819
|
|
|
14537
|
-
|
|
14538
|
-
|
|
14539
|
-
|
|
14540
|
-
}
|
|
14541
|
-
});
|
|
14820
|
+
class JsonKey extends _JsonString_mjs__WEBPACK_IMPORTED_MODULE_0__["default"] {
|
|
14821
|
+
static type = 'key';
|
|
14822
|
+
}
|
|
14542
14823
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (JsonKey);
|
|
14543
14824
|
|
|
14544
14825
|
/***/ }),
|
|
@@ -14551,11 +14832,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
14551
14832
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
14552
14833
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
14553
14834
|
/* harmony export */ });
|
|
14554
|
-
/* harmony import */ var
|
|
14555
|
-
/* harmony import */ var _Node_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(9824);
|
|
14556
|
-
|
|
14835
|
+
/* harmony import */ var _Node_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9824);
|
|
14557
14836
|
|
|
14558
|
-
|
|
14837
|
+
class JsonNode extends _Node_mjs__WEBPACK_IMPORTED_MODULE_0__["default"] {}
|
|
14559
14838
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (JsonNode);
|
|
14560
14839
|
|
|
14561
14840
|
/***/ }),
|
|
@@ -14568,15 +14847,11 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
14568
14847
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
14569
14848
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
14570
14849
|
/* harmony export */ });
|
|
14571
|
-
/* harmony import */ var
|
|
14572
|
-
/* harmony import */ var _JsonValue_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6204);
|
|
14850
|
+
/* harmony import */ var _JsonValue_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6204);
|
|
14573
14851
|
|
|
14574
|
-
|
|
14575
|
-
|
|
14576
|
-
|
|
14577
|
-
type: 'null'
|
|
14578
|
-
}
|
|
14579
|
-
});
|
|
14852
|
+
class JsonNull extends _JsonValue_mjs__WEBPACK_IMPORTED_MODULE_0__["default"] {
|
|
14853
|
+
static type = 'null';
|
|
14854
|
+
}
|
|
14580
14855
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (JsonNull);
|
|
14581
14856
|
|
|
14582
14857
|
/***/ }),
|
|
@@ -14589,15 +14864,11 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
14589
14864
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
14590
14865
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
14591
14866
|
/* harmony export */ });
|
|
14592
|
-
/* harmony import */ var
|
|
14593
|
-
/* harmony import */ var _JsonValue_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6204);
|
|
14867
|
+
/* harmony import */ var _JsonValue_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6204);
|
|
14594
14868
|
|
|
14595
|
-
|
|
14596
|
-
|
|
14597
|
-
|
|
14598
|
-
type: 'number'
|
|
14599
|
-
}
|
|
14600
|
-
});
|
|
14869
|
+
class JsonNumber extends _JsonValue_mjs__WEBPACK_IMPORTED_MODULE_0__["default"] {
|
|
14870
|
+
static type = 'number';
|
|
14871
|
+
}
|
|
14601
14872
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (JsonNumber);
|
|
14602
14873
|
|
|
14603
14874
|
/***/ }),
|
|
@@ -14610,23 +14881,16 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
14610
14881
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
14611
14882
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
14612
14883
|
/* harmony export */ });
|
|
14613
|
-
/* harmony import */ var
|
|
14614
|
-
/* harmony import */ var
|
|
14615
|
-
/* harmony import */ var _predicates_mjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1918);
|
|
14884
|
+
/* harmony import */ var _JsonNode_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9426);
|
|
14885
|
+
/* harmony import */ var _predicates_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1918);
|
|
14616
14886
|
|
|
14617
14887
|
|
|
14618
|
-
|
|
14619
|
-
|
|
14620
|
-
|
|
14621
|
-
|
|
14622
|
-
},
|
|
14623
|
-
methods: {
|
|
14624
|
-
get properties() {
|
|
14625
|
-
// @ts-ignore
|
|
14626
|
-
return this.children.filter(_predicates_mjs__WEBPACK_IMPORTED_MODULE_2__.isProperty);
|
|
14627
|
-
}
|
|
14888
|
+
class JsonObject extends _JsonNode_mjs__WEBPACK_IMPORTED_MODULE_0__["default"] {
|
|
14889
|
+
static type = 'object';
|
|
14890
|
+
get properties() {
|
|
14891
|
+
return this.children.filter(_predicates_mjs__WEBPACK_IMPORTED_MODULE_1__.isProperty);
|
|
14628
14892
|
}
|
|
14629
|
-
}
|
|
14893
|
+
}
|
|
14630
14894
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (JsonObject);
|
|
14631
14895
|
|
|
14632
14896
|
/***/ }),
|
|
@@ -14639,29 +14903,19 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
14639
14903
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
14640
14904
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
14641
14905
|
/* harmony export */ });
|
|
14642
|
-
/* harmony import */ var
|
|
14643
|
-
/* harmony import */ var
|
|
14644
|
-
/* harmony import */ var _predicates_mjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1918);
|
|
14906
|
+
/* harmony import */ var _JsonNode_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9426);
|
|
14907
|
+
/* harmony import */ var _predicates_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1918);
|
|
14645
14908
|
|
|
14646
14909
|
|
|
14647
|
-
|
|
14648
|
-
|
|
14649
|
-
|
|
14650
|
-
|
|
14651
|
-
},
|
|
14652
|
-
methods: {
|
|
14653
|
-
// @ts-ignore
|
|
14654
|
-
get key() {
|
|
14655
|
-
// @ts-ignore
|
|
14656
|
-
return this.children.find(_predicates_mjs__WEBPACK_IMPORTED_MODULE_2__.isKey);
|
|
14657
|
-
},
|
|
14658
|
-
// @ts-ignore
|
|
14659
|
-
get value() {
|
|
14660
|
-
// @ts-ignore
|
|
14661
|
-
return this.children.find(node => (0,_predicates_mjs__WEBPACK_IMPORTED_MODULE_2__.isFalse)(node) || (0,_predicates_mjs__WEBPACK_IMPORTED_MODULE_2__.isTrue)(node) || (0,_predicates_mjs__WEBPACK_IMPORTED_MODULE_2__.isNull)(node) || (0,_predicates_mjs__WEBPACK_IMPORTED_MODULE_2__.isNumber)(node) || (0,_predicates_mjs__WEBPACK_IMPORTED_MODULE_2__.isString)(node) || (0,_predicates_mjs__WEBPACK_IMPORTED_MODULE_2__.isArray)(node) || (0,_predicates_mjs__WEBPACK_IMPORTED_MODULE_2__.isObject)(node));
|
|
14662
|
-
}
|
|
14910
|
+
class JsonProperty extends _JsonNode_mjs__WEBPACK_IMPORTED_MODULE_0__["default"] {
|
|
14911
|
+
static type = 'property';
|
|
14912
|
+
get key() {
|
|
14913
|
+
return this.children.find(_predicates_mjs__WEBPACK_IMPORTED_MODULE_1__.isKey);
|
|
14663
14914
|
}
|
|
14664
|
-
|
|
14915
|
+
get value() {
|
|
14916
|
+
return this.children.find(node => (0,_predicates_mjs__WEBPACK_IMPORTED_MODULE_1__.isFalse)(node) || (0,_predicates_mjs__WEBPACK_IMPORTED_MODULE_1__.isTrue)(node) || (0,_predicates_mjs__WEBPACK_IMPORTED_MODULE_1__.isNull)(node) || (0,_predicates_mjs__WEBPACK_IMPORTED_MODULE_1__.isNumber)(node) || (0,_predicates_mjs__WEBPACK_IMPORTED_MODULE_1__.isString)(node) || (0,_predicates_mjs__WEBPACK_IMPORTED_MODULE_1__.isArray)(node) || (0,_predicates_mjs__WEBPACK_IMPORTED_MODULE_1__.isObject)(node));
|
|
14917
|
+
}
|
|
14918
|
+
}
|
|
14665
14919
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (JsonProperty);
|
|
14666
14920
|
|
|
14667
14921
|
/***/ }),
|
|
@@ -14674,29 +14928,20 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
14674
14928
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
14675
14929
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
14676
14930
|
/* harmony export */ });
|
|
14677
|
-
/* harmony import */ var
|
|
14678
|
-
/* harmony import */ var
|
|
14679
|
-
/* harmony import */ var _predicates_mjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1918);
|
|
14680
|
-
|
|
14931
|
+
/* harmony import */ var _JsonNode_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9426);
|
|
14932
|
+
/* harmony import */ var _predicates_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1918);
|
|
14681
14933
|
|
|
14682
14934
|
|
|
14683
|
-
|
|
14684
|
-
|
|
14685
|
-
|
|
14686
|
-
|
|
14687
|
-
|
|
14688
|
-
|
|
14689
|
-
// @ts-ignore
|
|
14690
|
-
if (this.children.length === 1) {
|
|
14691
|
-
// @ts-ignore
|
|
14692
|
-
return this.children[0].value;
|
|
14693
|
-
}
|
|
14694
|
-
return this.children
|
|
14695
|
-
// @ts-ignore
|
|
14696
|
-
.filter(node => (0,_predicates_mjs__WEBPACK_IMPORTED_MODULE_2__.isStringContent)(node) || (0,_predicates_mjs__WEBPACK_IMPORTED_MODULE_2__.isEscapeSequence)(node)).reduce((acc, cur) => acc + cur.value, '');
|
|
14935
|
+
class JsonString extends _JsonNode_mjs__WEBPACK_IMPORTED_MODULE_0__["default"] {
|
|
14936
|
+
static type = 'string';
|
|
14937
|
+
get value() {
|
|
14938
|
+
if (this.children.length === 1) {
|
|
14939
|
+
const onlyChild = this.children[0];
|
|
14940
|
+
return onlyChild.value;
|
|
14697
14941
|
}
|
|
14942
|
+
return this.children.filter(node => (0,_predicates_mjs__WEBPACK_IMPORTED_MODULE_1__.isStringContent)(node) || (0,_predicates_mjs__WEBPACK_IMPORTED_MODULE_1__.isEscapeSequence)(node)).reduce((acc, cur) => acc + cur.value, '');
|
|
14698
14943
|
}
|
|
14699
|
-
}
|
|
14944
|
+
}
|
|
14700
14945
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (JsonString);
|
|
14701
14946
|
|
|
14702
14947
|
/***/ }),
|
|
@@ -14709,15 +14954,11 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
14709
14954
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
14710
14955
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
14711
14956
|
/* harmony export */ });
|
|
14712
|
-
/* harmony import */ var
|
|
14713
|
-
/* harmony import */ var _JsonValue_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6204);
|
|
14714
|
-
|
|
14957
|
+
/* harmony import */ var _JsonValue_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6204);
|
|
14715
14958
|
|
|
14716
|
-
|
|
14717
|
-
|
|
14718
|
-
|
|
14719
|
-
}
|
|
14720
|
-
});
|
|
14959
|
+
class JsonStringContent extends _JsonValue_mjs__WEBPACK_IMPORTED_MODULE_0__["default"] {
|
|
14960
|
+
static type = 'stringContent';
|
|
14961
|
+
}
|
|
14721
14962
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (JsonStringContent);
|
|
14722
14963
|
|
|
14723
14964
|
/***/ }),
|
|
@@ -14730,15 +14971,11 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
14730
14971
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
14731
14972
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
14732
14973
|
/* harmony export */ });
|
|
14733
|
-
/* harmony import */ var
|
|
14734
|
-
/* harmony import */ var _JsonValue_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6204);
|
|
14735
|
-
|
|
14974
|
+
/* harmony import */ var _JsonValue_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6204);
|
|
14736
14975
|
|
|
14737
|
-
|
|
14738
|
-
|
|
14739
|
-
|
|
14740
|
-
}
|
|
14741
|
-
});
|
|
14976
|
+
class JsonTrue extends _JsonValue_mjs__WEBPACK_IMPORTED_MODULE_0__["default"] {
|
|
14977
|
+
static type = 'true';
|
|
14978
|
+
}
|
|
14742
14979
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (JsonTrue);
|
|
14743
14980
|
|
|
14744
14981
|
/***/ }),
|
|
@@ -14751,23 +14988,20 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
14751
14988
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
14752
14989
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
14753
14990
|
/* harmony export */ });
|
|
14754
|
-
/* harmony import */ var
|
|
14755
|
-
/* harmony import */ var _JsonNode_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(9426);
|
|
14756
|
-
|
|
14991
|
+
/* harmony import */ var _JsonNode_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9426);
|
|
14757
14992
|
|
|
14758
|
-
|
|
14759
|
-
|
|
14760
|
-
|
|
14761
|
-
|
|
14762
|
-
|
|
14763
|
-
|
|
14764
|
-
|
|
14765
|
-
|
|
14766
|
-
|
|
14767
|
-
} = {}) {
|
|
14993
|
+
class JsonValue extends _JsonNode_mjs__WEBPACK_IMPORTED_MODULE_0__["default"] {
|
|
14994
|
+
static type = 'value';
|
|
14995
|
+
constructor({
|
|
14996
|
+
value,
|
|
14997
|
+
...rest
|
|
14998
|
+
}) {
|
|
14999
|
+
super({
|
|
15000
|
+
...rest
|
|
15001
|
+
});
|
|
14768
15002
|
this.value = value;
|
|
14769
15003
|
}
|
|
14770
|
-
}
|
|
15004
|
+
}
|
|
14771
15005
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (JsonValue);
|
|
14772
15006
|
|
|
14773
15007
|
/***/ }),
|
|
@@ -14793,18 +15027,18 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
14793
15027
|
/* harmony export */ });
|
|
14794
15028
|
/* harmony import */ var _predicates_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2771);
|
|
14795
15029
|
|
|
14796
|
-
const isDocument = _predicates_mjs__WEBPACK_IMPORTED_MODULE_0__.isNodeType
|
|
14797
|
-
const isString = _predicates_mjs__WEBPACK_IMPORTED_MODULE_0__.isNodeType
|
|
14798
|
-
const isFalse = _predicates_mjs__WEBPACK_IMPORTED_MODULE_0__.isNodeType
|
|
14799
|
-
const isTrue = _predicates_mjs__WEBPACK_IMPORTED_MODULE_0__.isNodeType
|
|
14800
|
-
const isNull = _predicates_mjs__WEBPACK_IMPORTED_MODULE_0__.isNodeType
|
|
14801
|
-
const isNumber = _predicates_mjs__WEBPACK_IMPORTED_MODULE_0__.isNodeType
|
|
14802
|
-
const isArray = _predicates_mjs__WEBPACK_IMPORTED_MODULE_0__.isNodeType
|
|
14803
|
-
const isObject = _predicates_mjs__WEBPACK_IMPORTED_MODULE_0__.isNodeType
|
|
14804
|
-
const isStringContent = _predicates_mjs__WEBPACK_IMPORTED_MODULE_0__.isNodeType
|
|
14805
|
-
const isEscapeSequence = _predicates_mjs__WEBPACK_IMPORTED_MODULE_0__.isNodeType
|
|
14806
|
-
const isProperty = _predicates_mjs__WEBPACK_IMPORTED_MODULE_0__.isNodeType
|
|
14807
|
-
const isKey = _predicates_mjs__WEBPACK_IMPORTED_MODULE_0__.isNodeType
|
|
15030
|
+
const isDocument = node => (0,_predicates_mjs__WEBPACK_IMPORTED_MODULE_0__.isNodeType)('document', node);
|
|
15031
|
+
const isString = node => (0,_predicates_mjs__WEBPACK_IMPORTED_MODULE_0__.isNodeType)('string', node);
|
|
15032
|
+
const isFalse = node => (0,_predicates_mjs__WEBPACK_IMPORTED_MODULE_0__.isNodeType)('false', node);
|
|
15033
|
+
const isTrue = node => (0,_predicates_mjs__WEBPACK_IMPORTED_MODULE_0__.isNodeType)('true', node);
|
|
15034
|
+
const isNull = node => (0,_predicates_mjs__WEBPACK_IMPORTED_MODULE_0__.isNodeType)('null', node);
|
|
15035
|
+
const isNumber = node => (0,_predicates_mjs__WEBPACK_IMPORTED_MODULE_0__.isNodeType)('number', node);
|
|
15036
|
+
const isArray = node => (0,_predicates_mjs__WEBPACK_IMPORTED_MODULE_0__.isNodeType)('array', node);
|
|
15037
|
+
const isObject = node => (0,_predicates_mjs__WEBPACK_IMPORTED_MODULE_0__.isNodeType)('object', node);
|
|
15038
|
+
const isStringContent = node => (0,_predicates_mjs__WEBPACK_IMPORTED_MODULE_0__.isNodeType)('stringContent', node);
|
|
15039
|
+
const isEscapeSequence = node => (0,_predicates_mjs__WEBPACK_IMPORTED_MODULE_0__.isNodeType)('escapeSequence', node);
|
|
15040
|
+
const isProperty = node => (0,_predicates_mjs__WEBPACK_IMPORTED_MODULE_0__.isNodeType)('property', node);
|
|
15041
|
+
const isKey = node => (0,_predicates_mjs__WEBPACK_IMPORTED_MODULE_0__.isNodeType)('key', node);
|
|
14808
15042
|
|
|
14809
15043
|
/***/ }),
|
|
14810
15044
|
|
|
@@ -14820,11 +15054,11 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
14820
15054
|
/* harmony export */ isPoint: () => (/* binding */ isPoint),
|
|
14821
15055
|
/* harmony export */ isPosition: () => (/* binding */ isPosition)
|
|
14822
15056
|
/* harmony export */ });
|
|
14823
|
-
const isNodeType = (type, node) =>
|
|
14824
|
-
const isLiteral = isNodeType
|
|
14825
|
-
const isPosition = isNodeType
|
|
14826
|
-
const isPoint = isNodeType
|
|
14827
|
-
const isParseResult = isNodeType
|
|
15057
|
+
const isNodeType = (type, node) => node != null && typeof node === 'object' && 'type' in node && node.type === type;
|
|
15058
|
+
const isLiteral = node => isNodeType('literal', node);
|
|
15059
|
+
const isPosition = node => isNodeType('position', node);
|
|
15060
|
+
const isPoint = node => isNodeType('point', node);
|
|
15061
|
+
const isParseResult = node => isNodeType('parseResult', node);
|
|
14828
15062
|
|
|
14829
15063
|
/***/ }),
|
|
14830
15064
|
|
|
@@ -15684,7 +15918,7 @@ class SourceMap extends minim__WEBPACK_IMPORTED_MODULE_0__.ArrayElement {
|
|
|
15684
15918
|
return this.children.filter(item => item.classes.contains('position')).get(1);
|
|
15685
15919
|
}
|
|
15686
15920
|
set position(position) {
|
|
15687
|
-
if (position ===
|
|
15921
|
+
if (typeof position === 'undefined') {
|
|
15688
15922
|
return;
|
|
15689
15923
|
}
|
|
15690
15924
|
const start = new minim__WEBPACK_IMPORTED_MODULE_0__.ArrayElement([position.start.row, position.start.column, position.start.char]);
|
|
@@ -16199,79 +16433,75 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
16199
16433
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
16200
16434
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
16201
16435
|
/* harmony export */ });
|
|
16202
|
-
/* harmony import */ var
|
|
16203
|
-
/* harmony import */ var
|
|
16204
|
-
/* harmony import */ var
|
|
16205
|
-
/* harmony import */ var
|
|
16206
|
-
/* harmony import */ var _predicates_index_mjs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(6903);
|
|
16207
|
-
|
|
16436
|
+
/* harmony import */ var _visitor_mjs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(2056);
|
|
16437
|
+
/* harmony import */ var _ast_ephemeral_array_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6353);
|
|
16438
|
+
/* harmony import */ var _ast_ephemeral_object_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(4575);
|
|
16439
|
+
/* harmony import */ var _predicates_index_mjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(6903);
|
|
16208
16440
|
|
|
16209
16441
|
|
|
16210
16442
|
|
|
16211
16443
|
|
|
16212
|
-
/* eslint-disable
|
|
16213
|
-
|
|
16214
|
-
|
|
16215
|
-
|
|
16216
|
-
|
|
16217
|
-
|
|
16218
|
-
this.NumberElement = function _NumberElement(element) {
|
|
16219
|
-
return element.toValue();
|
|
16220
|
-
};
|
|
16221
|
-
this.StringElement = function _StringElement(element) {
|
|
16222
|
-
return element.toValue();
|
|
16223
|
-
};
|
|
16224
|
-
this.NullElement = function _NullElement() {
|
|
16225
|
-
return null;
|
|
16226
|
-
};
|
|
16227
|
-
this.ObjectElement = {
|
|
16228
|
-
enter(element) {
|
|
16229
|
-
if (references.has(element)) {
|
|
16230
|
-
return references.get(element).toReference();
|
|
16444
|
+
/* eslint-disable class-methods-use-this */
|
|
16445
|
+
class Visitor {
|
|
16446
|
+
ObjectElement = {
|
|
16447
|
+
enter: element => {
|
|
16448
|
+
if (this.references.has(element)) {
|
|
16449
|
+
return this.references.get(element).toReference();
|
|
16231
16450
|
}
|
|
16232
|
-
const ephemeral = new
|
|
16233
|
-
references.set(element, ephemeral);
|
|
16451
|
+
const ephemeral = new _ast_ephemeral_object_mjs__WEBPACK_IMPORTED_MODULE_0__["default"](element.content);
|
|
16452
|
+
this.references.set(element, ephemeral);
|
|
16234
16453
|
return ephemeral;
|
|
16235
16454
|
}
|
|
16236
16455
|
};
|
|
16237
|
-
|
|
16238
|
-
leave
|
|
16456
|
+
EphemeralObject = {
|
|
16457
|
+
leave: ephemeral => {
|
|
16239
16458
|
return ephemeral.toObject();
|
|
16240
16459
|
}
|
|
16241
16460
|
};
|
|
16242
|
-
|
|
16243
|
-
enter
|
|
16461
|
+
MemberElement = {
|
|
16462
|
+
enter: element => {
|
|
16244
16463
|
return [element.key, element.value];
|
|
16245
16464
|
}
|
|
16246
16465
|
};
|
|
16247
|
-
|
|
16248
|
-
enter
|
|
16249
|
-
if (references.has(element)) {
|
|
16250
|
-
return references.get(element).toReference();
|
|
16466
|
+
ArrayElement = {
|
|
16467
|
+
enter: element => {
|
|
16468
|
+
if (this.references.has(element)) {
|
|
16469
|
+
return this.references.get(element).toReference();
|
|
16251
16470
|
}
|
|
16252
|
-
const ephemeral = new
|
|
16253
|
-
references.set(element, ephemeral);
|
|
16471
|
+
const ephemeral = new _ast_ephemeral_array_mjs__WEBPACK_IMPORTED_MODULE_1__["default"](element.content);
|
|
16472
|
+
this.references.set(element, ephemeral);
|
|
16254
16473
|
return ephemeral;
|
|
16255
16474
|
}
|
|
16256
16475
|
};
|
|
16257
|
-
|
|
16258
|
-
leave
|
|
16476
|
+
EphemeralArray = {
|
|
16477
|
+
leave: ephemeral => {
|
|
16259
16478
|
return ephemeral.toArray();
|
|
16260
16479
|
}
|
|
16261
16480
|
};
|
|
16262
|
-
|
|
16263
|
-
|
|
16264
|
-
|
|
16265
|
-
const serializer = element => {
|
|
16266
|
-
if (!(0,_predicates_index_mjs__WEBPACK_IMPORTED_MODULE_3__.isElement)(element)) return element;
|
|
16267
|
-
|
|
16268
|
-
// shortcut optimization for certain element types
|
|
16269
|
-
if ((0,_predicates_index_mjs__WEBPACK_IMPORTED_MODULE_3__.isStringElement)(element) || (0,_predicates_index_mjs__WEBPACK_IMPORTED_MODULE_3__.isNumberElement)(element) || (0,_predicates_index_mjs__WEBPACK_IMPORTED_MODULE_3__.isBooleanElement)(element) || (0,_predicates_index_mjs__WEBPACK_IMPORTED_MODULE_3__.isNullElement)(element)) {
|
|
16481
|
+
references = new WeakMap();
|
|
16482
|
+
BooleanElement(element) {
|
|
16270
16483
|
return element.toValue();
|
|
16271
16484
|
}
|
|
16272
|
-
|
|
16273
|
-
|
|
16274
|
-
|
|
16485
|
+
NumberElement(element) {
|
|
16486
|
+
return element.toValue();
|
|
16487
|
+
}
|
|
16488
|
+
StringElement(element) {
|
|
16489
|
+
return element.toValue();
|
|
16490
|
+
}
|
|
16491
|
+
NullElement() {
|
|
16492
|
+
return null;
|
|
16493
|
+
}
|
|
16494
|
+
}
|
|
16495
|
+
const serializer = element => {
|
|
16496
|
+
if (!(0,_predicates_index_mjs__WEBPACK_IMPORTED_MODULE_2__.isElement)(element)) return element;
|
|
16497
|
+
|
|
16498
|
+
// shortcut optimization for certain element types
|
|
16499
|
+
if ((0,_predicates_index_mjs__WEBPACK_IMPORTED_MODULE_2__.isStringElement)(element) || (0,_predicates_index_mjs__WEBPACK_IMPORTED_MODULE_2__.isNumberElement)(element) || (0,_predicates_index_mjs__WEBPACK_IMPORTED_MODULE_2__.isBooleanElement)(element) || (0,_predicates_index_mjs__WEBPACK_IMPORTED_MODULE_2__.isNullElement)(element)) {
|
|
16500
|
+
return element.toValue();
|
|
16501
|
+
}
|
|
16502
|
+
return (0,_visitor_mjs__WEBPACK_IMPORTED_MODULE_3__.visit)(element, new Visitor());
|
|
16503
|
+
};
|
|
16504
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (serializer);
|
|
16275
16505
|
|
|
16276
16506
|
/***/ }),
|
|
16277
16507
|
|
|
@@ -16343,23 +16573,21 @@ visit[Symbol.for('nodejs.util.promisify.custom')] = async (root, {
|
|
|
16343
16573
|
"use strict";
|
|
16344
16574
|
__webpack_require__.r(__webpack_exports__);
|
|
16345
16575
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
16346
|
-
/* harmony export */ BREAK: () => (/* reexport safe */
|
|
16576
|
+
/* harmony export */ BREAK: () => (/* reexport safe */ _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_0__.BREAK),
|
|
16347
16577
|
/* harmony export */ PredicateVisitor: () => (/* binding */ PredicateVisitor),
|
|
16348
16578
|
/* harmony export */ cloneNode: () => (/* binding */ cloneNode),
|
|
16349
16579
|
/* harmony export */ getNodeType: () => (/* binding */ getNodeType),
|
|
16350
16580
|
/* harmony export */ isNode: () => (/* binding */ isNode),
|
|
16351
16581
|
/* harmony export */ keyMapDefault: () => (/* binding */ keyMapDefault),
|
|
16352
|
-
/* harmony export */ mergeAllVisitors: () => (/* reexport safe */
|
|
16582
|
+
/* harmony export */ mergeAllVisitors: () => (/* reexport safe */ _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_0__.mergeAll),
|
|
16353
16583
|
/* harmony export */ visit: () => (/* binding */ visit)
|
|
16354
16584
|
/* harmony export */ });
|
|
16355
|
-
/* harmony import */ var
|
|
16356
|
-
/* harmony import */ var
|
|
16357
|
-
/* harmony import */ var
|
|
16358
|
-
/* harmony import */ var
|
|
16359
|
-
/* harmony import */ var
|
|
16360
|
-
/* harmony import */ var
|
|
16361
|
-
/* harmony import */ var _clone_index_mjs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(2434);
|
|
16362
|
-
|
|
16585
|
+
/* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(4205);
|
|
16586
|
+
/* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(5561);
|
|
16587
|
+
/* harmony import */ var ramda_adjunct__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(5992);
|
|
16588
|
+
/* harmony import */ var _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1394);
|
|
16589
|
+
/* harmony import */ var _predicates_index_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6903);
|
|
16590
|
+
/* harmony import */ var _clone_index_mjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(2434);
|
|
16363
16591
|
|
|
16364
16592
|
|
|
16365
16593
|
|
|
@@ -16376,19 +16604,19 @@ const getNodeType = element => {
|
|
|
16376
16604
|
*
|
|
16377
16605
|
* There is a problem with naming visitor methods described here: https://github.com/babel/babel/discussions/12874
|
|
16378
16606
|
*/
|
|
16379
|
-
return (0,
|
|
16607
|
+
return (0,_predicates_index_mjs__WEBPACK_IMPORTED_MODULE_1__.isObjectElement)(element) ? 'ObjectElement' : (0,_predicates_index_mjs__WEBPACK_IMPORTED_MODULE_1__.isArrayElement)(element) ? 'ArrayElement' : (0,_predicates_index_mjs__WEBPACK_IMPORTED_MODULE_1__.isMemberElement)(element) ? 'MemberElement' : (0,_predicates_index_mjs__WEBPACK_IMPORTED_MODULE_1__.isStringElement)(element) ? 'StringElement' : (0,_predicates_index_mjs__WEBPACK_IMPORTED_MODULE_1__.isBooleanElement)(element) ? 'BooleanElement' : (0,_predicates_index_mjs__WEBPACK_IMPORTED_MODULE_1__.isNumberElement)(element) ? 'NumberElement' : (0,_predicates_index_mjs__WEBPACK_IMPORTED_MODULE_1__.isNullElement)(element) ? 'NullElement' : (0,_predicates_index_mjs__WEBPACK_IMPORTED_MODULE_1__.isLinkElement)(element) ? 'LinkElement' : (0,_predicates_index_mjs__WEBPACK_IMPORTED_MODULE_1__.isRefElement)(element) ? 'RefElement' : undefined;
|
|
16380
16608
|
};
|
|
16381
16609
|
|
|
16382
16610
|
// cloneNode :: a -> a
|
|
16383
16611
|
const cloneNode = node => {
|
|
16384
|
-
if ((0,
|
|
16385
|
-
return (0,
|
|
16612
|
+
if ((0,_predicates_index_mjs__WEBPACK_IMPORTED_MODULE_1__.isElement)(node)) {
|
|
16613
|
+
return (0,_clone_index_mjs__WEBPACK_IMPORTED_MODULE_2__.cloneShallow)(node);
|
|
16386
16614
|
}
|
|
16387
|
-
return (0,
|
|
16615
|
+
return (0,_swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_0__.cloneNode)(node);
|
|
16388
16616
|
};
|
|
16389
16617
|
|
|
16390
16618
|
// isNode :: Node -> Boolean
|
|
16391
|
-
const isNode = (0,
|
|
16619
|
+
const isNode = (0,ramda__WEBPACK_IMPORTED_MODULE_3__["default"])(getNodeType, ramda_adjunct__WEBPACK_IMPORTED_MODULE_4__["default"]);
|
|
16392
16620
|
const keyMapDefault = {
|
|
16393
16621
|
ObjectElement: ['content'],
|
|
16394
16622
|
ArrayElement: ['content'],
|
|
@@ -16404,38 +16632,25 @@ const keyMapDefault = {
|
|
|
16404
16632
|
ParseResultElement: ['content'],
|
|
16405
16633
|
SourceMap: ['content']
|
|
16406
16634
|
};
|
|
16407
|
-
|
|
16408
|
-
|
|
16409
|
-
|
|
16410
|
-
|
|
16411
|
-
|
|
16412
|
-
returnOnFalse: undefined
|
|
16413
|
-
},
|
|
16414
|
-
init({
|
|
16415
|
-
// @ts-ignore
|
|
16416
|
-
predicate = this.predicate,
|
|
16417
|
-
// @ts-ignore
|
|
16418
|
-
returnOnTrue = this.returnOnTrue,
|
|
16419
|
-
// @ts-ignore
|
|
16420
|
-
returnOnFalse = this.returnOnFalse
|
|
16635
|
+
class PredicateVisitor {
|
|
16636
|
+
constructor({
|
|
16637
|
+
predicate = ramda__WEBPACK_IMPORTED_MODULE_5__["default"],
|
|
16638
|
+
returnOnTrue,
|
|
16639
|
+
returnOnFalse
|
|
16421
16640
|
} = {}) {
|
|
16422
16641
|
this.result = [];
|
|
16423
16642
|
this.predicate = predicate;
|
|
16424
16643
|
this.returnOnTrue = returnOnTrue;
|
|
16425
16644
|
this.returnOnFalse = returnOnFalse;
|
|
16426
|
-
}
|
|
16427
|
-
|
|
16428
|
-
|
|
16429
|
-
|
|
16430
|
-
|
|
16431
|
-
return this.returnOnTrue;
|
|
16432
|
-
}
|
|
16433
|
-
return this.returnOnFalse;
|
|
16645
|
+
}
|
|
16646
|
+
enter(element) {
|
|
16647
|
+
if (this.predicate(element)) {
|
|
16648
|
+
this.result.push(element);
|
|
16649
|
+
return this.returnOnTrue;
|
|
16434
16650
|
}
|
|
16651
|
+
return this.returnOnFalse;
|
|
16435
16652
|
}
|
|
16436
|
-
}
|
|
16437
|
-
|
|
16438
|
-
// @ts-ignore
|
|
16653
|
+
}
|
|
16439
16654
|
const visit = (root,
|
|
16440
16655
|
// @ts-ignore
|
|
16441
16656
|
visitor, {
|
|
@@ -16443,7 +16658,7 @@ visitor, {
|
|
|
16443
16658
|
...rest
|
|
16444
16659
|
} = {}) => {
|
|
16445
16660
|
// @ts-ignore
|
|
16446
|
-
return (0,
|
|
16661
|
+
return (0,_swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_0__.visit)(root, visitor, {
|
|
16447
16662
|
// @ts-ignore
|
|
16448
16663
|
keyMap,
|
|
16449
16664
|
// @ts-ignore
|
|
@@ -16462,7 +16677,7 @@ visitor, {
|
|
|
16462
16677
|
...rest
|
|
16463
16678
|
} = {}) => {
|
|
16464
16679
|
// @ts-ignore
|
|
16465
|
-
return
|
|
16680
|
+
return _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_0__.visit[Symbol.for('nodejs.util.promisify.custom')](root, visitor, {
|
|
16466
16681
|
// @ts-ignore
|
|
16467
16682
|
keyMap,
|
|
16468
16683
|
// @ts-ignore
|
|
@@ -17142,7 +17357,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
17142
17357
|
/* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(5416);
|
|
17143
17358
|
/* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(821);
|
|
17144
17359
|
/* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(7541);
|
|
17145
|
-
/* harmony import */ var
|
|
17360
|
+
/* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(9154);
|
|
17146
17361
|
/* harmony import */ var _specification_mjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(4899);
|
|
17147
17362
|
/* harmony import */ var _traversal_visitor_mjs__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(2364);
|
|
17148
17363
|
/* harmony import */ var _toolbox_mjs__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(3628);
|
|
@@ -17163,7 +17378,9 @@ const refract = (value, {
|
|
|
17163
17378
|
* We don't allow consumers to hook into this translation.
|
|
17164
17379
|
* Though we allow consumers to define their onw plugins on already transformed ApiDOM.
|
|
17165
17380
|
*/
|
|
17166
|
-
const
|
|
17381
|
+
const RootVisitorClass = (0,ramda__WEBPACK_IMPORTED_MODULE_3__["default"])(specPath, resolvedSpec);
|
|
17382
|
+
const rootVisitor = new RootVisitorClass();
|
|
17383
|
+
|
|
17167
17384
|
// @ts-ignore
|
|
17168
17385
|
(0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_4__.visit)(element, rootVisitor, {
|
|
17169
17386
|
state: {
|
|
@@ -17235,7 +17452,7 @@ _elements_Principle_mjs__WEBPACK_IMPORTED_MODULE_3__["default"].refract = (0,_in
|
|
|
17235
17452
|
_elements_Requirement_mjs__WEBPACK_IMPORTED_MODULE_4__["default"].refract = (0,_index_mjs__WEBPACK_IMPORTED_MODULE_1__.createRefractor)(['visitors', 'document', 'objects', 'Requirement', '$visitor']);
|
|
17236
17453
|
_elements_RequirementLevel_mjs__WEBPACK_IMPORTED_MODULE_5__["default"].refract = (0,_index_mjs__WEBPACK_IMPORTED_MODULE_1__.createRefractor)(['visitors', 'document', 'objects', 'RequirementLevel', '$visitor']);
|
|
17237
17454
|
_elements_Scenario_mjs__WEBPACK_IMPORTED_MODULE_6__["default"].refract = (0,_index_mjs__WEBPACK_IMPORTED_MODULE_1__.createRefractor)(['visitors', 'document', 'objects', 'Scenario', '$visitor']);
|
|
17238
|
-
_elements_Standard_mjs__WEBPACK_IMPORTED_MODULE_7__["default"].refract = (0,_index_mjs__WEBPACK_IMPORTED_MODULE_1__.createRefractor)(['visitors', 'document', 'objects', '
|
|
17455
|
+
_elements_Standard_mjs__WEBPACK_IMPORTED_MODULE_7__["default"].refract = (0,_index_mjs__WEBPACK_IMPORTED_MODULE_1__.createRefractor)(['visitors', 'document', 'objects', 'Standard', '$visitor']);
|
|
17239
17456
|
_elements_StandardIdentifier_mjs__WEBPACK_IMPORTED_MODULE_8__["default"].refract = (0,_index_mjs__WEBPACK_IMPORTED_MODULE_1__.createRefractor)(['visitors', 'document', 'objects', 'StandardIdentifier', '$visitor']);
|
|
17240
17457
|
|
|
17241
17458
|
|
|
@@ -17382,8 +17599,12 @@ const specification = {
|
|
|
17382
17599
|
follows: _visitors_api_design_systems_requirement_FollowsVisitor_mjs__WEBPACK_IMPORTED_MODULE_22__["default"]
|
|
17383
17600
|
}
|
|
17384
17601
|
},
|
|
17385
|
-
StandardIdentifier:
|
|
17386
|
-
|
|
17602
|
+
StandardIdentifier: {
|
|
17603
|
+
$visitor: _visitors_api_design_systems_standard_identifier_index_mjs__WEBPACK_IMPORTED_MODULE_23__["default"]
|
|
17604
|
+
},
|
|
17605
|
+
RequirementLevel: {
|
|
17606
|
+
$visitor: _visitors_api_design_systems_requirement_level_index_mjs__WEBPACK_IMPORTED_MODULE_24__["default"]
|
|
17607
|
+
}
|
|
17387
17608
|
}
|
|
17388
17609
|
}
|
|
17389
17610
|
}
|
|
@@ -17430,11 +17651,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
17430
17651
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
17431
17652
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
17432
17653
|
/* harmony export */ });
|
|
17433
|
-
/* harmony import */ var
|
|
17434
|
-
/* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
|
|
17435
|
-
/* harmony import */ var
|
|
17436
|
-
/* harmony import */ var _Visitor_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(592);
|
|
17437
|
-
|
|
17654
|
+
/* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(2434);
|
|
17655
|
+
/* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1394);
|
|
17656
|
+
/* harmony import */ var _Visitor_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(592);
|
|
17438
17657
|
|
|
17439
17658
|
|
|
17440
17659
|
/**
|
|
@@ -17443,14 +17662,12 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
17443
17662
|
* different Element is provided FallBackVisitor is responsible to assigning
|
|
17444
17663
|
* this Element as current element.
|
|
17445
17664
|
*/
|
|
17446
|
-
|
|
17447
|
-
|
|
17448
|
-
|
|
17449
|
-
|
|
17450
|
-
return _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_3__.BREAK;
|
|
17451
|
-
}
|
|
17665
|
+
class FallbackVisitor extends _Visitor_mjs__WEBPACK_IMPORTED_MODULE_0__["default"] {
|
|
17666
|
+
enter(element) {
|
|
17667
|
+
this.element = (0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_1__.cloneDeep)(element);
|
|
17668
|
+
return _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_2__.BREAK;
|
|
17452
17669
|
}
|
|
17453
|
-
}
|
|
17670
|
+
}
|
|
17454
17671
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (FallbackVisitor);
|
|
17455
17672
|
|
|
17456
17673
|
/***/ }),
|
|
@@ -17463,16 +17680,15 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
17463
17680
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
17464
17681
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
17465
17682
|
/* harmony export */ });
|
|
17466
|
-
/* harmony import */ var
|
|
17467
|
-
/* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
|
|
17468
|
-
/* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
|
|
17469
|
-
/* harmony import */ var
|
|
17470
|
-
/* harmony import */ var
|
|
17471
|
-
/* harmony import */ var
|
|
17472
|
-
/* harmony import */ var
|
|
17473
|
-
/* harmony import */ var
|
|
17474
|
-
/* harmony import */ var
|
|
17475
|
-
/* harmony import */ var _Visitor_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(592);
|
|
17683
|
+
/* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(3060);
|
|
17684
|
+
/* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(9154);
|
|
17685
|
+
/* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(4465);
|
|
17686
|
+
/* harmony import */ var ramda_adjunct__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(9028);
|
|
17687
|
+
/* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(2434);
|
|
17688
|
+
/* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(821);
|
|
17689
|
+
/* harmony import */ var _traversal_visitor_mjs__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(2364);
|
|
17690
|
+
/* harmony import */ var _Visitor_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(592);
|
|
17691
|
+
/* harmony import */ var _FallbackVisitor_mjs__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(7447);
|
|
17476
17692
|
|
|
17477
17693
|
|
|
17478
17694
|
|
|
@@ -17480,72 +17696,65 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
17480
17696
|
|
|
17481
17697
|
|
|
17482
17698
|
/**
|
|
17483
|
-
* This is a base
|
|
17699
|
+
* This is a base class for every visitor that does
|
|
17484
17700
|
* internal look-ups to retrieve other child visitors.
|
|
17485
17701
|
*/
|
|
17486
|
-
|
|
17487
|
-
|
|
17488
|
-
|
|
17489
|
-
|
|
17490
|
-
|
|
17491
|
-
|
|
17492
|
-
|
|
17493
|
-
|
|
17494
|
-
}
|
|
17495
|
-
|
|
17496
|
-
|
|
17497
|
-
|
|
17498
|
-
|
|
17499
|
-
|
|
17500
|
-
|
|
17501
|
-
|
|
17502
|
-
|
|
17503
|
-
|
|
17504
|
-
|
|
17505
|
-
|
|
17506
|
-
|
|
17507
|
-
|
|
17508
|
-
|
|
17509
|
-
|
|
17510
|
-
|
|
17511
|
-
|
|
17512
|
-
|
|
17513
|
-
|
|
17514
|
-
|
|
17515
|
-
const passingOpts = this.retrievePassingOptions();
|
|
17516
|
-
return this.retrieveVisitor(specPath)({
|
|
17517
|
-
...passingOpts,
|
|
17518
|
-
...options
|
|
17519
|
-
});
|
|
17520
|
-
},
|
|
17521
|
-
toRefractedElement(specPath, element, options = {}) {
|
|
17522
|
-
/**
|
|
17523
|
-
* This is `Visitor shortcut`: mechanism for short circuiting the traversal and replacing
|
|
17524
|
-
* it by basic node cloning.
|
|
17525
|
-
*
|
|
17526
|
-
* Visiting the element is equivalent to cloning it if the prototype of a visitor
|
|
17527
|
-
* is the same as the prototype of FallbackVisitor. If that's the case, we can avoid
|
|
17528
|
-
* bootstrapping the traversal cycle for fields that don't require any special visiting.
|
|
17529
|
-
*/
|
|
17530
|
-
const visitor = this.retrieveVisitorInstance(specPath, options);
|
|
17531
|
-
const visitorPrototype = Object.getPrototypeOf(visitor);
|
|
17532
|
-
if ((0,ramda_adjunct__WEBPACK_IMPORTED_MODULE_6__["default"])(this.fallbackVisitorPrototype)) {
|
|
17533
|
-
this.fallbackVisitorPrototype = Object.getPrototypeOf(this.retrieveVisitorInstance(['value']));
|
|
17534
|
-
}
|
|
17535
|
-
if (this.fallbackVisitorPrototype === visitorPrototype) {
|
|
17536
|
-
return (0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_7__.cloneDeep)(element);
|
|
17537
|
-
}
|
|
17702
|
+
class SpecificationVisitor extends _Visitor_mjs__WEBPACK_IMPORTED_MODULE_0__["default"] {
|
|
17703
|
+
passingOptionsNames = ['specObj'];
|
|
17704
|
+
constructor(options = {}) {
|
|
17705
|
+
super();
|
|
17706
|
+
Object.assign(this, options);
|
|
17707
|
+
}
|
|
17708
|
+
retrievePassingOptions() {
|
|
17709
|
+
return (0,ramda__WEBPACK_IMPORTED_MODULE_1__["default"])(this.passingOptionsNames, this);
|
|
17710
|
+
}
|
|
17711
|
+
retrieveFixedFields(specPath) {
|
|
17712
|
+
const fixedFields = (0,ramda__WEBPACK_IMPORTED_MODULE_2__["default"])(['visitors', ...specPath, 'fixedFields'], this.specObj);
|
|
17713
|
+
if (typeof fixedFields === 'object' && fixedFields !== null) {
|
|
17714
|
+
return Object.keys(fixedFields);
|
|
17715
|
+
}
|
|
17716
|
+
return [];
|
|
17717
|
+
}
|
|
17718
|
+
retrieveVisitor(specPath) {
|
|
17719
|
+
if ((0,ramda__WEBPACK_IMPORTED_MODULE_3__["default"])(ramda_adjunct__WEBPACK_IMPORTED_MODULE_4__["default"], ['visitors', ...specPath], this.specObj)) {
|
|
17720
|
+
return (0,ramda__WEBPACK_IMPORTED_MODULE_2__["default"])(['visitors', ...specPath], this.specObj);
|
|
17721
|
+
}
|
|
17722
|
+
return (0,ramda__WEBPACK_IMPORTED_MODULE_2__["default"])(['visitors', ...specPath, '$visitor'], this.specObj);
|
|
17723
|
+
}
|
|
17724
|
+
retrieveVisitorInstance(specPath, options = {}) {
|
|
17725
|
+
const passingOpts = this.retrievePassingOptions();
|
|
17726
|
+
const VisitorClz = this.retrieveVisitor(specPath);
|
|
17727
|
+
const visitorOpts = {
|
|
17728
|
+
...passingOpts,
|
|
17729
|
+
...options
|
|
17730
|
+
};
|
|
17538
17731
|
|
|
17539
|
-
|
|
17540
|
-
|
|
17541
|
-
|
|
17542
|
-
|
|
17543
|
-
|
|
17544
|
-
|
|
17545
|
-
|
|
17732
|
+
// @ts-ignore
|
|
17733
|
+
return new VisitorClz(visitorOpts);
|
|
17734
|
+
}
|
|
17735
|
+
toRefractedElement(specPath, element, options = {}) {
|
|
17736
|
+
/**
|
|
17737
|
+
* This is `Visitor shortcut`: mechanism for short circuiting the traversal and replacing
|
|
17738
|
+
* it by basic node cloning.
|
|
17739
|
+
*
|
|
17740
|
+
* Visiting the element is equivalent to cloning it if the prototype of a visitor
|
|
17741
|
+
* is the same as the prototype of FallbackVisitor. If that's the case, we can avoid
|
|
17742
|
+
* bootstrapping the traversal cycle for fields that don't require any special visiting.
|
|
17743
|
+
*/
|
|
17744
|
+
const visitor = this.retrieveVisitorInstance(specPath, options);
|
|
17745
|
+
if (visitor instanceof _FallbackVisitor_mjs__WEBPACK_IMPORTED_MODULE_5__["default"] && (visitor === null || visitor === void 0 ? void 0 : visitor.constructor) === _FallbackVisitor_mjs__WEBPACK_IMPORTED_MODULE_5__["default"]) {
|
|
17746
|
+
return (0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_6__.cloneDeep)(element);
|
|
17546
17747
|
}
|
|
17748
|
+
|
|
17749
|
+
// @ts-ignore
|
|
17750
|
+
(0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_7__.visit)(element, visitor, {
|
|
17751
|
+
keyMap: _traversal_visitor_mjs__WEBPACK_IMPORTED_MODULE_8__.keyMap,
|
|
17752
|
+
...options,
|
|
17753
|
+
nodeTypeGetter: _traversal_visitor_mjs__WEBPACK_IMPORTED_MODULE_8__.getNodeType
|
|
17754
|
+
});
|
|
17755
|
+
return visitor.element;
|
|
17547
17756
|
}
|
|
17548
|
-
}
|
|
17757
|
+
}
|
|
17549
17758
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (SpecificationVisitor);
|
|
17550
17759
|
|
|
17551
17760
|
/***/ }),
|
|
@@ -17558,23 +17767,17 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
17558
17767
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
17559
17768
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
17560
17769
|
/* harmony export */ });
|
|
17561
|
-
/* harmony import */ var
|
|
17562
|
-
/* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6903);
|
|
17563
|
-
|
|
17770
|
+
/* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6903);
|
|
17564
17771
|
|
|
17565
|
-
|
|
17566
|
-
|
|
17567
|
-
|
|
17568
|
-
|
|
17569
|
-
|
|
17570
|
-
|
|
17571
|
-
// copy sourcemaps
|
|
17572
|
-
if ((0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_1__.hasElementSourceMap)(from)) {
|
|
17573
|
-
to.meta.set('sourceMap', from.meta.get('sourceMap'));
|
|
17574
|
-
}
|
|
17772
|
+
class Visitor {
|
|
17773
|
+
// eslint-disable-next-line class-methods-use-this
|
|
17774
|
+
copyMetaAndAttributes(from, to) {
|
|
17775
|
+
// copy sourcemaps
|
|
17776
|
+
if ((0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_0__.hasElementSourceMap)(from)) {
|
|
17777
|
+
to.meta.set('sourceMap', from.meta.get('sourceMap'));
|
|
17575
17778
|
}
|
|
17576
17779
|
}
|
|
17577
|
-
}
|
|
17780
|
+
}
|
|
17578
17781
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Visitor);
|
|
17579
17782
|
|
|
17580
17783
|
/***/ }),
|
|
@@ -17617,8 +17820,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
17617
17820
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
17618
17821
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
17619
17822
|
/* harmony export */ });
|
|
17620
|
-
/* harmony import */ var stampit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6591);
|
|
17621
17823
|
/* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(6360);
|
|
17824
|
+
/* harmony import */ var ts_mixer__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6252);
|
|
17622
17825
|
/* harmony import */ var _elements_Info_mjs__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(2189);
|
|
17623
17826
|
/* harmony import */ var _FallbackVisitor_mjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7447);
|
|
17624
17827
|
/* harmony import */ var _generics_FixedFieldsVisitor_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(4627);
|
|
@@ -17627,14 +17830,13 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
17627
17830
|
|
|
17628
17831
|
|
|
17629
17832
|
|
|
17630
|
-
|
|
17631
|
-
|
|
17632
|
-
|
|
17633
|
-
|
|
17634
|
-
init() {
|
|
17833
|
+
class InfoVisitor extends (0,ts_mixer__WEBPACK_IMPORTED_MODULE_0__.Mixin)(_generics_FixedFieldsVisitor_mjs__WEBPACK_IMPORTED_MODULE_1__["default"], _FallbackVisitor_mjs__WEBPACK_IMPORTED_MODULE_2__["default"]) {
|
|
17834
|
+
constructor(options = {}) {
|
|
17835
|
+
super(options);
|
|
17836
|
+
this.specPath = (0,ramda__WEBPACK_IMPORTED_MODULE_3__["default"])(['document', 'objects', 'Info']);
|
|
17635
17837
|
this.element = new _elements_Info_mjs__WEBPACK_IMPORTED_MODULE_4__["default"]();
|
|
17636
17838
|
}
|
|
17637
|
-
}
|
|
17839
|
+
}
|
|
17638
17840
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (InfoVisitor);
|
|
17639
17841
|
|
|
17640
17842
|
/***/ }),
|
|
@@ -17647,7 +17849,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
17647
17849
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
17648
17850
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
17649
17851
|
/* harmony export */ });
|
|
17650
|
-
/* harmony import */ var
|
|
17852
|
+
/* harmony import */ var ts_mixer__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6252);
|
|
17651
17853
|
/* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(8355);
|
|
17652
17854
|
/* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(1394);
|
|
17653
17855
|
/* harmony import */ var _FallbackVisitor_mjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7447);
|
|
@@ -17656,23 +17858,22 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
17656
17858
|
|
|
17657
17859
|
|
|
17658
17860
|
|
|
17659
|
-
|
|
17660
|
-
|
|
17861
|
+
class PrinciplesVisitor extends (0,ts_mixer__WEBPACK_IMPORTED_MODULE_0__.Mixin)(_SpecificationVisitor_mjs__WEBPACK_IMPORTED_MODULE_1__["default"], _FallbackVisitor_mjs__WEBPACK_IMPORTED_MODULE_2__["default"]) {
|
|
17862
|
+
constructor(options = {}) {
|
|
17863
|
+
super(options);
|
|
17661
17864
|
this.element = new _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_3__.ArrayElement();
|
|
17662
17865
|
this.element.classes.push('main-principles');
|
|
17663
|
-
},
|
|
17664
|
-
methods: {
|
|
17665
|
-
ArrayElement(arrayElement) {
|
|
17666
|
-
arrayElement.forEach(item => {
|
|
17667
|
-
const specPath = ['document', 'objects', 'Principle'];
|
|
17668
|
-
const element = this.toRefractedElement(specPath, item);
|
|
17669
|
-
this.element.push(element);
|
|
17670
|
-
});
|
|
17671
|
-
this.copyMetaAndAttributes(arrayElement, this.element);
|
|
17672
|
-
return _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_4__.BREAK;
|
|
17673
|
-
}
|
|
17674
17866
|
}
|
|
17675
|
-
|
|
17867
|
+
ArrayElement(arrayElement) {
|
|
17868
|
+
arrayElement.forEach(item => {
|
|
17869
|
+
const specPath = ['document', 'objects', 'Principle'];
|
|
17870
|
+
const element = this.toRefractedElement(specPath, item);
|
|
17871
|
+
this.element.push(element);
|
|
17872
|
+
});
|
|
17873
|
+
this.copyMetaAndAttributes(arrayElement, this.element);
|
|
17874
|
+
return _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_4__.BREAK;
|
|
17875
|
+
}
|
|
17876
|
+
}
|
|
17676
17877
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (PrinciplesVisitor);
|
|
17677
17878
|
|
|
17678
17879
|
/***/ }),
|
|
@@ -17685,7 +17886,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
17685
17886
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
17686
17887
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
17687
17888
|
/* harmony export */ });
|
|
17688
|
-
/* harmony import */ var
|
|
17889
|
+
/* harmony import */ var ts_mixer__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6252);
|
|
17689
17890
|
/* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(8355);
|
|
17690
17891
|
/* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(1394);
|
|
17691
17892
|
/* harmony import */ var _FallbackVisitor_mjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7447);
|
|
@@ -17694,23 +17895,22 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
17694
17895
|
|
|
17695
17896
|
|
|
17696
17897
|
|
|
17697
|
-
|
|
17698
|
-
|
|
17898
|
+
class ScenariosVisitor extends (0,ts_mixer__WEBPACK_IMPORTED_MODULE_0__.Mixin)(_SpecificationVisitor_mjs__WEBPACK_IMPORTED_MODULE_1__["default"], _FallbackVisitor_mjs__WEBPACK_IMPORTED_MODULE_2__["default"]) {
|
|
17899
|
+
constructor(options = {}) {
|
|
17900
|
+
super(options);
|
|
17699
17901
|
this.element = new _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_3__.ArrayElement();
|
|
17700
17902
|
this.element.classes.push('main-scenarios');
|
|
17701
|
-
},
|
|
17702
|
-
methods: {
|
|
17703
|
-
ArrayElement(arrayElement) {
|
|
17704
|
-
arrayElement.forEach(item => {
|
|
17705
|
-
const specPath = ['document', 'objects', 'Scenario'];
|
|
17706
|
-
const element = this.toRefractedElement(specPath, item);
|
|
17707
|
-
this.element.push(element);
|
|
17708
|
-
});
|
|
17709
|
-
this.copyMetaAndAttributes(arrayElement, this.element);
|
|
17710
|
-
return _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_4__.BREAK;
|
|
17711
|
-
}
|
|
17712
17903
|
}
|
|
17713
|
-
|
|
17904
|
+
ArrayElement(arrayElement) {
|
|
17905
|
+
arrayElement.forEach(item => {
|
|
17906
|
+
const specPath = ['document', 'objects', 'Scenario'];
|
|
17907
|
+
const element = this.toRefractedElement(specPath, item);
|
|
17908
|
+
this.element.push(element);
|
|
17909
|
+
});
|
|
17910
|
+
this.copyMetaAndAttributes(arrayElement, this.element);
|
|
17911
|
+
return _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_4__.BREAK;
|
|
17912
|
+
}
|
|
17913
|
+
}
|
|
17714
17914
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (ScenariosVisitor);
|
|
17715
17915
|
|
|
17716
17916
|
/***/ }),
|
|
@@ -17723,32 +17923,31 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
17723
17923
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
17724
17924
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
17725
17925
|
/* harmony export */ });
|
|
17726
|
-
/* harmony import */ var
|
|
17926
|
+
/* harmony import */ var ts_mixer__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6252);
|
|
17727
17927
|
/* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(8355);
|
|
17728
17928
|
/* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(1394);
|
|
17729
|
-
/* harmony import */ var
|
|
17730
|
-
/* harmony import */ var
|
|
17929
|
+
/* harmony import */ var _FallbackVisitor_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(7447);
|
|
17930
|
+
/* harmony import */ var _SpecificationVisitor_mjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(9894);
|
|
17731
17931
|
|
|
17732
17932
|
|
|
17733
17933
|
|
|
17734
17934
|
|
|
17735
|
-
|
|
17736
|
-
|
|
17935
|
+
class StandardsVisitor extends (0,ts_mixer__WEBPACK_IMPORTED_MODULE_0__.Mixin)(_FallbackVisitor_mjs__WEBPACK_IMPORTED_MODULE_1__["default"], _SpecificationVisitor_mjs__WEBPACK_IMPORTED_MODULE_2__["default"]) {
|
|
17936
|
+
constructor(options = {}) {
|
|
17937
|
+
super(options);
|
|
17737
17938
|
this.element = new _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_3__.ArrayElement();
|
|
17738
17939
|
this.element.classes.push('main-standards');
|
|
17739
|
-
},
|
|
17740
|
-
methods: {
|
|
17741
|
-
ArrayElement(arrayElement) {
|
|
17742
|
-
arrayElement.forEach(item => {
|
|
17743
|
-
const specPath = ['document', 'objects', 'Standard'];
|
|
17744
|
-
const element = this.toRefractedElement(specPath, item);
|
|
17745
|
-
this.element.push(element);
|
|
17746
|
-
});
|
|
17747
|
-
this.copyMetaAndAttributes(arrayElement, this.element);
|
|
17748
|
-
return _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_4__.BREAK;
|
|
17749
|
-
}
|
|
17750
17940
|
}
|
|
17751
|
-
|
|
17941
|
+
ArrayElement(arrayElement) {
|
|
17942
|
+
arrayElement.forEach(item => {
|
|
17943
|
+
const specPath = ['document', 'objects', 'Standard'];
|
|
17944
|
+
const element = this.toRefractedElement(specPath, item);
|
|
17945
|
+
this.element.push(element);
|
|
17946
|
+
});
|
|
17947
|
+
this.copyMetaAndAttributes(arrayElement, this.element);
|
|
17948
|
+
return _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_4__.BREAK;
|
|
17949
|
+
}
|
|
17950
|
+
}
|
|
17752
17951
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (StandardsVisitor);
|
|
17753
17952
|
|
|
17754
17953
|
/***/ }),
|
|
@@ -17776,7 +17975,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
17776
17975
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
17777
17976
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
17778
17977
|
/* harmony export */ });
|
|
17779
|
-
/* harmony import */ var
|
|
17978
|
+
/* harmony import */ var ts_mixer__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6252);
|
|
17780
17979
|
/* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(6360);
|
|
17781
17980
|
/* harmony import */ var _elements_Main_mjs__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(7116);
|
|
17782
17981
|
/* harmony import */ var _FallbackVisitor_mjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7447);
|
|
@@ -17786,14 +17985,13 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
17786
17985
|
|
|
17787
17986
|
|
|
17788
17987
|
|
|
17789
|
-
|
|
17790
|
-
|
|
17791
|
-
|
|
17792
|
-
|
|
17793
|
-
init() {
|
|
17988
|
+
class MainVisitor extends (0,ts_mixer__WEBPACK_IMPORTED_MODULE_0__.Mixin)(_generics_FixedFieldsVisitor_mjs__WEBPACK_IMPORTED_MODULE_1__["default"], _FallbackVisitor_mjs__WEBPACK_IMPORTED_MODULE_2__["default"]) {
|
|
17989
|
+
constructor(options = {}) {
|
|
17990
|
+
super(options);
|
|
17991
|
+
this.specPath = (0,ramda__WEBPACK_IMPORTED_MODULE_3__["default"])(['document', 'objects', 'Main']);
|
|
17794
17992
|
this.element = new _elements_Main_mjs__WEBPACK_IMPORTED_MODULE_4__["default"]();
|
|
17795
17993
|
}
|
|
17796
|
-
}
|
|
17994
|
+
}
|
|
17797
17995
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (MainVisitor);
|
|
17798
17996
|
|
|
17799
17997
|
/***/ }),
|
|
@@ -17851,8 +18049,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
17851
18049
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
17852
18050
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
17853
18051
|
/* harmony export */ });
|
|
17854
|
-
/* harmony import */ var stampit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6591);
|
|
17855
18052
|
/* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(6360);
|
|
18053
|
+
/* harmony import */ var ts_mixer__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6252);
|
|
17856
18054
|
/* harmony import */ var _elements_Principle_mjs__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(4028);
|
|
17857
18055
|
/* harmony import */ var _FallbackVisitor_mjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7447);
|
|
17858
18056
|
/* harmony import */ var _generics_FixedFieldsVisitor_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(4627);
|
|
@@ -17861,14 +18059,13 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
17861
18059
|
|
|
17862
18060
|
|
|
17863
18061
|
|
|
17864
|
-
|
|
17865
|
-
|
|
17866
|
-
|
|
17867
|
-
|
|
17868
|
-
init() {
|
|
18062
|
+
class PrincipleVisitor extends (0,ts_mixer__WEBPACK_IMPORTED_MODULE_0__.Mixin)(_generics_FixedFieldsVisitor_mjs__WEBPACK_IMPORTED_MODULE_1__["default"], _FallbackVisitor_mjs__WEBPACK_IMPORTED_MODULE_2__["default"]) {
|
|
18063
|
+
constructor(options = {}) {
|
|
18064
|
+
super(options);
|
|
18065
|
+
this.specPath = (0,ramda__WEBPACK_IMPORTED_MODULE_3__["default"])(['document', 'objects', 'Principle']);
|
|
17869
18066
|
this.element = new _elements_Principle_mjs__WEBPACK_IMPORTED_MODULE_4__["default"]();
|
|
17870
18067
|
}
|
|
17871
|
-
}
|
|
18068
|
+
}
|
|
17872
18069
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (PrincipleVisitor);
|
|
17873
18070
|
|
|
17874
18071
|
/***/ }),
|
|
@@ -17881,7 +18078,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
17881
18078
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
17882
18079
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
17883
18080
|
/* harmony export */ });
|
|
17884
|
-
/* harmony import */ var
|
|
18081
|
+
/* harmony import */ var ts_mixer__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6252);
|
|
17885
18082
|
/* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(3130);
|
|
17886
18083
|
/* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(1394);
|
|
17887
18084
|
/* harmony import */ var _FallbackVisitor_mjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7447);
|
|
@@ -17892,16 +18089,14 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
17892
18089
|
|
|
17893
18090
|
|
|
17894
18091
|
|
|
17895
|
-
|
|
17896
|
-
|
|
17897
|
-
|
|
17898
|
-
|
|
17899
|
-
|
|
17900
|
-
|
|
17901
|
-
return _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_5__.BREAK;
|
|
17902
|
-
}
|
|
18092
|
+
class RequirementLevelVisitor extends (0,ts_mixer__WEBPACK_IMPORTED_MODULE_0__.Mixin)(_SpecificationVisitor_mjs__WEBPACK_IMPORTED_MODULE_1__["default"], _FallbackVisitor_mjs__WEBPACK_IMPORTED_MODULE_2__["default"]) {
|
|
18093
|
+
StringElement(stringElement) {
|
|
18094
|
+
const requirementLevelElement = new _elements_RequirementLevel_mjs__WEBPACK_IMPORTED_MODULE_3__["default"]((0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_4__["default"])(stringElement));
|
|
18095
|
+
this.copyMetaAndAttributes(stringElement, requirementLevelElement);
|
|
18096
|
+
this.element = requirementLevelElement;
|
|
18097
|
+
return _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_5__.BREAK;
|
|
17903
18098
|
}
|
|
17904
|
-
}
|
|
18099
|
+
}
|
|
17905
18100
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (RequirementLevelVisitor);
|
|
17906
18101
|
|
|
17907
18102
|
/***/ }),
|
|
@@ -17944,8 +18139,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
17944
18139
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
17945
18140
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
17946
18141
|
/* harmony export */ });
|
|
17947
|
-
/* harmony import */ var stampit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6591);
|
|
17948
18142
|
/* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(6360);
|
|
18143
|
+
/* harmony import */ var ts_mixer__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6252);
|
|
17949
18144
|
/* harmony import */ var _elements_Requirement_mjs__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(9618);
|
|
17950
18145
|
/* harmony import */ var _FallbackVisitor_mjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7447);
|
|
17951
18146
|
/* harmony import */ var _generics_FixedFieldsVisitor_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(4627);
|
|
@@ -17954,14 +18149,13 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
17954
18149
|
|
|
17955
18150
|
|
|
17956
18151
|
|
|
17957
|
-
|
|
17958
|
-
|
|
17959
|
-
|
|
17960
|
-
|
|
17961
|
-
init() {
|
|
18152
|
+
class RequirementVisitor extends (0,ts_mixer__WEBPACK_IMPORTED_MODULE_0__.Mixin)(_generics_FixedFieldsVisitor_mjs__WEBPACK_IMPORTED_MODULE_1__["default"], _FallbackVisitor_mjs__WEBPACK_IMPORTED_MODULE_2__["default"]) {
|
|
18153
|
+
constructor(options = {}) {
|
|
18154
|
+
super(options);
|
|
18155
|
+
this.specPath = (0,ramda__WEBPACK_IMPORTED_MODULE_3__["default"])(['document', 'objects', 'Requirement']);
|
|
17962
18156
|
this.element = new _elements_Requirement_mjs__WEBPACK_IMPORTED_MODULE_4__["default"]();
|
|
17963
18157
|
}
|
|
17964
|
-
}
|
|
18158
|
+
}
|
|
17965
18159
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (RequirementVisitor);
|
|
17966
18160
|
|
|
17967
18161
|
/***/ }),
|
|
@@ -17989,7 +18183,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
17989
18183
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
17990
18184
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
17991
18185
|
/* harmony export */ });
|
|
17992
|
-
/* harmony import */ var
|
|
18186
|
+
/* harmony import */ var ts_mixer__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6252);
|
|
17993
18187
|
/* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(8355);
|
|
17994
18188
|
/* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(1394);
|
|
17995
18189
|
/* harmony import */ var _FallbackVisitor_mjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7447);
|
|
@@ -17998,23 +18192,22 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
17998
18192
|
|
|
17999
18193
|
|
|
18000
18194
|
|
|
18001
|
-
|
|
18002
|
-
|
|
18195
|
+
class ThenVisitor extends (0,ts_mixer__WEBPACK_IMPORTED_MODULE_0__.Mixin)(_SpecificationVisitor_mjs__WEBPACK_IMPORTED_MODULE_1__["default"], _FallbackVisitor_mjs__WEBPACK_IMPORTED_MODULE_2__["default"]) {
|
|
18196
|
+
constructor(options = {}) {
|
|
18197
|
+
super(options);
|
|
18003
18198
|
this.element = new _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_3__.ArrayElement();
|
|
18004
18199
|
this.element.classes.push('scenario-then');
|
|
18005
|
-
},
|
|
18006
|
-
methods: {
|
|
18007
|
-
ArrayElement(arrayElement) {
|
|
18008
|
-
arrayElement.forEach(item => {
|
|
18009
|
-
const specPath = ['document', 'objects', 'Requirement'];
|
|
18010
|
-
const element = this.toRefractedElement(specPath, item);
|
|
18011
|
-
this.element.push(element);
|
|
18012
|
-
});
|
|
18013
|
-
this.copyMetaAndAttributes(arrayElement, this.element);
|
|
18014
|
-
return _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_4__.BREAK;
|
|
18015
|
-
}
|
|
18016
18200
|
}
|
|
18017
|
-
|
|
18201
|
+
ArrayElement(arrayElement) {
|
|
18202
|
+
arrayElement.forEach(item => {
|
|
18203
|
+
const specPath = ['document', 'objects', 'Requirement'];
|
|
18204
|
+
const element = this.toRefractedElement(specPath, item);
|
|
18205
|
+
this.element.push(element);
|
|
18206
|
+
});
|
|
18207
|
+
this.copyMetaAndAttributes(arrayElement, this.element);
|
|
18208
|
+
return _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_4__.BREAK;
|
|
18209
|
+
}
|
|
18210
|
+
}
|
|
18018
18211
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (ThenVisitor);
|
|
18019
18212
|
|
|
18020
18213
|
/***/ }),
|
|
@@ -18027,8 +18220,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
18027
18220
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
18028
18221
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
18029
18222
|
/* harmony export */ });
|
|
18030
|
-
/* harmony import */ var stampit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6591);
|
|
18031
18223
|
/* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(6360);
|
|
18224
|
+
/* harmony import */ var ts_mixer__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6252);
|
|
18032
18225
|
/* harmony import */ var _elements_Scenario_mjs__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(75);
|
|
18033
18226
|
/* harmony import */ var _FallbackVisitor_mjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7447);
|
|
18034
18227
|
/* harmony import */ var _generics_FixedFieldsVisitor_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(4627);
|
|
@@ -18037,14 +18230,13 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
18037
18230
|
|
|
18038
18231
|
|
|
18039
18232
|
|
|
18040
|
-
|
|
18041
|
-
|
|
18042
|
-
|
|
18043
|
-
|
|
18044
|
-
init() {
|
|
18233
|
+
class ScenarioVisitor extends (0,ts_mixer__WEBPACK_IMPORTED_MODULE_0__.Mixin)(_generics_FixedFieldsVisitor_mjs__WEBPACK_IMPORTED_MODULE_1__["default"], _FallbackVisitor_mjs__WEBPACK_IMPORTED_MODULE_2__["default"]) {
|
|
18234
|
+
constructor(options = {}) {
|
|
18235
|
+
super(options);
|
|
18236
|
+
this.specPath = (0,ramda__WEBPACK_IMPORTED_MODULE_3__["default"])(['document', 'objects', 'Scenario']);
|
|
18045
18237
|
this.element = new _elements_Scenario_mjs__WEBPACK_IMPORTED_MODULE_4__["default"]();
|
|
18046
18238
|
}
|
|
18047
|
-
}
|
|
18239
|
+
}
|
|
18048
18240
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (ScenarioVisitor);
|
|
18049
18241
|
|
|
18050
18242
|
/***/ }),
|
|
@@ -18057,7 +18249,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
18057
18249
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
18058
18250
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
18059
18251
|
/* harmony export */ });
|
|
18060
|
-
/* harmony import */ var
|
|
18252
|
+
/* harmony import */ var ts_mixer__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6252);
|
|
18061
18253
|
/* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(1394);
|
|
18062
18254
|
/* harmony import */ var _FallbackVisitor_mjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7447);
|
|
18063
18255
|
/* harmony import */ var _SpecificationVisitor_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(9894);
|
|
@@ -18067,22 +18259,21 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
18067
18259
|
|
|
18068
18260
|
|
|
18069
18261
|
|
|
18070
|
-
|
|
18071
|
-
|
|
18262
|
+
class StandardIdentifierVisitor extends (0,ts_mixer__WEBPACK_IMPORTED_MODULE_0__.Mixin)(_SpecificationVisitor_mjs__WEBPACK_IMPORTED_MODULE_1__["default"], _FallbackVisitor_mjs__WEBPACK_IMPORTED_MODULE_2__["default"]) {
|
|
18263
|
+
constructor(options = {}) {
|
|
18264
|
+
super(options);
|
|
18072
18265
|
this.element = new _elements_StandardIdentifier_mjs__WEBPACK_IMPORTED_MODULE_3__["default"]();
|
|
18073
|
-
},
|
|
18074
|
-
methods: {
|
|
18075
|
-
ArrayElement(arrayElement) {
|
|
18076
|
-
arrayElement.forEach(item => {
|
|
18077
|
-
const specPath = ['document', 'objects', 'StandardIdentifier'];
|
|
18078
|
-
const element = this.toRefractedElement(specPath, item);
|
|
18079
|
-
this.element.push(element);
|
|
18080
|
-
});
|
|
18081
|
-
this.copyMetaAndAttributes(arrayElement, this.element);
|
|
18082
|
-
return _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_4__.BREAK;
|
|
18083
|
-
}
|
|
18084
18266
|
}
|
|
18085
|
-
|
|
18267
|
+
ArrayElement(arrayElement) {
|
|
18268
|
+
arrayElement.forEach(item => {
|
|
18269
|
+
const specPath = ['document', 'objects', 'StandardIdentifier'];
|
|
18270
|
+
const element = this.toRefractedElement(specPath, item);
|
|
18271
|
+
this.element.push(element);
|
|
18272
|
+
});
|
|
18273
|
+
this.copyMetaAndAttributes(arrayElement, this.element);
|
|
18274
|
+
return _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_4__.BREAK;
|
|
18275
|
+
}
|
|
18276
|
+
}
|
|
18086
18277
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (StandardIdentifierVisitor);
|
|
18087
18278
|
|
|
18088
18279
|
/***/ }),
|
|
@@ -18140,8 +18331,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
18140
18331
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
18141
18332
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
18142
18333
|
/* harmony export */ });
|
|
18143
|
-
/* harmony import */ var stampit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6591);
|
|
18144
18334
|
/* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(6360);
|
|
18335
|
+
/* harmony import */ var ts_mixer__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6252);
|
|
18145
18336
|
/* harmony import */ var _elements_Standard_mjs__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(734);
|
|
18146
18337
|
/* harmony import */ var _FallbackVisitor_mjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7447);
|
|
18147
18338
|
/* harmony import */ var _generics_FixedFieldsVisitor_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(4627);
|
|
@@ -18150,14 +18341,13 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
18150
18341
|
|
|
18151
18342
|
|
|
18152
18343
|
|
|
18153
|
-
|
|
18154
|
-
|
|
18155
|
-
|
|
18156
|
-
|
|
18157
|
-
init() {
|
|
18344
|
+
class StandardVisitor extends (0,ts_mixer__WEBPACK_IMPORTED_MODULE_0__.Mixin)(_generics_FixedFieldsVisitor_mjs__WEBPACK_IMPORTED_MODULE_1__["default"], _FallbackVisitor_mjs__WEBPACK_IMPORTED_MODULE_2__["default"]) {
|
|
18345
|
+
constructor(options = {}) {
|
|
18346
|
+
super(options);
|
|
18347
|
+
this.specPath = (0,ramda__WEBPACK_IMPORTED_MODULE_3__["default"])(['document', 'objects', 'Standard']);
|
|
18158
18348
|
this.element = new _elements_Standard_mjs__WEBPACK_IMPORTED_MODULE_4__["default"]();
|
|
18159
18349
|
}
|
|
18160
|
-
}
|
|
18350
|
+
}
|
|
18161
18351
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (StandardVisitor);
|
|
18162
18352
|
|
|
18163
18353
|
/***/ }),
|
|
@@ -18170,52 +18360,36 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
18170
18360
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
18171
18361
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
18172
18362
|
/* harmony export */ });
|
|
18173
|
-
/* harmony import */ var
|
|
18174
|
-
/* harmony import */ var
|
|
18175
|
-
/* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
|
|
18176
|
-
/* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(
|
|
18177
|
-
/* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(
|
|
18178
|
-
/* harmony import */ var
|
|
18179
|
-
/* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(1394);
|
|
18180
|
-
/* harmony import */ var _SpecificationVisitor_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(9894);
|
|
18181
|
-
|
|
18363
|
+
/* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6903);
|
|
18364
|
+
/* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(3130);
|
|
18365
|
+
/* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(7952);
|
|
18366
|
+
/* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(2434);
|
|
18367
|
+
/* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(1394);
|
|
18368
|
+
/* harmony import */ var _SpecificationVisitor_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9894);
|
|
18182
18369
|
|
|
18183
18370
|
|
|
18371
|
+
class FixedFieldsVisitor extends _SpecificationVisitor_mjs__WEBPACK_IMPORTED_MODULE_0__["default"] {
|
|
18372
|
+
ignoredFields = [];
|
|
18373
|
+
ObjectElement(objectElement) {
|
|
18374
|
+
const specPath = this.specPath(objectElement);
|
|
18375
|
+
const fields = this.retrieveFixedFields(specPath);
|
|
18184
18376
|
|
|
18185
|
-
const FixedFieldsVisitor = stampit__WEBPACK_IMPORTED_MODULE_0__(_SpecificationVisitor_mjs__WEBPACK_IMPORTED_MODULE_1__["default"], {
|
|
18186
|
-
props: {
|
|
18187
|
-
specPath: ramda_adjunct__WEBPACK_IMPORTED_MODULE_2__["default"],
|
|
18188
|
-
ignoredFields: []
|
|
18189
|
-
},
|
|
18190
|
-
init({
|
|
18191
|
-
// @ts-ignore
|
|
18192
|
-
specPath = this.specPath,
|
|
18193
18377
|
// @ts-ignore
|
|
18194
|
-
|
|
18195
|
-
|
|
18196
|
-
|
|
18197
|
-
|
|
18198
|
-
|
|
18199
|
-
|
|
18200
|
-
|
|
18201
|
-
|
|
18202
|
-
|
|
18203
|
-
|
|
18204
|
-
|
|
18205
|
-
|
|
18206
|
-
|
|
18207
|
-
newMemberElement.classes.push('fixed-field');
|
|
18208
|
-
this.copyMetaAndAttributes(memberElement, newMemberElement);
|
|
18209
|
-
this.element.content.push(newMemberElement);
|
|
18210
|
-
} else if (!this.ignoredFields.includes((0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_4__["default"])(key))) {
|
|
18211
|
-
this.element.content.push((0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_6__.cloneDeep)(memberElement));
|
|
18212
|
-
}
|
|
18213
|
-
});
|
|
18214
|
-
this.copyMetaAndAttributes(objectElement, this.element);
|
|
18215
|
-
return _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_7__.BREAK;
|
|
18216
|
-
}
|
|
18378
|
+
objectElement.forEach((value, key, memberElement) => {
|
|
18379
|
+
if ((0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_1__.isStringElement)(key) && fields.includes((0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_2__["default"])(key)) && !this.ignoredFields.includes((0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_2__["default"])(key))) {
|
|
18380
|
+
const fixedFieldElement = this.toRefractedElement([...specPath, 'fixedFields', (0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_2__["default"])(key)], value);
|
|
18381
|
+
const newMemberElement = new _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_3__.MemberElement((0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_4__.cloneDeep)(key), fixedFieldElement);
|
|
18382
|
+
newMemberElement.classes.push('fixed-field');
|
|
18383
|
+
this.copyMetaAndAttributes(memberElement, newMemberElement);
|
|
18384
|
+
this.element.content.push(newMemberElement);
|
|
18385
|
+
} else if (!this.ignoredFields.includes((0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_2__["default"])(key))) {
|
|
18386
|
+
this.element.content.push((0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_4__.cloneDeep)(memberElement));
|
|
18387
|
+
}
|
|
18388
|
+
});
|
|
18389
|
+
this.copyMetaAndAttributes(objectElement, this.element);
|
|
18390
|
+
return _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_5__.BREAK;
|
|
18217
18391
|
}
|
|
18218
|
-
}
|
|
18392
|
+
}
|
|
18219
18393
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (FixedFieldsVisitor);
|
|
18220
18394
|
|
|
18221
18395
|
/***/ }),
|
|
@@ -18620,7 +18794,7 @@ const isNode = element => (0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_1
|
|
|
18620
18794
|
const analyze = (cst, {
|
|
18621
18795
|
sourceMap = false
|
|
18622
18796
|
} = {}) => {
|
|
18623
|
-
const visitor =
|
|
18797
|
+
const visitor = new _visitors_CstVisitor_mjs__WEBPACK_IMPORTED_MODULE_3__["default"]();
|
|
18624
18798
|
const cursor = cst.walk();
|
|
18625
18799
|
const iterator = new _TreeCursorIterator_mjs__WEBPACK_IMPORTED_MODULE_4__["default"](cursor);
|
|
18626
18800
|
const [rootNode] = Array.from(iterator);
|
|
@@ -18646,175 +18820,161 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
18646
18820
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
18647
18821
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
18648
18822
|
/* harmony export */ });
|
|
18649
|
-
/* harmony import */ var
|
|
18650
|
-
/* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
|
|
18651
|
-
/* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
|
|
18652
|
-
/* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(7952);
|
|
18823
|
+
/* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(8355);
|
|
18824
|
+
/* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6903);
|
|
18825
|
+
/* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(7952);
|
|
18653
18826
|
/* harmony import */ var _TreeCursorSyntaxNode_mjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1288);
|
|
18654
18827
|
|
|
18655
18828
|
|
|
18656
|
-
|
|
18657
18829
|
/* eslint-disable no-underscore-dangle */
|
|
18658
|
-
|
|
18659
|
-
|
|
18660
|
-
|
|
18661
|
-
|
|
18662
|
-
|
|
18663
|
-
|
|
18664
|
-
|
|
18665
|
-
|
|
18666
|
-
|
|
18830
|
+
class CstVisitor {
|
|
18831
|
+
static toPosition(node) {
|
|
18832
|
+
const start = new _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_0__.ArrayElement([node.startPosition.row, node.startPosition.column, node.startIndex]);
|
|
18833
|
+
const end = new _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_0__.ArrayElement([node.endPosition.row, node.endPosition.column, node.endIndex]);
|
|
18834
|
+
start.classes.push('position');
|
|
18835
|
+
end.classes.push('position');
|
|
18836
|
+
return [start, end];
|
|
18837
|
+
}
|
|
18838
|
+
sourceMap = false;
|
|
18839
|
+
ParseResultElement = {
|
|
18840
|
+
leave: element => {
|
|
18841
|
+
// mark first-non Annotation element as result
|
|
18842
|
+
// @ts-ignore
|
|
18843
|
+
const elements = element.findElements(_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_1__.isPrimitiveElement);
|
|
18844
|
+
if (elements.length > 0) {
|
|
18845
|
+
const resultElement = elements[0];
|
|
18846
|
+
resultElement.classes.push('result');
|
|
18847
|
+
}
|
|
18667
18848
|
|
|
18849
|
+
// provide annotations
|
|
18850
|
+
this.annotations.forEach(annotationElement => {
|
|
18851
|
+
element.push(annotationElement);
|
|
18852
|
+
});
|
|
18853
|
+
this.annotations = [];
|
|
18854
|
+
}
|
|
18855
|
+
};
|
|
18856
|
+
constructor() {
|
|
18668
18857
|
this.annotations = [];
|
|
18669
|
-
|
|
18670
|
-
|
|
18671
|
-
|
|
18672
|
-
|
|
18673
|
-
|
|
18674
|
-
|
|
18675
|
-
|
|
18676
|
-
|
|
18677
|
-
|
|
18678
|
-
|
|
18679
|
-
|
|
18680
|
-
|
|
18681
|
-
|
|
18682
|
-
|
|
18683
|
-
|
|
18684
|
-
|
|
18685
|
-
|
|
18686
|
-
|
|
18687
|
-
|
|
18688
|
-
|
|
18689
|
-
|
|
18690
|
-
|
|
18858
|
+
}
|
|
18859
|
+
enter(node) {
|
|
18860
|
+
// missing anonymous literals from CST transformed into AnnotationElements.
|
|
18861
|
+
if (node instanceof _TreeCursorSyntaxNode_mjs__WEBPACK_IMPORTED_MODULE_2__["default"] && !node.isNamed && node.isMissing) {
|
|
18862
|
+
// collect annotations from missing literals
|
|
18863
|
+
const value = node.type || node.text;
|
|
18864
|
+
const message = `(Missing ${value})`;
|
|
18865
|
+
const element = new _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_0__.AnnotationElement(message);
|
|
18866
|
+
element.classes.push('warning');
|
|
18867
|
+
this.maybeAddSourceMap(node, element);
|
|
18868
|
+
this.annotations.push(element);
|
|
18869
|
+
}
|
|
18870
|
+
return null; // remove everything unrecognized
|
|
18871
|
+
}
|
|
18872
|
+
document(node) {
|
|
18873
|
+
const element = new _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_0__.ParseResultElement();
|
|
18874
|
+
// @ts-ignore
|
|
18875
|
+
element._content = node.children;
|
|
18876
|
+
this.maybeAddSourceMap(node, element);
|
|
18877
|
+
return element;
|
|
18878
|
+
}
|
|
18879
|
+
object(node) {
|
|
18880
|
+
const element = new _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_0__.ObjectElement();
|
|
18881
|
+
// @ts-ignore
|
|
18882
|
+
element._content = node.children;
|
|
18883
|
+
this.maybeAddSourceMap(node, element);
|
|
18884
|
+
return element;
|
|
18885
|
+
}
|
|
18886
|
+
array(node) {
|
|
18887
|
+
const element = new _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_0__.ArrayElement();
|
|
18888
|
+
// @ts-ignore
|
|
18889
|
+
element._content = node.children;
|
|
18890
|
+
this.maybeAddSourceMap(node, element);
|
|
18891
|
+
return element;
|
|
18892
|
+
}
|
|
18893
|
+
pair(node) {
|
|
18894
|
+
const element = new _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_3__.MemberElement();
|
|
18895
|
+
// @ts-ignore
|
|
18896
|
+
element.content.key = node.keyNode;
|
|
18897
|
+
// @ts-ignore
|
|
18898
|
+
element.content.value = node.valueNode;
|
|
18899
|
+
this.maybeAddSourceMap(node, element);
|
|
18691
18900
|
|
|
18692
18901
|
/**
|
|
18693
|
-
*
|
|
18902
|
+
* Process possible errors here that may be present in pair node children as we're using direct field access.
|
|
18903
|
+
* There are usually 3 children here found: "key", ":", "value".
|
|
18694
18904
|
*/
|
|
18905
|
+
if (node.children.length > 3) {
|
|
18906
|
+
node.children.filter(child => child.type === 'ERROR').forEach(errorNode => {
|
|
18907
|
+
this.ERROR(errorNode, node, [], [node]);
|
|
18908
|
+
});
|
|
18909
|
+
}
|
|
18910
|
+
return element;
|
|
18911
|
+
}
|
|
18912
|
+
string(node) {
|
|
18913
|
+
const element = new _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_0__.StringElement(JSON.parse(node.text));
|
|
18914
|
+
this.maybeAddSourceMap(node, element);
|
|
18915
|
+
return element;
|
|
18916
|
+
}
|
|
18917
|
+
number(node) {
|
|
18918
|
+
const element = new _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_0__.NumberElement(Number(node.text));
|
|
18919
|
+
this.maybeAddSourceMap(node, element);
|
|
18920
|
+
return element;
|
|
18921
|
+
}
|
|
18695
18922
|
|
|
18696
|
-
|
|
18697
|
-
|
|
18698
|
-
|
|
18699
|
-
|
|
18700
|
-
|
|
18701
|
-
|
|
18702
|
-
const element = new _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_1__.AnnotationElement(message);
|
|
18703
|
-
element.classes.push('warning');
|
|
18704
|
-
maybeAddSourceMap(node, element);
|
|
18705
|
-
this.annotations.push(element);
|
|
18706
|
-
}
|
|
18707
|
-
return null; // remove everything unrecognized
|
|
18708
|
-
};
|
|
18709
|
-
this.document = function document(node) {
|
|
18710
|
-
const element = new _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_1__.ParseResultElement();
|
|
18711
|
-
// @ts-ignore
|
|
18712
|
-
element._content = node.children;
|
|
18713
|
-
maybeAddSourceMap(node, element);
|
|
18714
|
-
return element;
|
|
18715
|
-
};
|
|
18716
|
-
this.ParseResultElement = {
|
|
18717
|
-
leave(element) {
|
|
18718
|
-
// mark first-non Annotation element as result
|
|
18719
|
-
// @ts-ignore
|
|
18720
|
-
const elements = element.findElements(_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_3__.isPrimitiveElement);
|
|
18721
|
-
if (elements.length > 0) {
|
|
18722
|
-
const resultElement = elements[0];
|
|
18723
|
-
resultElement.classes.push('result');
|
|
18724
|
-
}
|
|
18725
|
-
|
|
18726
|
-
// provide annotations
|
|
18727
|
-
this.annotations.forEach(annotationElement => {
|
|
18728
|
-
element.push(annotationElement);
|
|
18729
|
-
});
|
|
18730
|
-
this.annotations = [];
|
|
18731
|
-
}
|
|
18732
|
-
};
|
|
18733
|
-
this.object = function object(node) {
|
|
18734
|
-
const element = new _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_1__.ObjectElement();
|
|
18735
|
-
// @ts-ignore
|
|
18736
|
-
element._content = node.children;
|
|
18737
|
-
maybeAddSourceMap(node, element);
|
|
18738
|
-
return element;
|
|
18739
|
-
};
|
|
18740
|
-
this.array = function array(node) {
|
|
18741
|
-
const element = new _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_1__.ArrayElement();
|
|
18742
|
-
// @ts-ignore
|
|
18743
|
-
element._content = node.children;
|
|
18744
|
-
maybeAddSourceMap(node, element);
|
|
18745
|
-
return element;
|
|
18746
|
-
};
|
|
18747
|
-
this.pair = function pair(node) {
|
|
18748
|
-
const element = new _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_4__.MemberElement();
|
|
18749
|
-
// @ts-ignore
|
|
18750
|
-
element.content.key = node.keyNode;
|
|
18751
|
-
// @ts-ignore
|
|
18752
|
-
element.content.value = node.valueNode;
|
|
18753
|
-
maybeAddSourceMap(node, element);
|
|
18754
|
-
|
|
18755
|
-
/**
|
|
18756
|
-
* Process possible errors here that may be present in pair node children as we're using direct field access.
|
|
18757
|
-
* There are usually 3 children here found: "key", ":", "value".
|
|
18758
|
-
*/
|
|
18759
|
-
if (node.children.length > 3) {
|
|
18760
|
-
node.children.filter(child => child.type === 'ERROR').forEach(errorNode => {
|
|
18761
|
-
this.ERROR(errorNode, node, [], [node]);
|
|
18762
|
-
});
|
|
18763
|
-
}
|
|
18764
|
-
return element;
|
|
18765
|
-
};
|
|
18766
|
-
this.string = function string(node) {
|
|
18767
|
-
const element = new _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_1__.StringElement(JSON.parse(node.text));
|
|
18768
|
-
maybeAddSourceMap(node, element);
|
|
18769
|
-
return element;
|
|
18770
|
-
};
|
|
18771
|
-
this.number = function number(node) {
|
|
18772
|
-
const element = new _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_1__.NumberElement(Number(node.text));
|
|
18773
|
-
maybeAddSourceMap(node, element);
|
|
18774
|
-
return element;
|
|
18775
|
-
};
|
|
18776
|
-
|
|
18777
|
-
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
18778
|
-
this.null = function _null(node) {
|
|
18779
|
-
const element = new _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_1__.NullElement();
|
|
18780
|
-
maybeAddSourceMap(node, element);
|
|
18781
|
-
return element;
|
|
18782
|
-
};
|
|
18923
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
18924
|
+
null(node) {
|
|
18925
|
+
const element = new _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_0__.NullElement();
|
|
18926
|
+
this.maybeAddSourceMap(node, element);
|
|
18927
|
+
return element;
|
|
18928
|
+
}
|
|
18783
18929
|
|
|
18784
|
-
|
|
18785
|
-
|
|
18786
|
-
|
|
18787
|
-
|
|
18788
|
-
|
|
18789
|
-
|
|
18930
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
18931
|
+
true(node) {
|
|
18932
|
+
const element = new _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_0__.BooleanElement(true);
|
|
18933
|
+
this.maybeAddSourceMap(node, element);
|
|
18934
|
+
return element;
|
|
18935
|
+
}
|
|
18790
18936
|
|
|
18791
|
-
|
|
18792
|
-
|
|
18793
|
-
|
|
18794
|
-
|
|
18795
|
-
|
|
18796
|
-
|
|
18797
|
-
|
|
18798
|
-
|
|
18799
|
-
|
|
18800
|
-
|
|
18801
|
-
|
|
18802
|
-
|
|
18803
|
-
|
|
18804
|
-
|
|
18805
|
-
|
|
18806
|
-
|
|
18807
|
-
|
|
18808
|
-
|
|
18809
|
-
|
|
18810
|
-
|
|
18937
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
18938
|
+
false(node) {
|
|
18939
|
+
const element = new _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_0__.BooleanElement(false);
|
|
18940
|
+
this.maybeAddSourceMap(node, element);
|
|
18941
|
+
return element;
|
|
18942
|
+
}
|
|
18943
|
+
ERROR(node, key, parent, path) {
|
|
18944
|
+
// collect errors as annotations
|
|
18945
|
+
const isUnexpected = !node.hasError;
|
|
18946
|
+
const value = node.text;
|
|
18947
|
+
const message = isUnexpected ? `(Unexpected ${value})` : `(Error ${value})`;
|
|
18948
|
+
const element = new _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_0__.AnnotationElement(message);
|
|
18949
|
+
element.classes.push('error');
|
|
18950
|
+
this.maybeAddSourceMap(node, element);
|
|
18951
|
+
if (path.length === 0) {
|
|
18952
|
+
// no document to visit, only error is present in CST
|
|
18953
|
+
const parseResultElement = new _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_0__.ParseResultElement();
|
|
18954
|
+
parseResultElement.push(element);
|
|
18955
|
+
return parseResultElement;
|
|
18956
|
+
}
|
|
18811
18957
|
|
|
18812
|
-
|
|
18813
|
-
|
|
18814
|
-
|
|
18815
|
-
};
|
|
18958
|
+
// we have CST node for document
|
|
18959
|
+
this.annotations.push(element);
|
|
18960
|
+
return null;
|
|
18816
18961
|
}
|
|
18817
|
-
|
|
18962
|
+
maybeAddSourceMap(node, element) {
|
|
18963
|
+
if (!this.sourceMap) {
|
|
18964
|
+
return;
|
|
18965
|
+
}
|
|
18966
|
+
const sourceMap = new _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_0__.SourceMapElement();
|
|
18967
|
+
const position = CstVisitor.toPosition(node);
|
|
18968
|
+
if (position !== null) {
|
|
18969
|
+
const [start, end] = position;
|
|
18970
|
+
sourceMap.push(start);
|
|
18971
|
+
sourceMap.push(end);
|
|
18972
|
+
}
|
|
18973
|
+
// @ts-ignore
|
|
18974
|
+
sourceMap.astNode = node;
|
|
18975
|
+
element.meta.set('sourceMap', sourceMap);
|
|
18976
|
+
}
|
|
18977
|
+
}
|
|
18818
18978
|
|
|
18819
18979
|
/* eslint-enable no-underscore-dangle */
|
|
18820
18980
|
|
|
@@ -18859,8 +19019,8 @@ const analyze = (cst, {
|
|
|
18859
19019
|
const cursor = cst.walk();
|
|
18860
19020
|
const iterator = new _TreeCursorIterator_mjs__WEBPACK_IMPORTED_MODULE_0__["default"](cursor);
|
|
18861
19021
|
const [rootNode] = Array.from(iterator);
|
|
18862
|
-
const cstVisitor =
|
|
18863
|
-
const astVisitor =
|
|
19022
|
+
const cstVisitor = new _visitors_CstVisitor_mjs__WEBPACK_IMPORTED_MODULE_1__["default"]();
|
|
19023
|
+
const astVisitor = new _visitors_JsonAstVisitor_mjs__WEBPACK_IMPORTED_MODULE_2__["default"]();
|
|
18864
19024
|
const jsonAst = (0,_swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_3__.visit)(rootNode, cstVisitor, {
|
|
18865
19025
|
// @ts-ignore
|
|
18866
19026
|
keyMap: _visitors_CstVisitor_mjs__WEBPACK_IMPORTED_MODULE_1__.keyMap,
|
|
@@ -18891,24 +19051,22 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
18891
19051
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__),
|
|
18892
19052
|
/* harmony export */ keyMap: () => (/* binding */ keyMap)
|
|
18893
19053
|
/* harmony export */ });
|
|
18894
|
-
/* harmony import */ var
|
|
18895
|
-
/* harmony import */ var _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
|
|
18896
|
-
/* harmony import */ var
|
|
18897
|
-
/* harmony import */ var _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(
|
|
18898
|
-
/* harmony import */ var _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(
|
|
18899
|
-
/* harmony import */ var _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(
|
|
18900
|
-
/* harmony import */ var _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(
|
|
18901
|
-
/* harmony import */ var _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(
|
|
18902
|
-
/* harmony import */ var _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(
|
|
18903
|
-
/* harmony import */ var _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(
|
|
18904
|
-
/* harmony import */ var _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(
|
|
18905
|
-
/* harmony import */ var _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(
|
|
18906
|
-
/* harmony import */ var _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(
|
|
18907
|
-
/* harmony import */ var _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(
|
|
18908
|
-
/* harmony import */ var _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(
|
|
18909
|
-
/* harmony import */ var
|
|
18910
|
-
/* harmony import */ var _TreeCursorSyntaxNode_mjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1288);
|
|
18911
|
-
|
|
19054
|
+
/* harmony import */ var _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(7127);
|
|
19055
|
+
/* harmony import */ var _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(8529);
|
|
19056
|
+
/* harmony import */ var _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(9348);
|
|
19057
|
+
/* harmony import */ var _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(8681);
|
|
19058
|
+
/* harmony import */ var _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(451);
|
|
19059
|
+
/* harmony import */ var _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(3278);
|
|
19060
|
+
/* harmony import */ var _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(7418);
|
|
19061
|
+
/* harmony import */ var _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(5393);
|
|
19062
|
+
/* harmony import */ var _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(891);
|
|
19063
|
+
/* harmony import */ var _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(9443);
|
|
19064
|
+
/* harmony import */ var _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(9974);
|
|
19065
|
+
/* harmony import */ var _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(6227);
|
|
19066
|
+
/* harmony import */ var _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(7073);
|
|
19067
|
+
/* harmony import */ var _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(3094);
|
|
19068
|
+
/* harmony import */ var _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(5773);
|
|
19069
|
+
/* harmony import */ var _TreeCursorSyntaxNode_mjs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(1288);
|
|
18912
19070
|
|
|
18913
19071
|
|
|
18914
19072
|
const keyMap = {
|
|
@@ -18920,168 +19078,160 @@ const keyMap = {
|
|
|
18920
19078
|
key: ['children'],
|
|
18921
19079
|
error: ['children']
|
|
18922
19080
|
};
|
|
18923
|
-
const CstVisitor = stampit__WEBPACK_IMPORTED_MODULE_0__({
|
|
18924
|
-
init() {
|
|
18925
|
-
/**
|
|
18926
|
-
* Private API.
|
|
18927
|
-
*/
|
|
18928
|
-
|
|
18929
|
-
const toPosition = node => {
|
|
18930
|
-
const start = (0,_swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_1__.Point)({
|
|
18931
|
-
row: node.startPosition.row,
|
|
18932
|
-
column: node.startPosition.column,
|
|
18933
|
-
char: node.startIndex
|
|
18934
|
-
});
|
|
18935
|
-
const end = (0,_swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_1__.Point)({
|
|
18936
|
-
row: node.endPosition.row,
|
|
18937
|
-
column: node.endPosition.column,
|
|
18938
|
-
char: node.endIndex
|
|
18939
|
-
});
|
|
18940
|
-
return (0,_swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_1__["default"])({
|
|
18941
|
-
start,
|
|
18942
|
-
end
|
|
18943
|
-
});
|
|
18944
|
-
};
|
|
18945
19081
|
|
|
18946
|
-
|
|
18947
|
-
* Public API.
|
|
18948
|
-
*/
|
|
19082
|
+
/* eslint-disable class-methods-use-this */
|
|
18949
19083
|
|
|
18950
|
-
|
|
18951
|
-
|
|
18952
|
-
|
|
18953
|
-
|
|
18954
|
-
|
|
18955
|
-
|
|
18956
|
-
|
|
18957
|
-
|
|
18958
|
-
|
|
18959
|
-
|
|
18960
|
-
|
|
18961
|
-
|
|
18962
|
-
|
|
18963
|
-
|
|
18964
|
-
|
|
18965
|
-
};
|
|
18966
|
-
|
|
18967
|
-
|
|
18968
|
-
|
|
18969
|
-
|
|
18970
|
-
|
|
18971
|
-
position,
|
|
18972
|
-
isMissing: node.isMissing
|
|
18973
|
-
});
|
|
18974
|
-
},
|
|
18975
|
-
leave(document) {
|
|
18976
|
-
return (0,_swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_5__["default"])({
|
|
18977
|
-
children: [document]
|
|
18978
|
-
});
|
|
18979
|
-
}
|
|
18980
|
-
};
|
|
18981
|
-
this.object = function object(node) {
|
|
18982
|
-
const position = toPosition(node);
|
|
18983
|
-
return (0,_swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_6__["default"])({
|
|
19084
|
+
class CstVisitor {
|
|
19085
|
+
static toPosition(node) {
|
|
19086
|
+
const start = new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_0__.Point({
|
|
19087
|
+
row: node.startPosition.row,
|
|
19088
|
+
column: node.startPosition.column,
|
|
19089
|
+
char: node.startIndex
|
|
19090
|
+
});
|
|
19091
|
+
const end = new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_0__.Point({
|
|
19092
|
+
row: node.endPosition.row,
|
|
19093
|
+
column: node.endPosition.column,
|
|
19094
|
+
char: node.endIndex
|
|
19095
|
+
});
|
|
19096
|
+
return new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_0__["default"]({
|
|
19097
|
+
start,
|
|
19098
|
+
end
|
|
19099
|
+
});
|
|
19100
|
+
}
|
|
19101
|
+
document = {
|
|
19102
|
+
enter: node => {
|
|
19103
|
+
const position = CstVisitor.toPosition(node);
|
|
19104
|
+
return new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_1__["default"]({
|
|
18984
19105
|
children: node.children,
|
|
18985
19106
|
position,
|
|
18986
19107
|
isMissing: node.isMissing
|
|
18987
19108
|
});
|
|
18988
|
-
}
|
|
18989
|
-
|
|
18990
|
-
|
|
18991
|
-
|
|
19109
|
+
},
|
|
19110
|
+
leave: document => {
|
|
19111
|
+
return new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_2__["default"]({
|
|
19112
|
+
children: [document]
|
|
19113
|
+
});
|
|
19114
|
+
}
|
|
19115
|
+
};
|
|
19116
|
+
enter(node) {
|
|
19117
|
+
// anonymous literals from CST transformed into AST literal nodes
|
|
19118
|
+
if (node instanceof _TreeCursorSyntaxNode_mjs__WEBPACK_IMPORTED_MODULE_3__["default"] && !node.isNamed) {
|
|
19119
|
+
const position = CstVisitor.toPosition(node);
|
|
19120
|
+
const value = node.type || node.text;
|
|
18992
19121
|
const {
|
|
18993
|
-
|
|
19122
|
+
isMissing
|
|
18994
19123
|
} = node;
|
|
18995
|
-
|
|
18996
|
-
children: (keyNode === null || keyNode === void 0 ? void 0 : keyNode.children) || [],
|
|
18997
|
-
position: keyNode != null ? toPosition(keyNode) : null,
|
|
18998
|
-
isMissing: keyNode != null ? keyNode.isMissing : false
|
|
18999
|
-
});
|
|
19000
|
-
return (0,_swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_8__["default"])({
|
|
19001
|
-
children: [key, ...children],
|
|
19002
|
-
position,
|
|
19003
|
-
isMissing: node.isMissing
|
|
19004
|
-
});
|
|
19005
|
-
};
|
|
19006
|
-
this.array = function array(node) {
|
|
19007
|
-
const position = toPosition(node);
|
|
19008
|
-
return (0,_swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_9__["default"])({
|
|
19009
|
-
children: node.children,
|
|
19010
|
-
position,
|
|
19011
|
-
isMissing: node.isMissing
|
|
19012
|
-
});
|
|
19013
|
-
};
|
|
19014
|
-
this.string = function string(node) {
|
|
19015
|
-
const position = toPosition(node);
|
|
19016
|
-
const content = (0,_swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_10__["default"])({
|
|
19017
|
-
value: JSON.parse(node.text)
|
|
19018
|
-
});
|
|
19019
|
-
return (0,_swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_11__["default"])({
|
|
19020
|
-
children: [content],
|
|
19021
|
-
position,
|
|
19022
|
-
isMissing: node.isMissing
|
|
19023
|
-
});
|
|
19024
|
-
};
|
|
19025
|
-
this.number = function number(node) {
|
|
19026
|
-
const position = toPosition(node);
|
|
19027
|
-
const value = node.text;
|
|
19028
|
-
return (0,_swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_12__["default"])({
|
|
19124
|
+
return new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_4__["default"]({
|
|
19029
19125
|
value,
|
|
19030
19126
|
position,
|
|
19031
|
-
isMissing
|
|
19127
|
+
isMissing
|
|
19032
19128
|
});
|
|
19033
|
-
}
|
|
19129
|
+
}
|
|
19130
|
+
return undefined;
|
|
19131
|
+
}
|
|
19132
|
+
object(node) {
|
|
19133
|
+
const position = CstVisitor.toPosition(node);
|
|
19134
|
+
return new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_5__["default"]({
|
|
19135
|
+
children: node.children,
|
|
19136
|
+
position,
|
|
19137
|
+
isMissing: node.isMissing
|
|
19138
|
+
});
|
|
19139
|
+
}
|
|
19140
|
+
pair(node) {
|
|
19141
|
+
const position = CstVisitor.toPosition(node);
|
|
19142
|
+
const children = node.children.slice(1);
|
|
19143
|
+
const {
|
|
19144
|
+
keyNode
|
|
19145
|
+
} = node;
|
|
19146
|
+
const key = new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_6__["default"]({
|
|
19147
|
+
children: (keyNode === null || keyNode === void 0 ? void 0 : keyNode.children) || [],
|
|
19148
|
+
position: keyNode != null ? CstVisitor.toPosition(keyNode) : undefined,
|
|
19149
|
+
isMissing: keyNode != null ? keyNode.isMissing : false
|
|
19150
|
+
});
|
|
19151
|
+
return new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_7__["default"]({
|
|
19152
|
+
children: [key, ...children],
|
|
19153
|
+
position,
|
|
19154
|
+
isMissing: node.isMissing
|
|
19155
|
+
});
|
|
19156
|
+
}
|
|
19157
|
+
array(node) {
|
|
19158
|
+
const position = CstVisitor.toPosition(node);
|
|
19159
|
+
return new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_8__["default"]({
|
|
19160
|
+
children: node.children,
|
|
19161
|
+
position,
|
|
19162
|
+
isMissing: node.isMissing
|
|
19163
|
+
});
|
|
19164
|
+
}
|
|
19165
|
+
string(node) {
|
|
19166
|
+
const position = CstVisitor.toPosition(node);
|
|
19167
|
+
const content = new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_9__["default"]({
|
|
19168
|
+
value: JSON.parse(node.text)
|
|
19169
|
+
});
|
|
19170
|
+
return new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_10__["default"]({
|
|
19171
|
+
children: [content],
|
|
19172
|
+
position,
|
|
19173
|
+
isMissing: node.isMissing
|
|
19174
|
+
});
|
|
19175
|
+
}
|
|
19176
|
+
number(node) {
|
|
19177
|
+
const position = CstVisitor.toPosition(node);
|
|
19178
|
+
const value = node.text;
|
|
19179
|
+
return new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_11__["default"]({
|
|
19180
|
+
value,
|
|
19181
|
+
position,
|
|
19182
|
+
isMissing: node.isMissing
|
|
19183
|
+
});
|
|
19184
|
+
}
|
|
19034
19185
|
|
|
19035
|
-
|
|
19036
|
-
|
|
19037
|
-
|
|
19038
|
-
|
|
19039
|
-
|
|
19040
|
-
|
|
19041
|
-
|
|
19042
|
-
|
|
19043
|
-
|
|
19044
|
-
|
|
19186
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
19187
|
+
null(node) {
|
|
19188
|
+
const position = CstVisitor.toPosition(node);
|
|
19189
|
+
const value = node.text;
|
|
19190
|
+
return new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_12__["default"]({
|
|
19191
|
+
value,
|
|
19192
|
+
position,
|
|
19193
|
+
isMissing: node.isMissing
|
|
19194
|
+
});
|
|
19195
|
+
}
|
|
19045
19196
|
|
|
19046
|
-
|
|
19047
|
-
|
|
19048
|
-
|
|
19049
|
-
|
|
19050
|
-
|
|
19051
|
-
|
|
19052
|
-
|
|
19053
|
-
|
|
19054
|
-
|
|
19055
|
-
|
|
19197
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
19198
|
+
true(node) {
|
|
19199
|
+
const position = CstVisitor.toPosition(node);
|
|
19200
|
+
const value = node.text;
|
|
19201
|
+
return new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_13__["default"]({
|
|
19202
|
+
value,
|
|
19203
|
+
position,
|
|
19204
|
+
isMissing: node.isMissing
|
|
19205
|
+
});
|
|
19206
|
+
}
|
|
19056
19207
|
|
|
19057
|
-
|
|
19058
|
-
|
|
19059
|
-
|
|
19060
|
-
|
|
19061
|
-
|
|
19062
|
-
|
|
19063
|
-
|
|
19064
|
-
|
|
19065
|
-
|
|
19066
|
-
|
|
19067
|
-
|
|
19068
|
-
|
|
19069
|
-
|
|
19070
|
-
|
|
19071
|
-
|
|
19072
|
-
|
|
19073
|
-
|
|
19074
|
-
|
|
19208
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
19209
|
+
false(node) {
|
|
19210
|
+
const position = CstVisitor.toPosition(node);
|
|
19211
|
+
const value = node.text;
|
|
19212
|
+
return new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_14__["default"]({
|
|
19213
|
+
value,
|
|
19214
|
+
position,
|
|
19215
|
+
isMissing: node.isMissing
|
|
19216
|
+
});
|
|
19217
|
+
}
|
|
19218
|
+
ERROR(node, key, parent, path) {
|
|
19219
|
+
const position = CstVisitor.toPosition(node);
|
|
19220
|
+
const errorNode = new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_15__["default"]({
|
|
19221
|
+
children: node.children,
|
|
19222
|
+
position,
|
|
19223
|
+
isUnexpected: !node.hasError,
|
|
19224
|
+
isMissing: node.isMissing,
|
|
19225
|
+
value: node.text
|
|
19226
|
+
});
|
|
19227
|
+
if (path.length === 0) {
|
|
19228
|
+
return new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_2__["default"]({
|
|
19229
|
+
children: [errorNode]
|
|
19075
19230
|
});
|
|
19076
|
-
|
|
19077
|
-
|
|
19078
|
-
children: [errorNode]
|
|
19079
|
-
});
|
|
19080
|
-
}
|
|
19081
|
-
return errorNode;
|
|
19082
|
-
};
|
|
19231
|
+
}
|
|
19232
|
+
return errorNode;
|
|
19083
19233
|
}
|
|
19084
|
-
}
|
|
19234
|
+
}
|
|
19085
19235
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (CstVisitor);
|
|
19086
19236
|
|
|
19087
19237
|
/***/ }),
|
|
@@ -19097,22 +19247,22 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
19097
19247
|
/* harmony export */ isNode: () => (/* binding */ isNode),
|
|
19098
19248
|
/* harmony export */ keyMap: () => (/* binding */ keyMap)
|
|
19099
19249
|
/* harmony export */ });
|
|
19100
|
-
/* harmony import */ var
|
|
19101
|
-
/* harmony import */ var _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
|
|
19102
|
-
/* harmony import */ var _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
|
|
19103
|
-
/* harmony import */ var _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
|
|
19104
|
-
/* harmony import */ var _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(
|
|
19105
|
-
/* harmony import */ var _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(
|
|
19106
|
-
/* harmony import */ var
|
|
19107
|
-
/* harmony import */ var
|
|
19108
|
-
/* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(
|
|
19109
|
-
/* harmony import */ var
|
|
19110
|
-
/* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(
|
|
19111
|
-
/* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(7952);
|
|
19112
|
-
|
|
19250
|
+
/* harmony import */ var _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9348);
|
|
19251
|
+
/* harmony import */ var _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(8529);
|
|
19252
|
+
/* harmony import */ var _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(451);
|
|
19253
|
+
/* harmony import */ var _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(7418);
|
|
19254
|
+
/* harmony import */ var _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(5393);
|
|
19255
|
+
/* harmony import */ var _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(5773);
|
|
19256
|
+
/* harmony import */ var _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(1394);
|
|
19257
|
+
/* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(821);
|
|
19258
|
+
/* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(6903);
|
|
19259
|
+
/* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(8355);
|
|
19260
|
+
/* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(7952);
|
|
19113
19261
|
|
|
19114
19262
|
|
|
19115
19263
|
const keyMap = {
|
|
19264
|
+
// @ts-ignore
|
|
19265
|
+
[_swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_0__["default"].type]: ['children'],
|
|
19116
19266
|
// @ts-ignore
|
|
19117
19267
|
[_swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_1__["default"].type]: ['children'],
|
|
19118
19268
|
// @ts-ignore
|
|
@@ -19123,169 +19273,161 @@ const keyMap = {
|
|
|
19123
19273
|
[_swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_4__["default"].type]: ['children'],
|
|
19124
19274
|
// @ts-ignore
|
|
19125
19275
|
[_swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_5__["default"].type]: ['children'],
|
|
19126
|
-
|
|
19127
|
-
[_swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_6__["default"].type]: ['children'],
|
|
19128
|
-
..._swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_7__.keyMapDefault
|
|
19276
|
+
..._swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_6__.keyMapDefault
|
|
19129
19277
|
};
|
|
19130
19278
|
const getNodeType = node => {
|
|
19131
|
-
if ((0,
|
|
19279
|
+
if ((0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_7__.isParseResultElement)(node)) {
|
|
19132
19280
|
return 'ParseResultElement';
|
|
19133
19281
|
}
|
|
19134
|
-
if ((0,
|
|
19135
|
-
return (0,
|
|
19282
|
+
if ((0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_7__.isElement)(node)) {
|
|
19283
|
+
return (0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_6__.getNodeType)(node);
|
|
19136
19284
|
}
|
|
19137
|
-
return (0,
|
|
19285
|
+
return (0,_swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_8__.getNodeType)(node);
|
|
19138
19286
|
};
|
|
19139
|
-
const isNode = element => (0,
|
|
19287
|
+
const isNode = element => (0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_7__.isElement)(element) || (0,_swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_8__.isNode)(element);
|
|
19140
19288
|
|
|
19141
19289
|
/* eslint-disable no-underscore-dangle */
|
|
19142
19290
|
|
|
19143
|
-
|
|
19144
|
-
|
|
19145
|
-
|
|
19146
|
-
|
|
19147
|
-
|
|
19148
|
-
init() {
|
|
19149
|
-
/**
|
|
19150
|
-
* Private API.
|
|
19151
|
-
*/
|
|
19152
|
-
|
|
19153
|
-
this.annotation = [];
|
|
19154
|
-
const maybeAddSourceMap = (node, element) => {
|
|
19155
|
-
if (!this.sourceMap) {
|
|
19156
|
-
return;
|
|
19157
|
-
}
|
|
19158
|
-
const sourceMap = new _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_10__.SourceMapElement();
|
|
19291
|
+
class JsonAstVisitor {
|
|
19292
|
+
sourceMap = false;
|
|
19293
|
+
ParseResultElement = {
|
|
19294
|
+
leave: element => {
|
|
19295
|
+
// mark first-non Annotation element as result
|
|
19159
19296
|
// @ts-ignore
|
|
19160
|
-
|
|
19161
|
-
|
|
19162
|
-
|
|
19163
|
-
|
|
19164
|
-
|
|
19297
|
+
const elements = element.findElements(_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_7__.isPrimitiveElement);
|
|
19298
|
+
if (elements.length > 0) {
|
|
19299
|
+
const resultElement = elements[0];
|
|
19300
|
+
resultElement.classes.push('result');
|
|
19301
|
+
}
|
|
19165
19302
|
|
|
19166
|
-
|
|
19167
|
-
|
|
19168
|
-
|
|
19303
|
+
// provide annotations
|
|
19304
|
+
this.annotations.forEach(annotationElement => {
|
|
19305
|
+
element.push(annotationElement);
|
|
19306
|
+
});
|
|
19307
|
+
this.annotations = [];
|
|
19308
|
+
}
|
|
19309
|
+
};
|
|
19310
|
+
constructor() {
|
|
19311
|
+
this.annotations = [];
|
|
19312
|
+
}
|
|
19169
19313
|
|
|
19170
|
-
|
|
19171
|
-
|
|
19172
|
-
|
|
19173
|
-
|
|
19174
|
-
|
|
19175
|
-
|
|
19176
|
-
|
|
19177
|
-
|
|
19178
|
-
|
|
19179
|
-
|
|
19180
|
-
|
|
19181
|
-
|
|
19182
|
-
|
|
19183
|
-
|
|
19184
|
-
|
|
19314
|
+
// eslint-disable-next-line class-methods-use-this
|
|
19315
|
+
document(node) {
|
|
19316
|
+
const element = new _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_9__.ParseResultElement();
|
|
19317
|
+
// @ts-ignore
|
|
19318
|
+
element._content = node.children;
|
|
19319
|
+
return element;
|
|
19320
|
+
}
|
|
19321
|
+
object(node) {
|
|
19322
|
+
const element = new _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_9__.ObjectElement();
|
|
19323
|
+
// @ts-ignore
|
|
19324
|
+
element._content = node.children;
|
|
19325
|
+
this.maybeAddSourceMap(node, element);
|
|
19326
|
+
return element;
|
|
19327
|
+
}
|
|
19328
|
+
property(node) {
|
|
19329
|
+
const element = new _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_10__.MemberElement();
|
|
19185
19330
|
|
|
19186
|
-
|
|
19187
|
-
|
|
19188
|
-
|
|
19189
|
-
|
|
19190
|
-
|
|
19191
|
-
}
|
|
19192
|
-
};
|
|
19193
|
-
this.object = function object(node) {
|
|
19194
|
-
const element = new _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_10__.ObjectElement();
|
|
19195
|
-
// @ts-ignore
|
|
19196
|
-
element._content = node.children;
|
|
19197
|
-
maybeAddSourceMap(node, element);
|
|
19198
|
-
return element;
|
|
19199
|
-
};
|
|
19200
|
-
this.property = function property(node) {
|
|
19201
|
-
const element = new _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_11__.MemberElement();
|
|
19331
|
+
// @ts-ignore
|
|
19332
|
+
element.content.key = node.key;
|
|
19333
|
+
// @ts-ignore
|
|
19334
|
+
element.content.value = node.value;
|
|
19335
|
+
this.maybeAddSourceMap(node, element);
|
|
19202
19336
|
|
|
19203
|
-
|
|
19204
|
-
|
|
19205
|
-
|
|
19206
|
-
|
|
19207
|
-
|
|
19208
|
-
|
|
19209
|
-
|
|
19210
|
-
|
|
19211
|
-
|
|
19212
|
-
|
|
19213
|
-
|
|
19214
|
-
|
|
19215
|
-
|
|
19216
|
-
|
|
19217
|
-
|
|
19218
|
-
|
|
19219
|
-
|
|
19220
|
-
this.
|
|
19221
|
-
|
|
19222
|
-
|
|
19223
|
-
|
|
19224
|
-
|
|
19225
|
-
|
|
19226
|
-
|
|
19227
|
-
|
|
19228
|
-
|
|
19229
|
-
|
|
19230
|
-
|
|
19231
|
-
|
|
19232
|
-
this.
|
|
19233
|
-
|
|
19234
|
-
|
|
19235
|
-
|
|
19236
|
-
|
|
19237
|
-
this.
|
|
19238
|
-
|
|
19239
|
-
|
|
19240
|
-
return element;
|
|
19241
|
-
};
|
|
19337
|
+
/**
|
|
19338
|
+
* Process possible errors here that may be present in pair node children as we're using direct field access.
|
|
19339
|
+
* There are usually 3 children here found: "key", ":", "value".
|
|
19340
|
+
*/
|
|
19341
|
+
if (node.children.length > 3) {
|
|
19342
|
+
node.children
|
|
19343
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
19344
|
+
.filter(child => child.type === 'error')
|
|
19345
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
19346
|
+
.forEach(errorNode => {
|
|
19347
|
+
this.error(errorNode, node, [], [node]);
|
|
19348
|
+
});
|
|
19349
|
+
}
|
|
19350
|
+
return element;
|
|
19351
|
+
}
|
|
19352
|
+
key(node) {
|
|
19353
|
+
const element = new _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_9__.StringElement(node.value);
|
|
19354
|
+
this.maybeAddSourceMap(node, element);
|
|
19355
|
+
return element;
|
|
19356
|
+
}
|
|
19357
|
+
array(node) {
|
|
19358
|
+
const element = new _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_9__.ArrayElement();
|
|
19359
|
+
// @ts-ignore
|
|
19360
|
+
element._content = node.children;
|
|
19361
|
+
this.maybeAddSourceMap(node, element);
|
|
19362
|
+
return element;
|
|
19363
|
+
}
|
|
19364
|
+
string(node) {
|
|
19365
|
+
const element = new _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_9__.StringElement(node.value);
|
|
19366
|
+
this.maybeAddSourceMap(node, element);
|
|
19367
|
+
return element;
|
|
19368
|
+
}
|
|
19369
|
+
number(node) {
|
|
19370
|
+
const element = new _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_9__.NumberElement(Number(node.value));
|
|
19371
|
+
this.maybeAddSourceMap(node, element);
|
|
19372
|
+
return element;
|
|
19373
|
+
}
|
|
19242
19374
|
|
|
19243
|
-
|
|
19244
|
-
|
|
19245
|
-
|
|
19246
|
-
|
|
19247
|
-
|
|
19248
|
-
|
|
19375
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
19376
|
+
null(node) {
|
|
19377
|
+
const element = new _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_9__.NullElement();
|
|
19378
|
+
this.maybeAddSourceMap(node, element);
|
|
19379
|
+
return element;
|
|
19380
|
+
}
|
|
19249
19381
|
|
|
19250
|
-
|
|
19251
|
-
|
|
19252
|
-
|
|
19253
|
-
|
|
19254
|
-
|
|
19255
|
-
|
|
19382
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
19383
|
+
true(node) {
|
|
19384
|
+
const element = new _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_9__.BooleanElement(true);
|
|
19385
|
+
this.maybeAddSourceMap(node, element);
|
|
19386
|
+
return element;
|
|
19387
|
+
}
|
|
19256
19388
|
|
|
19257
|
-
|
|
19258
|
-
|
|
19259
|
-
|
|
19260
|
-
|
|
19261
|
-
|
|
19262
|
-
|
|
19263
|
-
|
|
19264
|
-
|
|
19265
|
-
|
|
19266
|
-
|
|
19267
|
-
|
|
19268
|
-
|
|
19269
|
-
this.annotations.push(element);
|
|
19270
|
-
}
|
|
19271
|
-
return null;
|
|
19272
|
-
};
|
|
19273
|
-
this.error = function error(node, key, parent, path) {
|
|
19274
|
-
const message = node.isUnexpected ? `(Unexpected ${node.value})` : `(Error ${node.value})`;
|
|
19275
|
-
const element = new _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_10__.AnnotationElement(message);
|
|
19276
|
-
element.classes.push('error');
|
|
19277
|
-
maybeAddSourceMap(node, element);
|
|
19278
|
-
if (path.length === 0) {
|
|
19279
|
-
// no document to visit, only error is present in CST
|
|
19280
|
-
const parseResultElement = new _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_10__.ParseResultElement();
|
|
19281
|
-
parseResultElement.push(element);
|
|
19282
|
-
return parseResultElement;
|
|
19283
|
-
}
|
|
19389
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
19390
|
+
false(node) {
|
|
19391
|
+
const element = new _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_9__.BooleanElement(false);
|
|
19392
|
+
this.maybeAddSourceMap(node, element);
|
|
19393
|
+
return element;
|
|
19394
|
+
}
|
|
19395
|
+
literal(node) {
|
|
19396
|
+
if (node.isMissing) {
|
|
19397
|
+
const message = `(Missing ${node.value})`;
|
|
19398
|
+
const element = new _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_9__.AnnotationElement(message);
|
|
19399
|
+
element.classes.push('warning');
|
|
19400
|
+
this.maybeAddSourceMap(node, element);
|
|
19284
19401
|
this.annotations.push(element);
|
|
19285
|
-
|
|
19286
|
-
|
|
19402
|
+
}
|
|
19403
|
+
return null;
|
|
19287
19404
|
}
|
|
19288
|
-
|
|
19405
|
+
error(node, key, parent, path) {
|
|
19406
|
+
const message = node.isUnexpected ? `(Unexpected ${node.value})` : `(Error ${node.value})`;
|
|
19407
|
+
const element = new _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_9__.AnnotationElement(message);
|
|
19408
|
+
element.classes.push('error');
|
|
19409
|
+
this.maybeAddSourceMap(node, element);
|
|
19410
|
+
if (path.length === 0) {
|
|
19411
|
+
// no document to visit, only error is present in CST
|
|
19412
|
+
const parseResultElement = new _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_9__.ParseResultElement();
|
|
19413
|
+
parseResultElement.push(element);
|
|
19414
|
+
return parseResultElement;
|
|
19415
|
+
}
|
|
19416
|
+
this.annotations.push(element);
|
|
19417
|
+
return null;
|
|
19418
|
+
}
|
|
19419
|
+
maybeAddSourceMap(node, element) {
|
|
19420
|
+
if (!this.sourceMap) {
|
|
19421
|
+
return;
|
|
19422
|
+
}
|
|
19423
|
+
const sourceMap = new _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_9__.SourceMapElement();
|
|
19424
|
+
// @ts-ignore
|
|
19425
|
+
sourceMap.position = node.position;
|
|
19426
|
+
// @ts-ignore
|
|
19427
|
+
sourceMap.astNode = node;
|
|
19428
|
+
element.meta.set('sourceMap', sourceMap);
|
|
19429
|
+
}
|
|
19430
|
+
}
|
|
19289
19431
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (JsonAstVisitor);
|
|
19290
19432
|
|
|
19291
19433
|
/***/ })
|