@swagger-api/apidom-parser-adapter-arazzo-yaml-1 1.0.0-beta.51 → 1.0.0-rc.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.
|
@@ -1123,6 +1123,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
1123
1123
|
/* harmony export */ });
|
|
1124
1124
|
/* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(28400);
|
|
1125
1125
|
/* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(50726);
|
|
1126
|
+
/* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(10977);
|
|
1126
1127
|
|
|
1127
1128
|
|
|
1128
1129
|
/**
|
|
@@ -1138,21 +1139,19 @@ class Visitor {
|
|
|
1138
1139
|
Object.assign(this, options);
|
|
1139
1140
|
}
|
|
1140
1141
|
|
|
1141
|
-
|
|
1142
|
+
/* eslint-disable class-methods-use-this, no-param-reassign */
|
|
1142
1143
|
copyMetaAndAttributes(from, to) {
|
|
1143
1144
|
if (from.meta.length > 0 || to.meta.length > 0) {
|
|
1144
|
-
// eslint-disable-next-line no-param-reassign
|
|
1145
1145
|
to.meta = (0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_0__["default"])(to.meta, from.meta);
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
}
|
|
1146
|
+
}
|
|
1147
|
+
if ((0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_1__.hasElementSourceMap)(from)) {
|
|
1148
|
+
(0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_2__.assignSourceMap)(to, from);
|
|
1150
1149
|
}
|
|
1151
1150
|
if (from.attributes.length > 0 || from.meta.length > 0) {
|
|
1152
|
-
// eslint-disable-next-line no-param-reassign
|
|
1153
1151
|
to.attributes = (0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_0__["default"])(to.attributes, from.attributes);
|
|
1154
1152
|
}
|
|
1155
1153
|
}
|
|
1154
|
+
/* eslint-enable class-methods-use-this, no-param-reassign */
|
|
1156
1155
|
}
|
|
1157
1156
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Visitor);
|
|
1158
1157
|
|
|
@@ -1287,65 +1286,6 @@ const jsonSchemaDraft4 = {
|
|
|
1287
1286
|
|
|
1288
1287
|
/***/ }),
|
|
1289
1288
|
|
|
1290
|
-
/***/ 3487:
|
|
1291
|
-
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
1292
|
-
|
|
1293
|
-
"use strict";
|
|
1294
|
-
__webpack_require__.r(__webpack_exports__);
|
|
1295
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1296
|
-
/* harmony export */ Point: () => (/* binding */ Point),
|
|
1297
|
-
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
1298
|
-
/* harmony export */ });
|
|
1299
|
-
/* eslint-disable max-classes-per-file */
|
|
1300
|
-
|
|
1301
|
-
/**
|
|
1302
|
-
* @public
|
|
1303
|
-
*/
|
|
1304
|
-
|
|
1305
|
-
/**
|
|
1306
|
-
* @public
|
|
1307
|
-
*/
|
|
1308
|
-
class Point {
|
|
1309
|
-
static type = 'point';
|
|
1310
|
-
type = Point.type;
|
|
1311
|
-
row;
|
|
1312
|
-
column;
|
|
1313
|
-
char;
|
|
1314
|
-
constructor({
|
|
1315
|
-
row,
|
|
1316
|
-
column,
|
|
1317
|
-
char
|
|
1318
|
-
}) {
|
|
1319
|
-
this.row = row;
|
|
1320
|
-
this.column = column;
|
|
1321
|
-
this.char = char;
|
|
1322
|
-
}
|
|
1323
|
-
}
|
|
1324
|
-
|
|
1325
|
-
/**
|
|
1326
|
-
* @public
|
|
1327
|
-
*/
|
|
1328
|
-
|
|
1329
|
-
/**
|
|
1330
|
-
* @public
|
|
1331
|
-
*/
|
|
1332
|
-
class Position {
|
|
1333
|
-
static type = 'position';
|
|
1334
|
-
type = Position.type;
|
|
1335
|
-
start;
|
|
1336
|
-
end;
|
|
1337
|
-
constructor({
|
|
1338
|
-
start,
|
|
1339
|
-
end
|
|
1340
|
-
}) {
|
|
1341
|
-
this.start = start;
|
|
1342
|
-
this.end = end;
|
|
1343
|
-
}
|
|
1344
|
-
}
|
|
1345
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Position);
|
|
1346
|
-
|
|
1347
|
-
/***/ }),
|
|
1348
|
-
|
|
1349
1289
|
/***/ 3491:
|
|
1350
1290
|
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
1351
1291
|
|
|
@@ -2570,132 +2510,6 @@ module.exports = isString;
|
|
|
2570
2510
|
module.exports = __webpack_require__(18337);
|
|
2571
2511
|
|
|
2572
2512
|
|
|
2573
|
-
/***/ }),
|
|
2574
|
-
|
|
2575
|
-
/***/ 8575:
|
|
2576
|
-
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
2577
|
-
|
|
2578
|
-
"use strict";
|
|
2579
|
-
__webpack_require__.r(__webpack_exports__);
|
|
2580
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
2581
|
-
/* harmony export */ "default": () => (/* binding */ _clone)
|
|
2582
|
-
/* harmony export */ });
|
|
2583
|
-
/* harmony import */ var _cloneRegExp_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(31254);
|
|
2584
|
-
/* harmony import */ var _type_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(60963);
|
|
2585
|
-
|
|
2586
|
-
|
|
2587
|
-
|
|
2588
|
-
/**
|
|
2589
|
-
* Copies an object.
|
|
2590
|
-
*
|
|
2591
|
-
* @private
|
|
2592
|
-
* @param {*} value The value to be copied
|
|
2593
|
-
* @param {Boolean} deep Whether or not to perform deep cloning.
|
|
2594
|
-
* @return {*} The copied value.
|
|
2595
|
-
*/
|
|
2596
|
-
function _clone(value, deep, map) {
|
|
2597
|
-
map || (map = new _ObjectMap());
|
|
2598
|
-
|
|
2599
|
-
// this avoids the slower switch with a quick if decision removing some milliseconds in each run.
|
|
2600
|
-
if (_isPrimitive(value)) {
|
|
2601
|
-
return value;
|
|
2602
|
-
}
|
|
2603
|
-
var copy = function copy(copiedValue) {
|
|
2604
|
-
// Check for circular and same references on the object graph and return its corresponding clone.
|
|
2605
|
-
var cachedCopy = map.get(value);
|
|
2606
|
-
if (cachedCopy) {
|
|
2607
|
-
return cachedCopy;
|
|
2608
|
-
}
|
|
2609
|
-
map.set(value, copiedValue);
|
|
2610
|
-
for (var key in value) {
|
|
2611
|
-
if (Object.prototype.hasOwnProperty.call(value, key)) {
|
|
2612
|
-
copiedValue[key] = deep ? _clone(value[key], true, map) : value[key];
|
|
2613
|
-
}
|
|
2614
|
-
}
|
|
2615
|
-
return copiedValue;
|
|
2616
|
-
};
|
|
2617
|
-
switch ((0,_type_js__WEBPACK_IMPORTED_MODULE_0__["default"])(value)) {
|
|
2618
|
-
case 'Object':
|
|
2619
|
-
return copy(Object.create(Object.getPrototypeOf(value)));
|
|
2620
|
-
case 'Array':
|
|
2621
|
-
return copy(Array(value.length));
|
|
2622
|
-
case 'Date':
|
|
2623
|
-
return new Date(value.valueOf());
|
|
2624
|
-
case 'RegExp':
|
|
2625
|
-
return (0,_cloneRegExp_js__WEBPACK_IMPORTED_MODULE_1__["default"])(value);
|
|
2626
|
-
case 'Int8Array':
|
|
2627
|
-
case 'Uint8Array':
|
|
2628
|
-
case 'Uint8ClampedArray':
|
|
2629
|
-
case 'Int16Array':
|
|
2630
|
-
case 'Uint16Array':
|
|
2631
|
-
case 'Int32Array':
|
|
2632
|
-
case 'Uint32Array':
|
|
2633
|
-
case 'Float32Array':
|
|
2634
|
-
case 'Float64Array':
|
|
2635
|
-
case 'BigInt64Array':
|
|
2636
|
-
case 'BigUint64Array':
|
|
2637
|
-
return value.slice();
|
|
2638
|
-
default:
|
|
2639
|
-
return value;
|
|
2640
|
-
}
|
|
2641
|
-
}
|
|
2642
|
-
function _isPrimitive(param) {
|
|
2643
|
-
var type = typeof param;
|
|
2644
|
-
return param == null || type != 'object' && type != 'function';
|
|
2645
|
-
}
|
|
2646
|
-
var _ObjectMap = /*#__PURE__*/function () {
|
|
2647
|
-
function _ObjectMap() {
|
|
2648
|
-
this.map = {};
|
|
2649
|
-
this.length = 0;
|
|
2650
|
-
}
|
|
2651
|
-
_ObjectMap.prototype.set = function (key, value) {
|
|
2652
|
-
var hashedKey = this.hash(key);
|
|
2653
|
-
var bucket = this.map[hashedKey];
|
|
2654
|
-
if (!bucket) {
|
|
2655
|
-
this.map[hashedKey] = bucket = [];
|
|
2656
|
-
}
|
|
2657
|
-
bucket.push([key, value]);
|
|
2658
|
-
this.length += 1;
|
|
2659
|
-
};
|
|
2660
|
-
_ObjectMap.prototype.hash = function (key) {
|
|
2661
|
-
var hashedKey = [];
|
|
2662
|
-
for (var value in key) {
|
|
2663
|
-
hashedKey.push(Object.prototype.toString.call(key[value]));
|
|
2664
|
-
}
|
|
2665
|
-
return hashedKey.join();
|
|
2666
|
-
};
|
|
2667
|
-
_ObjectMap.prototype.get = function (key) {
|
|
2668
|
-
/**
|
|
2669
|
-
* depending on the number of objects to be cloned is faster to just iterate over the items in the map just because the hash function is so costly,
|
|
2670
|
-
* on my tests this number is 180, anything above that using the hash function is faster.
|
|
2671
|
-
*/
|
|
2672
|
-
if (this.length <= 180) {
|
|
2673
|
-
for (var p in this.map) {
|
|
2674
|
-
var bucket = this.map[p];
|
|
2675
|
-
for (var i = 0; i < bucket.length; i += 1) {
|
|
2676
|
-
var element = bucket[i];
|
|
2677
|
-
if (element[0] === key) {
|
|
2678
|
-
return element[1];
|
|
2679
|
-
}
|
|
2680
|
-
}
|
|
2681
|
-
}
|
|
2682
|
-
return;
|
|
2683
|
-
}
|
|
2684
|
-
var hashedKey = this.hash(key);
|
|
2685
|
-
var bucket = this.map[hashedKey];
|
|
2686
|
-
if (!bucket) {
|
|
2687
|
-
return;
|
|
2688
|
-
}
|
|
2689
|
-
for (var i = 0; i < bucket.length; i += 1) {
|
|
2690
|
-
var element = bucket[i];
|
|
2691
|
-
if (element[0] === key) {
|
|
2692
|
-
return element[1];
|
|
2693
|
-
}
|
|
2694
|
-
}
|
|
2695
|
-
};
|
|
2696
|
-
return _ObjectMap;
|
|
2697
|
-
}();
|
|
2698
|
-
|
|
2699
2513
|
/***/ }),
|
|
2700
2514
|
|
|
2701
2515
|
/***/ 8666:
|
|
@@ -3473,6 +3287,7 @@ class DependentRequiredVisitor extends _swagger_api_apidom_ns_json_schema_draft_
|
|
|
3473
3287
|
"use strict";
|
|
3474
3288
|
__webpack_require__.r(__webpack_exports__);
|
|
3475
3289
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
3290
|
+
/* harmony export */ assignSourceMap: () => (/* binding */ assignSourceMap),
|
|
3476
3291
|
/* harmony export */ dereference: () => (/* binding */ dereference)
|
|
3477
3292
|
/* harmony export */ });
|
|
3478
3293
|
/* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(66719);
|
|
@@ -3507,6 +3322,20 @@ const dereference = (object, root) => {
|
|
|
3507
3322
|
return val;
|
|
3508
3323
|
}, object);
|
|
3509
3324
|
};
|
|
3325
|
+
/**
|
|
3326
|
+
* @public
|
|
3327
|
+
*/
|
|
3328
|
+
/* eslint-disable no-param-reassign */
|
|
3329
|
+
const assignSourceMap = (to, from) => {
|
|
3330
|
+
to.startPositionRow = from === null || from === void 0 ? void 0 : from.startPositionRow;
|
|
3331
|
+
to.startPositionColumn = from === null || from === void 0 ? void 0 : from.startPositionColumn;
|
|
3332
|
+
to.startIndex = from === null || from === void 0 ? void 0 : from.startIndex;
|
|
3333
|
+
to.endPositionRow = from === null || from === void 0 ? void 0 : from.endPositionRow;
|
|
3334
|
+
to.endPositionColumn = from === null || from === void 0 ? void 0 : from.endPositionColumn;
|
|
3335
|
+
to.endIndex = from === null || from === void 0 ? void 0 : from.endIndex;
|
|
3336
|
+
return to;
|
|
3337
|
+
};
|
|
3338
|
+
/* eslint-enable no-param-reassign */
|
|
3510
3339
|
|
|
3511
3340
|
/***/ }),
|
|
3512
3341
|
|
|
@@ -3582,9 +3411,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
3582
3411
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
3583
3412
|
/* harmony export */ isLiteral: () => (/* binding */ isLiteral),
|
|
3584
3413
|
/* harmony export */ isNodeType: () => (/* binding */ isNodeType),
|
|
3585
|
-
/* harmony export */ isParseResult: () => (/* binding */ isParseResult)
|
|
3586
|
-
/* harmony export */ isPoint: () => (/* binding */ isPoint),
|
|
3587
|
-
/* harmony export */ isPosition: () => (/* binding */ isPosition)
|
|
3414
|
+
/* harmony export */ isParseResult: () => (/* binding */ isParseResult)
|
|
3588
3415
|
/* harmony export */ });
|
|
3589
3416
|
/**
|
|
3590
3417
|
* @public
|
|
@@ -3596,16 +3423,6 @@ const isNodeType = (type, node) => node != null && typeof node === 'object' && '
|
|
|
3596
3423
|
*/
|
|
3597
3424
|
const isLiteral = node => isNodeType('literal', node);
|
|
3598
3425
|
|
|
3599
|
-
/**
|
|
3600
|
-
* @public
|
|
3601
|
-
*/
|
|
3602
|
-
const isPosition = node => isNodeType('position', node);
|
|
3603
|
-
|
|
3604
|
-
/**
|
|
3605
|
-
* @public
|
|
3606
|
-
*/
|
|
3607
|
-
const isPoint = node => isNodeType('point', node);
|
|
3608
|
-
|
|
3609
3426
|
/**
|
|
3610
3427
|
* @public
|
|
3611
3428
|
*/
|
|
@@ -8989,8 +8806,7 @@ const keyMapDefault = {
|
|
|
8989
8806
|
LinkElement: [],
|
|
8990
8807
|
Annotation: [],
|
|
8991
8808
|
Comment: [],
|
|
8992
|
-
ParseResultElement: ['content']
|
|
8993
|
-
SourceMap: ['content']
|
|
8809
|
+
ParseResultElement: ['content']
|
|
8994
8810
|
};
|
|
8995
8811
|
class PredicateVisitor {
|
|
8996
8812
|
result;
|
|
@@ -10407,8 +10223,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
10407
10223
|
/* harmony export */ keyMap: () => (/* binding */ keyMap)
|
|
10408
10224
|
/* harmony export */ });
|
|
10409
10225
|
/* harmony import */ var _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(60331);
|
|
10410
|
-
/* harmony import */ var _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
|
|
10411
|
-
/* harmony import */ var _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(76162);
|
|
10226
|
+
/* harmony import */ var _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(76162);
|
|
10412
10227
|
/* harmony import */ var _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(9375);
|
|
10413
10228
|
/* harmony import */ var _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(47177);
|
|
10414
10229
|
/* harmony import */ var _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(3252);
|
|
@@ -10423,9 +10238,11 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
10423
10238
|
/* harmony import */ var _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(7131);
|
|
10424
10239
|
/* harmony import */ var _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(86339);
|
|
10425
10240
|
/* harmony import */ var _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(24676);
|
|
10241
|
+
/* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(10977);
|
|
10426
10242
|
/* harmony import */ var _TreeCursorSyntaxNode_mjs__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(97363);
|
|
10427
10243
|
|
|
10428
10244
|
|
|
10245
|
+
|
|
10429
10246
|
const keyMap = {
|
|
10430
10247
|
stream: ['children'],
|
|
10431
10248
|
document: ['children'],
|
|
@@ -10445,31 +10262,14 @@ class CstVisitor {
|
|
|
10445
10262
|
static isKind(ending) {
|
|
10446
10263
|
return node => node != null && typeof node === 'object' && 'type' in node && typeof node.type === 'string' && node.type.endsWith(ending);
|
|
10447
10264
|
}
|
|
10448
|
-
static toPosition(node) {
|
|
10449
|
-
const start = new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_1__.Point({
|
|
10450
|
-
row: node.startPosition.row,
|
|
10451
|
-
column: node.startPosition.column,
|
|
10452
|
-
char: node.startIndex
|
|
10453
|
-
});
|
|
10454
|
-
const end = new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_1__.Point({
|
|
10455
|
-
row: node.endPosition.row,
|
|
10456
|
-
column: node.endPosition.column,
|
|
10457
|
-
char: node.endIndex
|
|
10458
|
-
});
|
|
10459
|
-
return new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_1__["default"]({
|
|
10460
|
-
start,
|
|
10461
|
-
end
|
|
10462
|
-
});
|
|
10463
|
-
}
|
|
10464
10265
|
static kindNodeToYamlAnchor(node) {
|
|
10465
10266
|
const {
|
|
10466
10267
|
anchor: anchorNode
|
|
10467
10268
|
} = node;
|
|
10468
10269
|
if (typeof anchorNode === 'undefined') return undefined;
|
|
10469
|
-
return new
|
|
10470
|
-
name: anchorNode.text
|
|
10471
|
-
|
|
10472
|
-
});
|
|
10270
|
+
return new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_1__["default"]((0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_2__.assignSourceMap)({
|
|
10271
|
+
name: anchorNode.text
|
|
10272
|
+
}, anchorNode));
|
|
10473
10273
|
}
|
|
10474
10274
|
static hasKeyValuePairEmptyKey(node) {
|
|
10475
10275
|
if (node.type !== 'block_mapping_pair' && node.type !== 'flow_pair') {
|
|
@@ -10491,12 +10291,10 @@ class CstVisitor {
|
|
|
10491
10291
|
} = node;
|
|
10492
10292
|
const explicitName = (tagNode === null || tagNode === void 0 ? void 0 : tagNode.text) || (node.type === 'plain_scalar' ? '?' : '!');
|
|
10493
10293
|
const kind = node.type.endsWith('mapping') ? _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_3__.YamlNodeKind.Mapping : node.type.endsWith('sequence') ? _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_3__.YamlNodeKind.Sequence : _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_3__.YamlNodeKind.Scalar;
|
|
10494
|
-
|
|
10495
|
-
return new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_3__["default"]({
|
|
10294
|
+
return new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_3__["default"]((0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_2__.assignSourceMap)({
|
|
10496
10295
|
explicitName,
|
|
10497
|
-
kind
|
|
10498
|
-
|
|
10499
|
-
});
|
|
10296
|
+
kind
|
|
10297
|
+
}, tagNode));
|
|
10500
10298
|
}
|
|
10501
10299
|
|
|
10502
10300
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
@@ -10504,12 +10302,10 @@ class CstVisitor {
|
|
|
10504
10302
|
referenceManager;
|
|
10505
10303
|
stream = {
|
|
10506
10304
|
enter: node => {
|
|
10507
|
-
|
|
10508
|
-
return new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_4__["default"]({
|
|
10305
|
+
return new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_4__["default"]((0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_2__.assignSourceMap)({
|
|
10509
10306
|
children: node.children,
|
|
10510
|
-
position,
|
|
10511
10307
|
isMissing: node.isMissing
|
|
10512
|
-
});
|
|
10308
|
+
}, node));
|
|
10513
10309
|
},
|
|
10514
10310
|
leave: stream => {
|
|
10515
10311
|
return new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_5__["default"]({
|
|
@@ -10520,58 +10316,50 @@ class CstVisitor {
|
|
|
10520
10316
|
yaml_directive = {
|
|
10521
10317
|
enter: node => {
|
|
10522
10318
|
var _node$firstNamedChild;
|
|
10523
|
-
const position = CstVisitor.toPosition(node);
|
|
10524
10319
|
const version = node === null || node === void 0 || (_node$firstNamedChild = node.firstNamedChild) === null || _node$firstNamedChild === void 0 ? void 0 : _node$firstNamedChild.text;
|
|
10525
|
-
return new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_6__["default"]({
|
|
10526
|
-
position,
|
|
10320
|
+
return new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_6__["default"]((0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_2__.assignSourceMap)({
|
|
10527
10321
|
name: '%YAML',
|
|
10528
10322
|
parameters: {
|
|
10529
10323
|
version
|
|
10530
10324
|
}
|
|
10531
|
-
});
|
|
10325
|
+
}, node));
|
|
10532
10326
|
}
|
|
10533
10327
|
};
|
|
10534
10328
|
tag_directive = {
|
|
10535
10329
|
enter: node => {
|
|
10536
|
-
const position = CstVisitor.toPosition(node);
|
|
10537
10330
|
const tagHandleNode = node.children[0];
|
|
10538
10331
|
const tagPrefixNode = node.children[1];
|
|
10539
|
-
const tagDirective = new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_6__["default"]({
|
|
10540
|
-
position,
|
|
10332
|
+
const tagDirective = new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_6__["default"]((0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_2__.assignSourceMap)({
|
|
10541
10333
|
name: '%TAG',
|
|
10542
10334
|
parameters: {
|
|
10543
10335
|
handle: tagHandleNode === null || tagHandleNode === void 0 ? void 0 : tagHandleNode.text,
|
|
10544
10336
|
prefix: tagPrefixNode === null || tagPrefixNode === void 0 ? void 0 : tagPrefixNode.text
|
|
10545
10337
|
}
|
|
10546
|
-
});
|
|
10338
|
+
}, node));
|
|
10547
10339
|
this.schema.registerTagDirective(tagDirective);
|
|
10548
10340
|
return tagDirective;
|
|
10549
10341
|
}
|
|
10550
10342
|
};
|
|
10551
10343
|
reserved_directive = {
|
|
10552
10344
|
enter: node => {
|
|
10553
|
-
const position = CstVisitor.toPosition(node);
|
|
10554
10345
|
const directiveNameNode = node.children[0];
|
|
10555
10346
|
const directiveParameter1Node = node.children[1];
|
|
10556
10347
|
const directiveParameter2Node = node.children[2];
|
|
10557
|
-
return new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_6__["default"]({
|
|
10558
|
-
position,
|
|
10348
|
+
return new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_6__["default"]((0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_2__.assignSourceMap)({
|
|
10559
10349
|
name: directiveNameNode === null || directiveNameNode === void 0 ? void 0 : directiveNameNode.text,
|
|
10560
10350
|
parameters: {
|
|
10561
10351
|
handle: directiveParameter1Node === null || directiveParameter1Node === void 0 ? void 0 : directiveParameter1Node.text,
|
|
10562
10352
|
prefix: directiveParameter2Node === null || directiveParameter2Node === void 0 ? void 0 : directiveParameter2Node.text
|
|
10563
10353
|
}
|
|
10564
|
-
});
|
|
10354
|
+
}, node));
|
|
10565
10355
|
}
|
|
10566
10356
|
};
|
|
10567
10357
|
document = {
|
|
10568
10358
|
enter: node => {
|
|
10569
|
-
|
|
10570
|
-
return new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_7__["default"]({
|
|
10359
|
+
return new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_7__["default"]((0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_2__.assignSourceMap)({
|
|
10571
10360
|
children: node.children,
|
|
10572
|
-
position,
|
|
10573
10361
|
isMissing: node.isMissing
|
|
10574
|
-
});
|
|
10362
|
+
}, node));
|
|
10575
10363
|
},
|
|
10576
10364
|
leave: node => {
|
|
10577
10365
|
node.children = node.children.flat();
|
|
@@ -10590,21 +10378,17 @@ class CstVisitor {
|
|
|
10590
10378
|
if (CstVisitor.isScalar(kindCandidate) || CstVisitor.isMapping(kindCandidate) || CstVisitor.isSequence(kindCandidate)) {
|
|
10591
10379
|
return node.children;
|
|
10592
10380
|
}
|
|
10593
|
-
|
|
10594
10381
|
// kind node not present in flow node, creating empty node
|
|
10595
|
-
const emptyPoint = new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_1__.Point({
|
|
10596
|
-
row: kindCandidate.endPosition.row,
|
|
10597
|
-
column: kindCandidate.endPosition.column,
|
|
10598
|
-
char: kindCandidate.endIndex
|
|
10599
|
-
});
|
|
10600
10382
|
const emptyScalarNode = new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_8__["default"]({
|
|
10601
10383
|
content: '',
|
|
10602
10384
|
anchor: CstVisitor.kindNodeToYamlAnchor(kindCandidate),
|
|
10603
10385
|
tag: CstVisitor.kindNodeToYamlTag(kindCandidate),
|
|
10604
|
-
|
|
10605
|
-
|
|
10606
|
-
|
|
10607
|
-
|
|
10386
|
+
startPositionRow: kindCandidate.endPositionRow,
|
|
10387
|
+
startPositionColumn: kindCandidate.endPositionColumn,
|
|
10388
|
+
startIndex: kindCandidate.endIndex,
|
|
10389
|
+
endPositionRow: kindCandidate.endPositionRow,
|
|
10390
|
+
endPositionColumn: kindCandidate.endPositionColumn,
|
|
10391
|
+
endIndex: kindCandidate.endIndex,
|
|
10608
10392
|
styleGroup: _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_9__.YamlStyleGroup.Flow,
|
|
10609
10393
|
style: _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_9__.YamlStyle.Plain
|
|
10610
10394
|
});
|
|
@@ -10624,25 +10408,22 @@ class CstVisitor {
|
|
|
10624
10408
|
};
|
|
10625
10409
|
block_mapping = {
|
|
10626
10410
|
enter: node => {
|
|
10627
|
-
const position = CstVisitor.toPosition(node);
|
|
10628
10411
|
const tag = CstVisitor.kindNodeToYamlTag(node);
|
|
10629
10412
|
const anchor = CstVisitor.kindNodeToYamlAnchor(node);
|
|
10630
|
-
const mappingNode = new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_10__["default"]({
|
|
10413
|
+
const mappingNode = new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_10__["default"]((0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_2__.assignSourceMap)({
|
|
10631
10414
|
children: node.children,
|
|
10632
|
-
position,
|
|
10633
10415
|
anchor,
|
|
10634
10416
|
tag,
|
|
10635
10417
|
styleGroup: _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_9__.YamlStyleGroup.Block,
|
|
10636
10418
|
style: _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_9__.YamlStyle.NextLine,
|
|
10637
10419
|
isMissing: node.isMissing
|
|
10638
|
-
});
|
|
10420
|
+
}, node));
|
|
10639
10421
|
this.registerAnchor(mappingNode);
|
|
10640
10422
|
return this.schema.resolve(mappingNode);
|
|
10641
10423
|
}
|
|
10642
10424
|
};
|
|
10643
10425
|
block_mapping_pair = {
|
|
10644
10426
|
enter: node => {
|
|
10645
|
-
const position = CstVisitor.toPosition(node);
|
|
10646
10427
|
const children = [...node.children];
|
|
10647
10428
|
if (CstVisitor.hasKeyValuePairEmptyKey(node)) {
|
|
10648
10429
|
const keyNode = this.createKeyValuePairEmptyKey(node);
|
|
@@ -10652,35 +10433,31 @@ class CstVisitor {
|
|
|
10652
10433
|
const valueNode = this.createKeyValuePairEmptyValue(node);
|
|
10653
10434
|
children.push(valueNode);
|
|
10654
10435
|
}
|
|
10655
|
-
return new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_11__["default"]({
|
|
10436
|
+
return new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_11__["default"]((0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_2__.assignSourceMap)({
|
|
10656
10437
|
children,
|
|
10657
|
-
position,
|
|
10658
10438
|
styleGroup: _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_9__.YamlStyleGroup.Block,
|
|
10659
10439
|
isMissing: node.isMissing
|
|
10660
|
-
});
|
|
10440
|
+
}, node));
|
|
10661
10441
|
}
|
|
10662
10442
|
};
|
|
10663
10443
|
flow_mapping = {
|
|
10664
10444
|
enter: node => {
|
|
10665
|
-
const position = CstVisitor.toPosition(node);
|
|
10666
10445
|
const tag = CstVisitor.kindNodeToYamlTag(node);
|
|
10667
10446
|
const anchor = CstVisitor.kindNodeToYamlAnchor(node);
|
|
10668
|
-
const mappingNode = new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_10__["default"]({
|
|
10447
|
+
const mappingNode = new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_10__["default"]((0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_2__.assignSourceMap)({
|
|
10669
10448
|
children: node.children,
|
|
10670
|
-
position,
|
|
10671
10449
|
anchor,
|
|
10672
10450
|
tag,
|
|
10673
10451
|
styleGroup: _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_9__.YamlStyleGroup.Flow,
|
|
10674
10452
|
style: _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_9__.YamlStyle.Explicit,
|
|
10675
10453
|
isMissing: node.isMissing
|
|
10676
|
-
});
|
|
10454
|
+
}, node));
|
|
10677
10455
|
this.registerAnchor(mappingNode);
|
|
10678
10456
|
return this.schema.resolve(mappingNode);
|
|
10679
10457
|
}
|
|
10680
10458
|
};
|
|
10681
10459
|
flow_pair = {
|
|
10682
10460
|
enter: node => {
|
|
10683
|
-
const position = CstVisitor.toPosition(node);
|
|
10684
10461
|
const children = [...node.children];
|
|
10685
10462
|
if (CstVisitor.hasKeyValuePairEmptyKey(node)) {
|
|
10686
10463
|
const keyNode = this.createKeyValuePairEmptyKey(node);
|
|
@@ -10690,12 +10467,11 @@ class CstVisitor {
|
|
|
10690
10467
|
const valueNode = this.createKeyValuePairEmptyValue(node);
|
|
10691
10468
|
children.push(valueNode);
|
|
10692
10469
|
}
|
|
10693
|
-
return new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_11__["default"]({
|
|
10470
|
+
return new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_11__["default"]((0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_2__.assignSourceMap)({
|
|
10694
10471
|
children,
|
|
10695
|
-
position,
|
|
10696
10472
|
styleGroup: _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_9__.YamlStyleGroup.Flow,
|
|
10697
10473
|
isMissing: node.isMissing
|
|
10698
|
-
});
|
|
10474
|
+
}, node));
|
|
10699
10475
|
}
|
|
10700
10476
|
};
|
|
10701
10477
|
keyValuePair = {
|
|
@@ -10705,17 +10481,15 @@ class CstVisitor {
|
|
|
10705
10481
|
};
|
|
10706
10482
|
block_sequence = {
|
|
10707
10483
|
enter: node => {
|
|
10708
|
-
const position = CstVisitor.toPosition(node);
|
|
10709
10484
|
const tag = CstVisitor.kindNodeToYamlTag(node);
|
|
10710
10485
|
const anchor = CstVisitor.kindNodeToYamlAnchor(node);
|
|
10711
|
-
const sequenceNode = new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_12__["default"]({
|
|
10486
|
+
const sequenceNode = new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_12__["default"]((0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_2__.assignSourceMap)({
|
|
10712
10487
|
children: node.children,
|
|
10713
|
-
position,
|
|
10714
10488
|
anchor,
|
|
10715
10489
|
tag,
|
|
10716
10490
|
styleGroup: _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_9__.YamlStyleGroup.Block,
|
|
10717
10491
|
style: _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_9__.YamlStyle.NextLine
|
|
10718
|
-
});
|
|
10492
|
+
}, node));
|
|
10719
10493
|
this.registerAnchor(sequenceNode);
|
|
10720
10494
|
return this.schema.resolve(sequenceNode);
|
|
10721
10495
|
}
|
|
@@ -10728,21 +10502,18 @@ class CstVisitor {
|
|
|
10728
10502
|
}
|
|
10729
10503
|
|
|
10730
10504
|
// create empty node
|
|
10731
|
-
const emptyPoint = new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_1__.Point({
|
|
10732
|
-
row: node.endPosition.row,
|
|
10733
|
-
column: node.endPosition.column,
|
|
10734
|
-
char: node.endIndex
|
|
10735
|
-
});
|
|
10736
10505
|
const emptyScalarNode = new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_8__["default"]({
|
|
10737
10506
|
content: '',
|
|
10738
10507
|
tag: new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_3__["default"]({
|
|
10739
10508
|
explicitName: '?',
|
|
10740
10509
|
kind: _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_3__.YamlNodeKind.Scalar
|
|
10741
10510
|
}),
|
|
10742
|
-
|
|
10743
|
-
|
|
10744
|
-
|
|
10745
|
-
|
|
10511
|
+
startPositionRow: node.endPositionRow,
|
|
10512
|
+
startPositionColumn: node.endPositionColumn,
|
|
10513
|
+
startIndex: node.endIndex,
|
|
10514
|
+
endPositionRow: node.endPositionRow,
|
|
10515
|
+
endPositionColumn: node.endPositionColumn,
|
|
10516
|
+
endIndex: node.endIndex,
|
|
10746
10517
|
styleGroup: _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_9__.YamlStyleGroup.Flow,
|
|
10747
10518
|
style: _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_9__.YamlStyle.Plain
|
|
10748
10519
|
});
|
|
@@ -10751,17 +10522,15 @@ class CstVisitor {
|
|
|
10751
10522
|
};
|
|
10752
10523
|
flow_sequence = {
|
|
10753
10524
|
enter: node => {
|
|
10754
|
-
const position = CstVisitor.toPosition(node);
|
|
10755
10525
|
const tag = CstVisitor.kindNodeToYamlTag(node);
|
|
10756
10526
|
const anchor = CstVisitor.kindNodeToYamlAnchor(node);
|
|
10757
|
-
const sequenceNode = new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_12__["default"]({
|
|
10527
|
+
const sequenceNode = new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_12__["default"]((0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_2__.assignSourceMap)({
|
|
10758
10528
|
children: node.children.flat(),
|
|
10759
|
-
position,
|
|
10760
10529
|
anchor,
|
|
10761
10530
|
tag,
|
|
10762
10531
|
styleGroup: _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_9__.YamlStyleGroup.Flow,
|
|
10763
10532
|
style: _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_9__.YamlStyle.Explicit
|
|
10764
|
-
});
|
|
10533
|
+
}, node));
|
|
10765
10534
|
this.registerAnchor(sequenceNode);
|
|
10766
10535
|
return this.schema.resolve(sequenceNode);
|
|
10767
10536
|
}
|
|
@@ -10773,69 +10542,61 @@ class CstVisitor {
|
|
|
10773
10542
|
};
|
|
10774
10543
|
plain_scalar = {
|
|
10775
10544
|
enter: node => {
|
|
10776
|
-
const position = CstVisitor.toPosition(node);
|
|
10777
10545
|
const tag = CstVisitor.kindNodeToYamlTag(node);
|
|
10778
10546
|
const anchor = CstVisitor.kindNodeToYamlAnchor(node);
|
|
10779
|
-
const scalarNode = new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_8__["default"]({
|
|
10547
|
+
const scalarNode = new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_8__["default"]((0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_2__.assignSourceMap)({
|
|
10780
10548
|
content: node.text,
|
|
10781
10549
|
anchor,
|
|
10782
10550
|
tag,
|
|
10783
|
-
position,
|
|
10784
10551
|
styleGroup: _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_9__.YamlStyleGroup.Flow,
|
|
10785
10552
|
style: _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_9__.YamlStyle.Plain
|
|
10786
|
-
});
|
|
10553
|
+
}, node));
|
|
10787
10554
|
this.registerAnchor(scalarNode);
|
|
10788
10555
|
return this.schema.resolve(scalarNode);
|
|
10789
10556
|
}
|
|
10790
10557
|
};
|
|
10791
10558
|
single_quote_scalar = {
|
|
10792
10559
|
enter: node => {
|
|
10793
|
-
const position = CstVisitor.toPosition(node);
|
|
10794
10560
|
const tag = CstVisitor.kindNodeToYamlTag(node);
|
|
10795
10561
|
const anchor = CstVisitor.kindNodeToYamlAnchor(node);
|
|
10796
|
-
const scalarNode = new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_8__["default"]({
|
|
10562
|
+
const scalarNode = new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_8__["default"]((0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_2__.assignSourceMap)({
|
|
10797
10563
|
content: node.text,
|
|
10798
10564
|
anchor,
|
|
10799
10565
|
tag,
|
|
10800
|
-
position,
|
|
10801
10566
|
styleGroup: _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_9__.YamlStyleGroup.Flow,
|
|
10802
10567
|
style: _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_9__.YamlStyle.SingleQuoted
|
|
10803
|
-
});
|
|
10568
|
+
}, node));
|
|
10804
10569
|
this.registerAnchor(scalarNode);
|
|
10805
10570
|
return this.schema.resolve(scalarNode);
|
|
10806
10571
|
}
|
|
10807
10572
|
};
|
|
10808
10573
|
double_quote_scalar = {
|
|
10809
10574
|
enter: node => {
|
|
10810
|
-
const position = CstVisitor.toPosition(node);
|
|
10811
10575
|
const tag = CstVisitor.kindNodeToYamlTag(node);
|
|
10812
10576
|
const anchor = CstVisitor.kindNodeToYamlAnchor(node);
|
|
10813
|
-
const scalarNode = new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_8__["default"]({
|
|
10577
|
+
const scalarNode = new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_8__["default"]((0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_2__.assignSourceMap)({
|
|
10814
10578
|
content: node.text,
|
|
10815
10579
|
anchor,
|
|
10816
10580
|
tag,
|
|
10817
|
-
position,
|
|
10818
10581
|
styleGroup: _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_9__.YamlStyleGroup.Flow,
|
|
10819
10582
|
style: _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_9__.YamlStyle.DoubleQuoted
|
|
10820
|
-
});
|
|
10583
|
+
}, node));
|
|
10821
10584
|
this.registerAnchor(scalarNode);
|
|
10822
10585
|
return this.schema.resolve(scalarNode);
|
|
10823
10586
|
}
|
|
10824
10587
|
};
|
|
10825
10588
|
block_scalar = {
|
|
10826
10589
|
enter: node => {
|
|
10827
|
-
const position = CstVisitor.toPosition(node);
|
|
10828
10590
|
const tag = CstVisitor.kindNodeToYamlTag(node);
|
|
10829
10591
|
const anchor = CstVisitor.kindNodeToYamlAnchor(node);
|
|
10830
10592
|
const style = node.text.startsWith('|') ? _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_9__.YamlStyle.Literal : node.text.startsWith('>') ? _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_9__.YamlStyle.Folded : _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_9__.YamlStyle.Plain;
|
|
10831
|
-
const scalarNode = new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_8__["default"]({
|
|
10593
|
+
const scalarNode = new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_8__["default"]((0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_2__.assignSourceMap)({
|
|
10832
10594
|
content: node.text,
|
|
10833
10595
|
anchor,
|
|
10834
10596
|
tag,
|
|
10835
|
-
position,
|
|
10836
10597
|
styleGroup: _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_9__.YamlStyleGroup.Block,
|
|
10837
10598
|
style
|
|
10838
|
-
});
|
|
10599
|
+
}, node));
|
|
10839
10600
|
this.registerAnchor(scalarNode);
|
|
10840
10601
|
return this.schema.resolve(scalarNode);
|
|
10841
10602
|
}
|
|
@@ -10865,30 +10626,26 @@ class CstVisitor {
|
|
|
10865
10626
|
enter(node) {
|
|
10866
10627
|
// missing anonymous literals from CST transformed into AST literal nodes
|
|
10867
10628
|
if (node instanceof _TreeCursorSyntaxNode_mjs__WEBPACK_IMPORTED_MODULE_15__["default"] && !node.isNamed) {
|
|
10868
|
-
const position = CstVisitor.toPosition(node);
|
|
10869
10629
|
const value = node.type || node.text;
|
|
10870
10630
|
const {
|
|
10871
10631
|
isMissing
|
|
10872
10632
|
} = node;
|
|
10873
|
-
return new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_16__["default"]({
|
|
10633
|
+
return new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_16__["default"]((0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_2__.assignSourceMap)({
|
|
10874
10634
|
value,
|
|
10875
|
-
position,
|
|
10876
10635
|
isMissing
|
|
10877
|
-
});
|
|
10636
|
+
}, node));
|
|
10878
10637
|
}
|
|
10879
10638
|
return undefined;
|
|
10880
10639
|
}
|
|
10881
10640
|
|
|
10882
10641
|
// eslint-disable-next-line class-methods-use-this
|
|
10883
10642
|
ERROR(node, key, parent, path) {
|
|
10884
|
-
const
|
|
10885
|
-
const errorNode = new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_17__["default"]({
|
|
10643
|
+
const errorNode = new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_17__["default"]((0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_2__.assignSourceMap)({
|
|
10886
10644
|
children: node.children,
|
|
10887
|
-
position,
|
|
10888
10645
|
isUnexpected: !node.hasError,
|
|
10889
10646
|
isMissing: node.isMissing,
|
|
10890
10647
|
value: node.text
|
|
10891
|
-
});
|
|
10648
|
+
}, node));
|
|
10892
10649
|
if (path.length === 0) {
|
|
10893
10650
|
return new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_5__["default"]({
|
|
10894
10651
|
children: [errorNode]
|
|
@@ -10902,35 +10659,30 @@ class CstVisitor {
|
|
|
10902
10659
|
}
|
|
10903
10660
|
}
|
|
10904
10661
|
createKeyValuePairEmptyKey(node) {
|
|
10905
|
-
const emptyPoint = new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_1__.Point({
|
|
10906
|
-
row: node.startPosition.row,
|
|
10907
|
-
column: node.startPosition.column,
|
|
10908
|
-
char: node.startIndex
|
|
10909
|
-
});
|
|
10910
10662
|
const {
|
|
10911
10663
|
keyNode
|
|
10912
10664
|
} = node;
|
|
10913
10665
|
const children = (keyNode === null || keyNode === void 0 ? void 0 : keyNode.children) || [];
|
|
10914
10666
|
const tagNode = children.find(CstVisitor.isKind('tag'));
|
|
10915
10667
|
const anchorNode = children.find(CstVisitor.isKind('anchor'));
|
|
10916
|
-
const tag = typeof tagNode !== 'undefined' ? new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_3__["default"]({
|
|
10668
|
+
const tag = typeof tagNode !== 'undefined' ? new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_3__["default"]((0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_2__.assignSourceMap)({
|
|
10917
10669
|
explicitName: tagNode.text,
|
|
10918
|
-
kind: _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_3__.YamlNodeKind.Scalar
|
|
10919
|
-
|
|
10920
|
-
}) : new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_3__["default"]({
|
|
10670
|
+
kind: _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_3__.YamlNodeKind.Scalar
|
|
10671
|
+
}, tagNode)) : new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_3__["default"]({
|
|
10921
10672
|
explicitName: '?',
|
|
10922
10673
|
kind: _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_3__.YamlNodeKind.Scalar
|
|
10923
10674
|
});
|
|
10924
|
-
const anchor = typeof anchorNode !== 'undefined' ? new
|
|
10925
|
-
name: anchorNode.text
|
|
10926
|
-
|
|
10927
|
-
}) : undefined;
|
|
10675
|
+
const anchor = typeof anchorNode !== 'undefined' ? new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_1__["default"]((0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_2__.assignSourceMap)({
|
|
10676
|
+
name: anchorNode.text
|
|
10677
|
+
}, anchorNode)) : undefined;
|
|
10928
10678
|
const scalarNode = new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_8__["default"]({
|
|
10929
10679
|
content: '',
|
|
10930
|
-
|
|
10931
|
-
|
|
10932
|
-
|
|
10933
|
-
|
|
10680
|
+
startPositionRow: node.startPositionRow,
|
|
10681
|
+
startPositionColumn: node.startPositionColumn,
|
|
10682
|
+
startIndex: node.startIndex,
|
|
10683
|
+
endPositionRow: node.startPositionRow,
|
|
10684
|
+
endPositionColumn: node.startPositionColumn,
|
|
10685
|
+
endIndex: node.startIndex,
|
|
10934
10686
|
tag,
|
|
10935
10687
|
anchor,
|
|
10936
10688
|
styleGroup: _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_9__.YamlStyleGroup.Flow,
|
|
@@ -10940,35 +10692,30 @@ class CstVisitor {
|
|
|
10940
10692
|
return scalarNode;
|
|
10941
10693
|
}
|
|
10942
10694
|
createKeyValuePairEmptyValue(node) {
|
|
10943
|
-
const emptyPoint = new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_1__.Point({
|
|
10944
|
-
row: node.endPosition.row,
|
|
10945
|
-
column: node.endPosition.column,
|
|
10946
|
-
char: node.endIndex
|
|
10947
|
-
});
|
|
10948
10695
|
const {
|
|
10949
10696
|
valueNode
|
|
10950
10697
|
} = node;
|
|
10951
10698
|
const children = (valueNode === null || valueNode === void 0 ? void 0 : valueNode.children) || [];
|
|
10952
10699
|
const tagNode = children.find(CstVisitor.isKind('tag'));
|
|
10953
10700
|
const anchorNode = children.find(CstVisitor.isKind('anchor'));
|
|
10954
|
-
const tag = typeof tagNode !== 'undefined' ? new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_3__["default"]({
|
|
10701
|
+
const tag = typeof tagNode !== 'undefined' ? new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_3__["default"]((0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_2__.assignSourceMap)({
|
|
10955
10702
|
explicitName: tagNode.text,
|
|
10956
|
-
kind: _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_3__.YamlNodeKind.Scalar
|
|
10957
|
-
|
|
10958
|
-
}) : new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_3__["default"]({
|
|
10703
|
+
kind: _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_3__.YamlNodeKind.Scalar
|
|
10704
|
+
}, tagNode)) : new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_3__["default"]({
|
|
10959
10705
|
explicitName: '?',
|
|
10960
10706
|
kind: _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_3__.YamlNodeKind.Scalar
|
|
10961
10707
|
});
|
|
10962
|
-
const anchor = typeof anchorNode !== 'undefined' ? new
|
|
10963
|
-
name: anchorNode.text
|
|
10964
|
-
|
|
10965
|
-
}) : undefined;
|
|
10708
|
+
const anchor = typeof anchorNode !== 'undefined' ? new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_1__["default"]((0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_2__.assignSourceMap)({
|
|
10709
|
+
name: anchorNode.text
|
|
10710
|
+
}, anchorNode)) : undefined;
|
|
10966
10711
|
const scalarNode = new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_8__["default"]({
|
|
10967
10712
|
content: '',
|
|
10968
|
-
|
|
10969
|
-
|
|
10970
|
-
|
|
10971
|
-
|
|
10713
|
+
startPositionRow: node.endPositionRow,
|
|
10714
|
+
startPositionColumn: node.endPositionColumn,
|
|
10715
|
+
startIndex: node.endIndex,
|
|
10716
|
+
endPositionRow: node.endPositionRow,
|
|
10717
|
+
endPositionColumn: node.endPositionColumn,
|
|
10718
|
+
endIndex: node.endIndex,
|
|
10972
10719
|
tag,
|
|
10973
10720
|
anchor,
|
|
10974
10721
|
styleGroup: _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_9__.YamlStyleGroup.Flow,
|
|
@@ -12063,6 +11810,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
12063
11810
|
/* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(61339);
|
|
12064
11811
|
/* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(78866);
|
|
12065
11812
|
/* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(88326);
|
|
11813
|
+
/* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(10977);
|
|
12066
11814
|
|
|
12067
11815
|
|
|
12068
11816
|
const keyMap = {
|
|
@@ -12215,12 +11963,7 @@ class YamlAstVisitor {
|
|
|
12215
11963
|
if (!this.sourceMap) {
|
|
12216
11964
|
return;
|
|
12217
11965
|
}
|
|
12218
|
-
|
|
12219
|
-
// @ts-ignore
|
|
12220
|
-
sourceMap.position = node.position;
|
|
12221
|
-
// @ts-ignore
|
|
12222
|
-
sourceMap.astNode = node;
|
|
12223
|
-
element.meta.set('sourceMap', sourceMap);
|
|
11966
|
+
(0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_7__.assignSourceMap)(element, node);
|
|
12224
11967
|
}
|
|
12225
11968
|
}
|
|
12226
11969
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (YamlAstVisitor);
|
|
@@ -14588,20 +14331,6 @@ function equalObjects(object, other, bitmask, customizer, equalFunc, stack) {
|
|
|
14588
14331
|
module.exports = equalObjects;
|
|
14589
14332
|
|
|
14590
14333
|
|
|
14591
|
-
/***/ }),
|
|
14592
|
-
|
|
14593
|
-
/***/ 31254:
|
|
14594
|
-
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
14595
|
-
|
|
14596
|
-
"use strict";
|
|
14597
|
-
__webpack_require__.r(__webpack_exports__);
|
|
14598
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
14599
|
-
/* harmony export */ "default": () => (/* binding */ _cloneRegExp)
|
|
14600
|
-
/* harmony export */ });
|
|
14601
|
-
function _cloneRegExp(pattern) {
|
|
14602
|
-
return new RegExp(pattern.source, pattern.flags ? pattern.flags : (pattern.global ? 'g' : '') + (pattern.ignoreCase ? 'i' : '') + (pattern.multiline ? 'm' : '') + (pattern.sticky ? 'y' : '') + (pattern.unicode ? 'u' : '') + (pattern.dotAll ? 's' : ''));
|
|
14603
|
-
}
|
|
14604
|
-
|
|
14605
14334
|
/***/ }),
|
|
14606
14335
|
|
|
14607
14336
|
/***/ 31314:
|
|
@@ -15679,7 +15408,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
15679
15408
|
/* harmony import */ var minim__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(88326);
|
|
15680
15409
|
/* harmony import */ var _predicates_index_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(50726);
|
|
15681
15410
|
/* harmony import */ var _errors_DeepCloneError_mjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(39112);
|
|
15682
|
-
/* harmony import */ var
|
|
15411
|
+
/* harmony import */ var _errors_ShallowCloneError_mjs__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(16500);
|
|
15412
|
+
/* harmony import */ var _util_mjs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(10977);
|
|
15413
|
+
|
|
15683
15414
|
|
|
15684
15415
|
|
|
15685
15416
|
|
|
@@ -15783,6 +15514,9 @@ const cloneShallowElement = element => {
|
|
|
15783
15514
|
// @ts-ignore
|
|
15784
15515
|
const copy = new element.constructor();
|
|
15785
15516
|
copy.element = element.element;
|
|
15517
|
+
if ((0,_predicates_index_mjs__WEBPACK_IMPORTED_MODULE_1__.hasElementSourceMap)(element)) {
|
|
15518
|
+
(0,_util_mjs__WEBPACK_IMPORTED_MODULE_3__.assignSourceMap)(copy, element);
|
|
15519
|
+
}
|
|
15786
15520
|
if (element.meta.length > 0) {
|
|
15787
15521
|
copy._meta = cloneDeep(element.meta);
|
|
15788
15522
|
}
|
|
@@ -15819,7 +15553,7 @@ const cloneShallow = value => {
|
|
|
15819
15553
|
if ((0,_predicates_index_mjs__WEBPACK_IMPORTED_MODULE_1__.isElement)(value)) {
|
|
15820
15554
|
return cloneShallowElement(value);
|
|
15821
15555
|
}
|
|
15822
|
-
throw new
|
|
15556
|
+
throw new _errors_ShallowCloneError_mjs__WEBPACK_IMPORTED_MODULE_4__["default"]("Value provided to cloneShallow function couldn't be cloned", {
|
|
15823
15557
|
value
|
|
15824
15558
|
});
|
|
15825
15559
|
};
|
|
@@ -16802,6 +16536,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
16802
16536
|
/* harmony export */ });
|
|
16803
16537
|
/* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(28400);
|
|
16804
16538
|
/* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(50726);
|
|
16539
|
+
/* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(10977);
|
|
16805
16540
|
|
|
16806
16541
|
|
|
16807
16542
|
/**
|
|
@@ -16821,10 +16556,9 @@ class Visitor {
|
|
|
16821
16556
|
copyMetaAndAttributes(from, to) {
|
|
16822
16557
|
if (from.meta.length > 0 || to.meta.length > 0) {
|
|
16823
16558
|
to.meta = (0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_0__["default"])(to.meta, from.meta);
|
|
16824
|
-
|
|
16825
|
-
|
|
16826
|
-
|
|
16827
|
-
}
|
|
16559
|
+
}
|
|
16560
|
+
if ((0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_1__.hasElementSourceMap)(from)) {
|
|
16561
|
+
(0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_2__.assignSourceMap)(to, from);
|
|
16828
16562
|
}
|
|
16829
16563
|
if (from.attributes.length > 0 || from.meta.length > 0) {
|
|
16830
16564
|
to.attributes = (0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_0__["default"])(to.attributes, from.attributes); // eslint-disable-line no-param-reassign
|
|
@@ -18359,16 +18093,31 @@ class Node {
|
|
|
18359
18093
|
type = 'node';
|
|
18360
18094
|
isMissing;
|
|
18361
18095
|
children;
|
|
18362
|
-
|
|
18096
|
+
startPositionRow;
|
|
18097
|
+
startPositionColumn;
|
|
18098
|
+
startIndex;
|
|
18099
|
+
endPositionRow;
|
|
18100
|
+
endPositionColumn;
|
|
18101
|
+
endIndex;
|
|
18363
18102
|
constructor({
|
|
18364
18103
|
children = [],
|
|
18365
|
-
|
|
18366
|
-
|
|
18104
|
+
isMissing = false,
|
|
18105
|
+
startPositionRow,
|
|
18106
|
+
startPositionColumn,
|
|
18107
|
+
startIndex,
|
|
18108
|
+
endPositionRow,
|
|
18109
|
+
endPositionColumn,
|
|
18110
|
+
endIndex
|
|
18367
18111
|
} = {}) {
|
|
18368
18112
|
this.type = this.constructor.type;
|
|
18369
18113
|
this.isMissing = isMissing;
|
|
18370
18114
|
this.children = children;
|
|
18371
|
-
this.
|
|
18115
|
+
this.startPositionRow = startPositionRow;
|
|
18116
|
+
this.startPositionColumn = startPositionColumn;
|
|
18117
|
+
this.startIndex = startIndex;
|
|
18118
|
+
this.endPositionRow = endPositionRow;
|
|
18119
|
+
this.endPositionColumn = endPositionColumn;
|
|
18120
|
+
this.endIndex = endIndex;
|
|
18372
18121
|
}
|
|
18373
18122
|
|
|
18374
18123
|
// creates shallow clone of node
|
|
@@ -18742,16 +18491,14 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
18742
18491
|
/* harmony export */ isParseResultElement: () => (/* binding */ isParseResultElement),
|
|
18743
18492
|
/* harmony export */ isPrimitiveElement: () => (/* binding */ isPrimitiveElement),
|
|
18744
18493
|
/* harmony export */ isRefElement: () => (/* binding */ isRefElement),
|
|
18745
|
-
/* harmony export */ isSourceMapElement: () => (/* binding */ isSourceMapElement),
|
|
18746
18494
|
/* harmony export */ isStringElement: () => (/* binding */ isStringElement)
|
|
18747
18495
|
/* harmony export */ });
|
|
18748
18496
|
/* harmony import */ var minim__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(88326);
|
|
18749
|
-
/* harmony import */ var
|
|
18750
|
-
/* harmony import */ var
|
|
18497
|
+
/* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(95380);
|
|
18498
|
+
/* harmony import */ var ramda_adjunct__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(73699);
|
|
18751
18499
|
/* harmony import */ var _elements_Annotation_mjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(14102);
|
|
18752
18500
|
/* harmony import */ var _elements_Comment_mjs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(10068);
|
|
18753
18501
|
/* harmony import */ var _elements_ParseResult_mjs__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(18737);
|
|
18754
|
-
/* harmony import */ var _elements_SourceMap_mjs__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(91364);
|
|
18755
18502
|
/* harmony import */ var _helpers_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(70145);
|
|
18756
18503
|
|
|
18757
18504
|
|
|
@@ -18760,7 +18507,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
18760
18507
|
|
|
18761
18508
|
|
|
18762
18509
|
|
|
18763
|
-
|
|
18764
18510
|
/**
|
|
18765
18511
|
* @public
|
|
18766
18512
|
*/
|
|
@@ -18899,17 +18645,6 @@ const isParseResultElement = (0,_helpers_mjs__WEBPACK_IMPORTED_MODULE_1__["defau
|
|
|
18899
18645
|
return element => element instanceof _elements_ParseResult_mjs__WEBPACK_IMPORTED_MODULE_4__["default"] || hasBasicElementProps(element) && isElementType('parseResult', element) && primitiveEq('array', element);
|
|
18900
18646
|
});
|
|
18901
18647
|
|
|
18902
|
-
/**
|
|
18903
|
-
* @public
|
|
18904
|
-
*/
|
|
18905
|
-
const isSourceMapElement = (0,_helpers_mjs__WEBPACK_IMPORTED_MODULE_1__["default"])(({
|
|
18906
|
-
hasBasicElementProps,
|
|
18907
|
-
isElementType,
|
|
18908
|
-
primitiveEq
|
|
18909
|
-
}) => {
|
|
18910
|
-
return element => element instanceof _elements_SourceMap_mjs__WEBPACK_IMPORTED_MODULE_5__["default"] || hasBasicElementProps(element) && isElementType('sourceMap', element) && primitiveEq('array', element);
|
|
18911
|
-
});
|
|
18912
|
-
|
|
18913
18648
|
/**
|
|
18914
18649
|
* @public
|
|
18915
18650
|
*/
|
|
@@ -18925,7 +18660,10 @@ const isPrimitiveElement = element => {
|
|
|
18925
18660
|
* @public
|
|
18926
18661
|
*/
|
|
18927
18662
|
const hasElementSourceMap = element => {
|
|
18928
|
-
|
|
18663
|
+
if (!isElement(element)) {
|
|
18664
|
+
return false;
|
|
18665
|
+
}
|
|
18666
|
+
return Number.isInteger(element.startPositionRow) && Number.isInteger(element.startPositionColumn) && Number.isInteger(element.startIndex) && Number.isInteger(element.endPositionRow) && Number.isInteger(element.endPositionColumn) && Number.isInteger(element.endIndex);
|
|
18929
18667
|
};
|
|
18930
18668
|
|
|
18931
18669
|
/**
|
|
@@ -18939,7 +18677,7 @@ const includesSymbols = (symbols, element) => {
|
|
|
18939
18677
|
if (!isArrayElement(elementSymbols)) {
|
|
18940
18678
|
return false;
|
|
18941
18679
|
}
|
|
18942
|
-
return (0,
|
|
18680
|
+
return (0,ramda__WEBPACK_IMPORTED_MODULE_5__["default"])((0,ramda_adjunct__WEBPACK_IMPORTED_MODULE_6__["default"])(elementSymbols.toValue()), symbols);
|
|
18943
18681
|
};
|
|
18944
18682
|
|
|
18945
18683
|
/**
|
|
@@ -18949,7 +18687,7 @@ const includesClasses = (classes, element) => {
|
|
|
18949
18687
|
if (classes.length === 0) {
|
|
18950
18688
|
return true;
|
|
18951
18689
|
}
|
|
18952
|
-
return (0,
|
|
18690
|
+
return (0,ramda__WEBPACK_IMPORTED_MODULE_5__["default"])((0,ramda_adjunct__WEBPACK_IMPORTED_MODULE_6__["default"])(element.classes.toValue()), classes);
|
|
18953
18691
|
};
|
|
18954
18692
|
|
|
18955
18693
|
/***/ }),
|
|
@@ -19765,7 +19503,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
19765
19503
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
19766
19504
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
19767
19505
|
/* harmony export */ });
|
|
19768
|
-
/* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(85757);
|
|
19769
19506
|
/* harmony import */ var _errors_YamlTagError_mjs__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(69261);
|
|
19770
19507
|
/* harmony import */ var _nodes_YamlTag_mjs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(9375);
|
|
19771
19508
|
/* harmony import */ var _GenericMapping_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(51538);
|
|
@@ -19778,7 +19515,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
19778
19515
|
|
|
19779
19516
|
|
|
19780
19517
|
|
|
19781
|
-
|
|
19782
19518
|
/**
|
|
19783
19519
|
* @public
|
|
19784
19520
|
*/
|
|
@@ -19856,7 +19592,12 @@ class FailsafeSchema {
|
|
|
19856
19592
|
specificTagName,
|
|
19857
19593
|
explicitTagName: node.tag.explicitName,
|
|
19858
19594
|
tagKind: node.tag.kind,
|
|
19859
|
-
|
|
19595
|
+
tagStartPositionRow: node.tag.startPositionRow,
|
|
19596
|
+
tagStartPositionColumn: node.tag.startPositionColumn,
|
|
19597
|
+
tagStartPositionIndex: node.tag.startIndex,
|
|
19598
|
+
tagEndPositionRow: node.tag.endPositionRow,
|
|
19599
|
+
tagEndPositionColumn: node.tag.endPositionColumn,
|
|
19600
|
+
tagEndPositionIndex: node.tag.endIndex,
|
|
19860
19601
|
node: node.clone()
|
|
19861
19602
|
});
|
|
19862
19603
|
}
|
|
@@ -19867,7 +19608,12 @@ class FailsafeSchema {
|
|
|
19867
19608
|
specificTagName,
|
|
19868
19609
|
explicitTagName: node.tag.explicitName,
|
|
19869
19610
|
tagKind: node.tag.kind,
|
|
19870
|
-
|
|
19611
|
+
tagStartPositionRow: node.tag.startPositionRow,
|
|
19612
|
+
tagStartPositionColumn: node.tag.startPositionColumn,
|
|
19613
|
+
tagStartPositionIndex: node.tag.startIndex,
|
|
19614
|
+
tagEndPositionRow: node.tag.endPositionRow,
|
|
19615
|
+
tagEndPositionColumn: node.tag.endPositionColumn,
|
|
19616
|
+
tagEndPositionIndex: node.tag.endIndex,
|
|
19871
19617
|
nodeCanonicalContent: canonicalNode.content,
|
|
19872
19618
|
node: node.clone()
|
|
19873
19619
|
});
|
|
@@ -22634,21 +22380,18 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
22634
22380
|
/* harmony export */ ObjectElement: () => (/* reexport safe */ minim__WEBPACK_IMPORTED_MODULE_0__.ObjectElement),
|
|
22635
22381
|
/* harmony export */ ParseResultElement: () => (/* reexport safe */ _elements_ParseResult_mjs__WEBPACK_IMPORTED_MODULE_4__["default"]),
|
|
22636
22382
|
/* harmony export */ RefElement: () => (/* reexport safe */ minim__WEBPACK_IMPORTED_MODULE_0__.RefElement),
|
|
22637
|
-
/* harmony export */ SourceMapElement: () => (/* reexport safe */ _elements_SourceMap_mjs__WEBPACK_IMPORTED_MODULE_5__["default"]),
|
|
22638
22383
|
/* harmony export */ StringElement: () => (/* reexport safe */ minim__WEBPACK_IMPORTED_MODULE_0__.StringElement)
|
|
22639
22384
|
/* harmony export */ });
|
|
22640
22385
|
/* harmony import */ var minim__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(88326);
|
|
22641
22386
|
/* harmony import */ var _elements_Annotation_mjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(14102);
|
|
22642
22387
|
/* harmony import */ var _elements_Comment_mjs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(10068);
|
|
22643
22388
|
/* harmony import */ var _elements_ParseResult_mjs__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(18737);
|
|
22644
|
-
/* harmony import */ var _elements_SourceMap_mjs__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(91364);
|
|
22645
22389
|
/* harmony import */ var _index_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(70696);
|
|
22646
22390
|
|
|
22647
22391
|
|
|
22648
22392
|
|
|
22649
22393
|
|
|
22650
22394
|
|
|
22651
|
-
|
|
22652
22395
|
minim__WEBPACK_IMPORTED_MODULE_0__.ObjectElement.refract = (0,_index_mjs__WEBPACK_IMPORTED_MODULE_1__.createRefractor)(minim__WEBPACK_IMPORTED_MODULE_0__.ObjectElement);
|
|
22653
22396
|
minim__WEBPACK_IMPORTED_MODULE_0__.ArrayElement.refract = (0,_index_mjs__WEBPACK_IMPORTED_MODULE_1__.createRefractor)(minim__WEBPACK_IMPORTED_MODULE_0__.ArrayElement);
|
|
22654
22397
|
minim__WEBPACK_IMPORTED_MODULE_0__.StringElement.refract = (0,_index_mjs__WEBPACK_IMPORTED_MODULE_1__.createRefractor)(minim__WEBPACK_IMPORTED_MODULE_0__.StringElement);
|
|
@@ -22660,7 +22403,6 @@ minim__WEBPACK_IMPORTED_MODULE_0__.RefElement.refract = (0,_index_mjs__WEBPACK_I
|
|
|
22660
22403
|
_elements_Annotation_mjs__WEBPACK_IMPORTED_MODULE_2__["default"].refract = (0,_index_mjs__WEBPACK_IMPORTED_MODULE_1__.createRefractor)(_elements_Annotation_mjs__WEBPACK_IMPORTED_MODULE_2__["default"]);
|
|
22661
22404
|
_elements_Comment_mjs__WEBPACK_IMPORTED_MODULE_3__["default"].refract = (0,_index_mjs__WEBPACK_IMPORTED_MODULE_1__.createRefractor)(_elements_Comment_mjs__WEBPACK_IMPORTED_MODULE_3__["default"]);
|
|
22662
22405
|
_elements_ParseResult_mjs__WEBPACK_IMPORTED_MODULE_4__["default"].refract = (0,_index_mjs__WEBPACK_IMPORTED_MODULE_1__.createRefractor)(_elements_ParseResult_mjs__WEBPACK_IMPORTED_MODULE_4__["default"]);
|
|
22663
|
-
_elements_SourceMap_mjs__WEBPACK_IMPORTED_MODULE_5__["default"].refract = (0,_index_mjs__WEBPACK_IMPORTED_MODULE_1__.createRefractor)(_elements_SourceMap_mjs__WEBPACK_IMPORTED_MODULE_5__["default"]);
|
|
22664
22406
|
|
|
22665
22407
|
|
|
22666
22408
|
/***/ }),
|
|
@@ -24953,7 +24695,12 @@ class YamlTagError extends _YamlSchemaError_mjs__WEBPACK_IMPORTED_MODULE_0__["de
|
|
|
24953
24695
|
specificTagName;
|
|
24954
24696
|
explicitTagName;
|
|
24955
24697
|
tagKind;
|
|
24956
|
-
|
|
24698
|
+
tagStartPositionRow;
|
|
24699
|
+
tagStartPositionColumn;
|
|
24700
|
+
tagStartPositionIndex;
|
|
24701
|
+
tagEndPositionRow;
|
|
24702
|
+
tagEndPositionColumn;
|
|
24703
|
+
tagEndPositionIndex;
|
|
24957
24704
|
nodeCanonicalContent;
|
|
24958
24705
|
node;
|
|
24959
24706
|
constructor(message, structuredOptions) {
|
|
@@ -24962,7 +24709,12 @@ class YamlTagError extends _YamlSchemaError_mjs__WEBPACK_IMPORTED_MODULE_0__["de
|
|
|
24962
24709
|
this.specificTagName = structuredOptions.specificTagName;
|
|
24963
24710
|
this.explicitTagName = structuredOptions.explicitTagName;
|
|
24964
24711
|
this.tagKind = structuredOptions.tagKind;
|
|
24965
|
-
this.
|
|
24712
|
+
this.tagStartPositionRow = structuredOptions.tagStartPositionRow;
|
|
24713
|
+
this.tagStartPositionColumn = structuredOptions.tagStartPositionColumn;
|
|
24714
|
+
this.tagStartPositionIndex = structuredOptions.tagStartPositionIndex;
|
|
24715
|
+
this.tagEndPositionRow = structuredOptions.tagEndPositionRow;
|
|
24716
|
+
this.tagEndPositionColumn = structuredOptions.tagEndPositionColumn;
|
|
24717
|
+
this.tagEndPositionIndex = structuredOptions.tagEndPositionIndex;
|
|
24966
24718
|
this.nodeCanonicalContent = structuredOptions.nodeCanonicalContent;
|
|
24967
24719
|
this.node = structuredOptions.node;
|
|
24968
24720
|
}
|
|
@@ -27064,12 +26816,10 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
27064
26816
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
27065
26817
|
/* harmony export */ });
|
|
27066
26818
|
/* harmony import */ var minim__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(88326);
|
|
27067
|
-
/* harmony import */ var
|
|
26819
|
+
/* harmony import */ var ramda_adjunct__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(34606);
|
|
27068
26820
|
/* harmony import */ var _elements_Annotation_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(14102);
|
|
27069
26821
|
/* harmony import */ var _elements_Comment_mjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(10068);
|
|
27070
26822
|
/* harmony import */ var _elements_ParseResult_mjs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(18737);
|
|
27071
|
-
/* harmony import */ var _elements_SourceMap_mjs__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(91364);
|
|
27072
|
-
|
|
27073
26823
|
|
|
27074
26824
|
|
|
27075
26825
|
|
|
@@ -27084,7 +26834,6 @@ class Namespace extends minim__WEBPACK_IMPORTED_MODULE_0__.Namespace {
|
|
|
27084
26834
|
this.register('annotation', _elements_Annotation_mjs__WEBPACK_IMPORTED_MODULE_1__["default"]);
|
|
27085
26835
|
this.register('comment', _elements_Comment_mjs__WEBPACK_IMPORTED_MODULE_2__["default"]);
|
|
27086
26836
|
this.register('parseResult', _elements_ParseResult_mjs__WEBPACK_IMPORTED_MODULE_3__["default"]);
|
|
27087
|
-
this.register('sourceMap', _elements_SourceMap_mjs__WEBPACK_IMPORTED_MODULE_4__["default"]);
|
|
27088
26837
|
}
|
|
27089
26838
|
}
|
|
27090
26839
|
|
|
@@ -27098,7 +26847,7 @@ const namespace = new Namespace();
|
|
|
27098
26847
|
*/
|
|
27099
26848
|
const createNamespace = namespacePlugin => {
|
|
27100
26849
|
const namespaceInstance = new Namespace();
|
|
27101
|
-
if ((0,
|
|
26850
|
+
if ((0,ramda_adjunct__WEBPACK_IMPORTED_MODULE_4__["default"])(namespacePlugin)) {
|
|
27102
26851
|
namespaceInstance.use(namespacePlugin);
|
|
27103
26852
|
}
|
|
27104
26853
|
return namespaceInstance;
|
|
@@ -29171,53 +28920,6 @@ const createToolbox = () => {
|
|
|
29171
28920
|
|
|
29172
28921
|
/***/ }),
|
|
29173
28922
|
|
|
29174
|
-
/***/ 85757:
|
|
29175
|
-
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
29176
|
-
|
|
29177
|
-
"use strict";
|
|
29178
|
-
__webpack_require__.r(__webpack_exports__);
|
|
29179
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
29180
|
-
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
29181
|
-
/* harmony export */ });
|
|
29182
|
-
/* harmony import */ var _internal_clone_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(8575);
|
|
29183
|
-
/* harmony import */ var _internal_curry1_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(18938);
|
|
29184
|
-
|
|
29185
|
-
|
|
29186
|
-
|
|
29187
|
-
/**
|
|
29188
|
-
* Creates a deep copy of the source that can be used in place of the source
|
|
29189
|
-
* object without retaining any references to it.
|
|
29190
|
-
* The source object may contain (nested) `Array`s and `Object`s,
|
|
29191
|
-
* `Number`s, `String`s, `Boolean`s and `Date`s.
|
|
29192
|
-
* `Function`s are assigned by reference rather than copied.
|
|
29193
|
-
*
|
|
29194
|
-
* Dispatches to a `clone` method if present.
|
|
29195
|
-
*
|
|
29196
|
-
* Note that if the source object has multiple nodes that share a reference,
|
|
29197
|
-
* the returned object will have the same structure, but the references will
|
|
29198
|
-
* be pointed to the location within the cloned value.
|
|
29199
|
-
*
|
|
29200
|
-
* @func
|
|
29201
|
-
* @memberOf R
|
|
29202
|
-
* @since v0.1.0
|
|
29203
|
-
* @category Object
|
|
29204
|
-
* @sig {*} -> {*}
|
|
29205
|
-
* @param {*} value The object or array to clone
|
|
29206
|
-
* @return {*} A deeply cloned copy of `val`
|
|
29207
|
-
* @example
|
|
29208
|
-
*
|
|
29209
|
-
* const objects = [{}, {}, {}];
|
|
29210
|
-
* const objectsClone = R.clone(objects);
|
|
29211
|
-
* objects === objectsClone; //=> false
|
|
29212
|
-
* objects[0] === objectsClone[0]; //=> false
|
|
29213
|
-
*/
|
|
29214
|
-
var clone = /*#__PURE__*/(0,_internal_curry1_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function clone(value) {
|
|
29215
|
-
return value != null && typeof value.clone === 'function' ? value.clone() : (0,_internal_clone_js__WEBPACK_IMPORTED_MODULE_1__["default"])(value, true);
|
|
29216
|
-
});
|
|
29217
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (clone);
|
|
29218
|
-
|
|
29219
|
-
/***/ }),
|
|
29220
|
-
|
|
29221
28923
|
/***/ 85969:
|
|
29222
28924
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
29223
28925
|
|
|
@@ -30766,54 +30468,6 @@ const namespace = (0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_1__.creat
|
|
|
30766
30468
|
|
|
30767
30469
|
/***/ }),
|
|
30768
30470
|
|
|
30769
|
-
/***/ 91364:
|
|
30770
|
-
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
30771
|
-
|
|
30772
|
-
"use strict";
|
|
30773
|
-
__webpack_require__.r(__webpack_exports__);
|
|
30774
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
30775
|
-
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
30776
|
-
/* harmony export */ });
|
|
30777
|
-
/* harmony import */ var minim__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(88326);
|
|
30778
|
-
|
|
30779
|
-
|
|
30780
|
-
/**
|
|
30781
|
-
* @public
|
|
30782
|
-
*/
|
|
30783
|
-
|
|
30784
|
-
/**
|
|
30785
|
-
* @public
|
|
30786
|
-
*/
|
|
30787
|
-
|
|
30788
|
-
/**
|
|
30789
|
-
* @public
|
|
30790
|
-
*/
|
|
30791
|
-
class SourceMap extends minim__WEBPACK_IMPORTED_MODULE_0__.ArrayElement {
|
|
30792
|
-
constructor(content, meta, attributes) {
|
|
30793
|
-
super(content, meta, attributes);
|
|
30794
|
-
this.element = 'sourceMap';
|
|
30795
|
-
}
|
|
30796
|
-
get positionStart() {
|
|
30797
|
-
return this.children.filter(item => item.classes.contains('position')).get(0);
|
|
30798
|
-
}
|
|
30799
|
-
get positionEnd() {
|
|
30800
|
-
return this.children.filter(item => item.classes.contains('position')).get(1);
|
|
30801
|
-
}
|
|
30802
|
-
set position(position) {
|
|
30803
|
-
if (typeof position === 'undefined') {
|
|
30804
|
-
return;
|
|
30805
|
-
}
|
|
30806
|
-
const start = new minim__WEBPACK_IMPORTED_MODULE_0__.ArrayElement([position.start.row, position.start.column, position.start.char]);
|
|
30807
|
-
const end = new minim__WEBPACK_IMPORTED_MODULE_0__.ArrayElement([position.end.row, position.end.column, position.end.char]);
|
|
30808
|
-
start.classes.push('position');
|
|
30809
|
-
end.classes.push('position');
|
|
30810
|
-
this.push(start).push(end);
|
|
30811
|
-
}
|
|
30812
|
-
}
|
|
30813
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (SourceMap);
|
|
30814
|
-
|
|
30815
|
-
/***/ }),
|
|
30816
|
-
|
|
30817
30471
|
/***/ 91613:
|
|
30818
30472
|
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
30819
30473
|
|
|
@@ -32761,9 +32415,11 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
32761
32415
|
/* harmony export */ });
|
|
32762
32416
|
class TreeCursorSyntaxNode {
|
|
32763
32417
|
type;
|
|
32764
|
-
|
|
32765
|
-
|
|
32418
|
+
startPositionRow;
|
|
32419
|
+
startPositionColumn;
|
|
32766
32420
|
startIndex;
|
|
32421
|
+
endPositionRow;
|
|
32422
|
+
endPositionColumn;
|
|
32767
32423
|
endIndex;
|
|
32768
32424
|
text;
|
|
32769
32425
|
isNamed;
|
|
@@ -32774,9 +32430,11 @@ class TreeCursorSyntaxNode {
|
|
|
32774
32430
|
previousSibling;
|
|
32775
32431
|
constructor(cursor) {
|
|
32776
32432
|
this.type = cursor.nodeType;
|
|
32777
|
-
this.
|
|
32778
|
-
this.
|
|
32433
|
+
this.startPositionRow = cursor.startPosition.row;
|
|
32434
|
+
this.startPositionColumn = cursor.startPosition.column;
|
|
32779
32435
|
this.startIndex = cursor.startIndex;
|
|
32436
|
+
this.endPositionRow = cursor.endPosition.row;
|
|
32437
|
+
this.endPositionColumn = cursor.endPosition.column;
|
|
32780
32438
|
this.endIndex = cursor.endIndex;
|
|
32781
32439
|
this.text = cursor.nodeText;
|
|
32782
32440
|
this.isNamed = cursor.nodeIsNamed;
|