@swagger-api/apidom-parser-adapter-arazzo-json-1 1.0.0-beta.51 → 1.0.0-rc.1
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.
|
@@ -985,6 +985,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
985
985
|
/* harmony export */ });
|
|
986
986
|
/* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(28400);
|
|
987
987
|
/* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(50726);
|
|
988
|
+
/* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(10977);
|
|
988
989
|
|
|
989
990
|
|
|
990
991
|
/**
|
|
@@ -1000,21 +1001,19 @@ class Visitor {
|
|
|
1000
1001
|
Object.assign(this, options);
|
|
1001
1002
|
}
|
|
1002
1003
|
|
|
1003
|
-
|
|
1004
|
+
/* eslint-disable class-methods-use-this, no-param-reassign */
|
|
1004
1005
|
copyMetaAndAttributes(from, to) {
|
|
1005
1006
|
if (from.meta.length > 0 || to.meta.length > 0) {
|
|
1006
|
-
// eslint-disable-next-line no-param-reassign
|
|
1007
1007
|
to.meta = (0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_0__["default"])(to.meta, from.meta);
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
}
|
|
1008
|
+
}
|
|
1009
|
+
if ((0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_1__.hasElementSourceMap)(from)) {
|
|
1010
|
+
(0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_2__.assignSourceMap)(to, from);
|
|
1012
1011
|
}
|
|
1013
1012
|
if (from.attributes.length > 0 || from.meta.length > 0) {
|
|
1014
|
-
// eslint-disable-next-line no-param-reassign
|
|
1015
1013
|
to.attributes = (0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_0__["default"])(to.attributes, from.attributes);
|
|
1016
1014
|
}
|
|
1017
1015
|
}
|
|
1016
|
+
/* eslint-enable class-methods-use-this, no-param-reassign */
|
|
1018
1017
|
}
|
|
1019
1018
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Visitor);
|
|
1020
1019
|
|
|
@@ -1149,65 +1148,6 @@ const jsonSchemaDraft4 = {
|
|
|
1149
1148
|
|
|
1150
1149
|
/***/ }),
|
|
1151
1150
|
|
|
1152
|
-
/***/ 3487:
|
|
1153
|
-
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
1154
|
-
|
|
1155
|
-
"use strict";
|
|
1156
|
-
__webpack_require__.r(__webpack_exports__);
|
|
1157
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1158
|
-
/* harmony export */ Point: () => (/* binding */ Point),
|
|
1159
|
-
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
1160
|
-
/* harmony export */ });
|
|
1161
|
-
/* eslint-disable max-classes-per-file */
|
|
1162
|
-
|
|
1163
|
-
/**
|
|
1164
|
-
* @public
|
|
1165
|
-
*/
|
|
1166
|
-
|
|
1167
|
-
/**
|
|
1168
|
-
* @public
|
|
1169
|
-
*/
|
|
1170
|
-
class Point {
|
|
1171
|
-
static type = 'point';
|
|
1172
|
-
type = Point.type;
|
|
1173
|
-
row;
|
|
1174
|
-
column;
|
|
1175
|
-
char;
|
|
1176
|
-
constructor({
|
|
1177
|
-
row,
|
|
1178
|
-
column,
|
|
1179
|
-
char
|
|
1180
|
-
}) {
|
|
1181
|
-
this.row = row;
|
|
1182
|
-
this.column = column;
|
|
1183
|
-
this.char = char;
|
|
1184
|
-
}
|
|
1185
|
-
}
|
|
1186
|
-
|
|
1187
|
-
/**
|
|
1188
|
-
* @public
|
|
1189
|
-
*/
|
|
1190
|
-
|
|
1191
|
-
/**
|
|
1192
|
-
* @public
|
|
1193
|
-
*/
|
|
1194
|
-
class Position {
|
|
1195
|
-
static type = 'position';
|
|
1196
|
-
type = Position.type;
|
|
1197
|
-
start;
|
|
1198
|
-
end;
|
|
1199
|
-
constructor({
|
|
1200
|
-
start,
|
|
1201
|
-
end
|
|
1202
|
-
}) {
|
|
1203
|
-
this.start = start;
|
|
1204
|
-
this.end = end;
|
|
1205
|
-
}
|
|
1206
|
-
}
|
|
1207
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Position);
|
|
1208
|
-
|
|
1209
|
-
/***/ }),
|
|
1210
|
-
|
|
1211
1151
|
/***/ 3491:
|
|
1212
1152
|
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
1213
1153
|
|
|
@@ -3019,6 +2959,7 @@ class DependentRequiredVisitor extends _swagger_api_apidom_ns_json_schema_draft_
|
|
|
3019
2959
|
"use strict";
|
|
3020
2960
|
__webpack_require__.r(__webpack_exports__);
|
|
3021
2961
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
2962
|
+
/* harmony export */ assignSourceMap: () => (/* binding */ assignSourceMap),
|
|
3022
2963
|
/* harmony export */ dereference: () => (/* binding */ dereference)
|
|
3023
2964
|
/* harmony export */ });
|
|
3024
2965
|
/* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(66719);
|
|
@@ -3053,6 +2994,20 @@ const dereference = (object, root) => {
|
|
|
3053
2994
|
return val;
|
|
3054
2995
|
}, object);
|
|
3055
2996
|
};
|
|
2997
|
+
/**
|
|
2998
|
+
* @public
|
|
2999
|
+
*/
|
|
3000
|
+
/* eslint-disable no-param-reassign */
|
|
3001
|
+
const assignSourceMap = (to, from) => {
|
|
3002
|
+
to.startPositionRow = from === null || from === void 0 ? void 0 : from.startPositionRow;
|
|
3003
|
+
to.startPositionColumn = from === null || from === void 0 ? void 0 : from.startPositionColumn;
|
|
3004
|
+
to.startIndex = from === null || from === void 0 ? void 0 : from.startIndex;
|
|
3005
|
+
to.endPositionRow = from === null || from === void 0 ? void 0 : from.endPositionRow;
|
|
3006
|
+
to.endPositionColumn = from === null || from === void 0 ? void 0 : from.endPositionColumn;
|
|
3007
|
+
to.endIndex = from === null || from === void 0 ? void 0 : from.endIndex;
|
|
3008
|
+
return to;
|
|
3009
|
+
};
|
|
3010
|
+
/* eslint-enable no-param-reassign */
|
|
3056
3011
|
|
|
3057
3012
|
/***/ }),
|
|
3058
3013
|
|
|
@@ -3128,9 +3083,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
3128
3083
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
3129
3084
|
/* harmony export */ isLiteral: () => (/* binding */ isLiteral),
|
|
3130
3085
|
/* harmony export */ isNodeType: () => (/* binding */ isNodeType),
|
|
3131
|
-
/* harmony export */ isParseResult: () => (/* binding */ isParseResult)
|
|
3132
|
-
/* harmony export */ isPoint: () => (/* binding */ isPoint),
|
|
3133
|
-
/* harmony export */ isPosition: () => (/* binding */ isPosition)
|
|
3086
|
+
/* harmony export */ isParseResult: () => (/* binding */ isParseResult)
|
|
3134
3087
|
/* harmony export */ });
|
|
3135
3088
|
/**
|
|
3136
3089
|
* @public
|
|
@@ -3142,16 +3095,6 @@ const isNodeType = (type, node) => node != null && typeof node === 'object' && '
|
|
|
3142
3095
|
*/
|
|
3143
3096
|
const isLiteral = node => isNodeType('literal', node);
|
|
3144
3097
|
|
|
3145
|
-
/**
|
|
3146
|
-
* @public
|
|
3147
|
-
*/
|
|
3148
|
-
const isPosition = node => isNodeType('position', node);
|
|
3149
|
-
|
|
3150
|
-
/**
|
|
3151
|
-
* @public
|
|
3152
|
-
*/
|
|
3153
|
-
const isPoint = node => isNodeType('point', node);
|
|
3154
|
-
|
|
3155
3098
|
/**
|
|
3156
3099
|
* @public
|
|
3157
3100
|
*/
|
|
@@ -8566,8 +8509,7 @@ const keyMapDefault = {
|
|
|
8566
8509
|
LinkElement: [],
|
|
8567
8510
|
Annotation: [],
|
|
8568
8511
|
Comment: [],
|
|
8569
|
-
ParseResultElement: ['content']
|
|
8570
|
-
SourceMap: ['content']
|
|
8512
|
+
ParseResultElement: ['content']
|
|
8571
8513
|
};
|
|
8572
8514
|
class PredicateVisitor {
|
|
8573
8515
|
result;
|
|
@@ -13266,8 +13208,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
13266
13208
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__),
|
|
13267
13209
|
/* harmony export */ keyMap: () => (/* binding */ keyMap)
|
|
13268
13210
|
/* harmony export */ });
|
|
13269
|
-
/* harmony import */ var _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
|
|
13270
|
-
/* harmony import */ var _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(68200);
|
|
13211
|
+
/* harmony import */ var _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(68200);
|
|
13271
13212
|
/* harmony import */ var _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(3252);
|
|
13272
13213
|
/* harmony import */ var _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(86339);
|
|
13273
13214
|
/* harmony import */ var _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(92178);
|
|
@@ -13281,9 +13222,11 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
13281
13222
|
/* harmony import */ var _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(78567);
|
|
13282
13223
|
/* harmony import */ var _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(64708);
|
|
13283
13224
|
/* harmony import */ var _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(24676);
|
|
13225
|
+
/* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(10977);
|
|
13284
13226
|
/* harmony import */ var _TreeCursorSyntaxNode_mjs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(65587);
|
|
13285
13227
|
|
|
13286
13228
|
|
|
13229
|
+
|
|
13287
13230
|
const keyMap = {
|
|
13288
13231
|
document: ['children'],
|
|
13289
13232
|
object: ['children'],
|
|
@@ -13297,30 +13240,12 @@ const keyMap = {
|
|
|
13297
13240
|
/* eslint-disable class-methods-use-this */
|
|
13298
13241
|
|
|
13299
13242
|
class CstVisitor {
|
|
13300
|
-
static toPosition(node) {
|
|
13301
|
-
const start = new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_0__.Point({
|
|
13302
|
-
row: node.startPosition.row,
|
|
13303
|
-
column: node.startPosition.column,
|
|
13304
|
-
char: node.startIndex
|
|
13305
|
-
});
|
|
13306
|
-
const end = new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_0__.Point({
|
|
13307
|
-
row: node.endPosition.row,
|
|
13308
|
-
column: node.endPosition.column,
|
|
13309
|
-
char: node.endIndex
|
|
13310
|
-
});
|
|
13311
|
-
return new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_0__["default"]({
|
|
13312
|
-
start,
|
|
13313
|
-
end
|
|
13314
|
-
});
|
|
13315
|
-
}
|
|
13316
13243
|
document = {
|
|
13317
13244
|
enter: node => {
|
|
13318
|
-
|
|
13319
|
-
return new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_1__["default"]({
|
|
13245
|
+
return new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_0__["default"]((0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_1__.assignSourceMap)({
|
|
13320
13246
|
children: node.children,
|
|
13321
|
-
position,
|
|
13322
13247
|
isMissing: node.isMissing
|
|
13323
|
-
});
|
|
13248
|
+
}, node));
|
|
13324
13249
|
},
|
|
13325
13250
|
leave: document => {
|
|
13326
13251
|
return new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_2__["default"]({
|
|
@@ -13331,114 +13256,93 @@ class CstVisitor {
|
|
|
13331
13256
|
enter(node) {
|
|
13332
13257
|
// anonymous literals from CST transformed into AST literal nodes
|
|
13333
13258
|
if (node instanceof _TreeCursorSyntaxNode_mjs__WEBPACK_IMPORTED_MODULE_3__["default"] && !node.isNamed) {
|
|
13334
|
-
const position = CstVisitor.toPosition(node);
|
|
13335
13259
|
const value = node.type || node.text;
|
|
13336
13260
|
const {
|
|
13337
13261
|
isMissing
|
|
13338
13262
|
} = node;
|
|
13339
|
-
return new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_4__["default"]({
|
|
13263
|
+
return new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_4__["default"]((0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_1__.assignSourceMap)({
|
|
13340
13264
|
value,
|
|
13341
|
-
position,
|
|
13342
13265
|
isMissing
|
|
13343
|
-
});
|
|
13266
|
+
}, node));
|
|
13344
13267
|
}
|
|
13345
13268
|
return undefined;
|
|
13346
13269
|
}
|
|
13347
13270
|
object(node) {
|
|
13348
|
-
|
|
13349
|
-
return new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_5__["default"]({
|
|
13271
|
+
return new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_5__["default"]((0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_1__.assignSourceMap)({
|
|
13350
13272
|
children: node.children,
|
|
13351
|
-
position,
|
|
13352
13273
|
isMissing: node.isMissing
|
|
13353
|
-
});
|
|
13274
|
+
}, node));
|
|
13354
13275
|
}
|
|
13355
13276
|
pair(node) {
|
|
13356
|
-
const position = CstVisitor.toPosition(node);
|
|
13357
13277
|
const children = node.children.slice(1);
|
|
13358
13278
|
const {
|
|
13359
13279
|
keyNode
|
|
13360
13280
|
} = node;
|
|
13361
|
-
const key = new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_6__["default"]({
|
|
13281
|
+
const key = new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_6__["default"]((0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_1__.assignSourceMap)({
|
|
13362
13282
|
children: (keyNode === null || keyNode === void 0 ? void 0 : keyNode.children) || [],
|
|
13363
|
-
position: keyNode != null ? CstVisitor.toPosition(keyNode) : undefined,
|
|
13364
13283
|
isMissing: keyNode != null ? keyNode.isMissing : false
|
|
13365
|
-
});
|
|
13366
|
-
return new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_7__["default"]({
|
|
13284
|
+
}, keyNode));
|
|
13285
|
+
return new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_7__["default"]((0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_1__.assignSourceMap)({
|
|
13367
13286
|
children: [key, ...children],
|
|
13368
|
-
position,
|
|
13369
13287
|
isMissing: node.isMissing
|
|
13370
|
-
});
|
|
13288
|
+
}, node));
|
|
13371
13289
|
}
|
|
13372
13290
|
array(node) {
|
|
13373
|
-
|
|
13374
|
-
return new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_8__["default"]({
|
|
13291
|
+
return new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_8__["default"]((0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_1__.assignSourceMap)({
|
|
13375
13292
|
children: node.children,
|
|
13376
|
-
position,
|
|
13377
13293
|
isMissing: node.isMissing
|
|
13378
|
-
});
|
|
13294
|
+
}, node));
|
|
13379
13295
|
}
|
|
13380
13296
|
string(node) {
|
|
13381
|
-
const position = CstVisitor.toPosition(node);
|
|
13382
13297
|
const content = new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_9__["default"]({
|
|
13383
13298
|
value: JSON.parse(node.text)
|
|
13384
13299
|
});
|
|
13385
|
-
return new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_10__["default"]({
|
|
13300
|
+
return new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_10__["default"]((0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_1__.assignSourceMap)({
|
|
13386
13301
|
children: [content],
|
|
13387
|
-
position,
|
|
13388
13302
|
isMissing: node.isMissing
|
|
13389
|
-
});
|
|
13303
|
+
}, node));
|
|
13390
13304
|
}
|
|
13391
13305
|
number(node) {
|
|
13392
|
-
const position = CstVisitor.toPosition(node);
|
|
13393
13306
|
const value = node.text;
|
|
13394
|
-
return new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_11__["default"]({
|
|
13307
|
+
return new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_11__["default"]((0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_1__.assignSourceMap)({
|
|
13395
13308
|
value,
|
|
13396
|
-
position,
|
|
13397
13309
|
isMissing: node.isMissing
|
|
13398
|
-
});
|
|
13310
|
+
}, node));
|
|
13399
13311
|
}
|
|
13400
13312
|
|
|
13401
13313
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
13402
13314
|
null(node) {
|
|
13403
|
-
const position = CstVisitor.toPosition(node);
|
|
13404
13315
|
const value = node.text;
|
|
13405
|
-
return new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_12__["default"]({
|
|
13316
|
+
return new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_12__["default"]((0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_1__.assignSourceMap)({
|
|
13406
13317
|
value,
|
|
13407
|
-
position,
|
|
13408
13318
|
isMissing: node.isMissing
|
|
13409
|
-
});
|
|
13319
|
+
}, node));
|
|
13410
13320
|
}
|
|
13411
13321
|
|
|
13412
13322
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
13413
13323
|
true(node) {
|
|
13414
|
-
const position = CstVisitor.toPosition(node);
|
|
13415
13324
|
const value = node.text;
|
|
13416
|
-
return new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_13__["default"]({
|
|
13325
|
+
return new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_13__["default"]((0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_1__.assignSourceMap)({
|
|
13417
13326
|
value,
|
|
13418
|
-
position,
|
|
13419
13327
|
isMissing: node.isMissing
|
|
13420
|
-
});
|
|
13328
|
+
}, node));
|
|
13421
13329
|
}
|
|
13422
13330
|
|
|
13423
13331
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
13424
13332
|
false(node) {
|
|
13425
|
-
const position = CstVisitor.toPosition(node);
|
|
13426
13333
|
const value = node.text;
|
|
13427
|
-
return new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_14__["default"]({
|
|
13334
|
+
return new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_14__["default"]((0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_1__.assignSourceMap)({
|
|
13428
13335
|
value,
|
|
13429
|
-
position,
|
|
13430
13336
|
isMissing: node.isMissing
|
|
13431
|
-
});
|
|
13337
|
+
}, node));
|
|
13432
13338
|
}
|
|
13433
13339
|
ERROR(node, key, parent, path) {
|
|
13434
|
-
const
|
|
13435
|
-
const errorNode = new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_15__["default"]({
|
|
13340
|
+
const errorNode = new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_15__["default"]((0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_1__.assignSourceMap)({
|
|
13436
13341
|
children: node.children,
|
|
13437
|
-
position,
|
|
13438
13342
|
isUnexpected: !node.hasError,
|
|
13439
13343
|
isMissing: node.isMissing,
|
|
13440
13344
|
value: node.text
|
|
13441
|
-
});
|
|
13345
|
+
}, node));
|
|
13442
13346
|
if (path.length === 0) {
|
|
13443
13347
|
return new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_2__["default"]({
|
|
13444
13348
|
children: [errorNode]
|
|
@@ -14313,7 +14217,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
14313
14217
|
/* harmony import */ var minim__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(88326);
|
|
14314
14218
|
/* harmony import */ var _predicates_index_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(50726);
|
|
14315
14219
|
/* harmony import */ var _errors_DeepCloneError_mjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(39112);
|
|
14316
|
-
/* harmony import */ var
|
|
14220
|
+
/* harmony import */ var _errors_ShallowCloneError_mjs__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(16500);
|
|
14221
|
+
/* harmony import */ var _util_mjs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(10977);
|
|
14222
|
+
|
|
14317
14223
|
|
|
14318
14224
|
|
|
14319
14225
|
|
|
@@ -14417,6 +14323,9 @@ const cloneShallowElement = element => {
|
|
|
14417
14323
|
// @ts-ignore
|
|
14418
14324
|
const copy = new element.constructor();
|
|
14419
14325
|
copy.element = element.element;
|
|
14326
|
+
if ((0,_predicates_index_mjs__WEBPACK_IMPORTED_MODULE_1__.hasElementSourceMap)(element)) {
|
|
14327
|
+
(0,_util_mjs__WEBPACK_IMPORTED_MODULE_3__.assignSourceMap)(copy, element);
|
|
14328
|
+
}
|
|
14420
14329
|
if (element.meta.length > 0) {
|
|
14421
14330
|
copy._meta = cloneDeep(element.meta);
|
|
14422
14331
|
}
|
|
@@ -14453,7 +14362,7 @@ const cloneShallow = value => {
|
|
|
14453
14362
|
if ((0,_predicates_index_mjs__WEBPACK_IMPORTED_MODULE_1__.isElement)(value)) {
|
|
14454
14363
|
return cloneShallowElement(value);
|
|
14455
14364
|
}
|
|
14456
|
-
throw new
|
|
14365
|
+
throw new _errors_ShallowCloneError_mjs__WEBPACK_IMPORTED_MODULE_4__["default"]("Value provided to cloneShallow function couldn't be cloned", {
|
|
14457
14366
|
value
|
|
14458
14367
|
});
|
|
14459
14368
|
};
|
|
@@ -15327,6 +15236,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
15327
15236
|
/* harmony export */ });
|
|
15328
15237
|
/* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(28400);
|
|
15329
15238
|
/* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(50726);
|
|
15239
|
+
/* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(10977);
|
|
15330
15240
|
|
|
15331
15241
|
|
|
15332
15242
|
/**
|
|
@@ -15346,10 +15256,9 @@ class Visitor {
|
|
|
15346
15256
|
copyMetaAndAttributes(from, to) {
|
|
15347
15257
|
if (from.meta.length > 0 || to.meta.length > 0) {
|
|
15348
15258
|
to.meta = (0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_0__["default"])(to.meta, from.meta);
|
|
15349
|
-
|
|
15350
|
-
|
|
15351
|
-
|
|
15352
|
-
}
|
|
15259
|
+
}
|
|
15260
|
+
if ((0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_1__.hasElementSourceMap)(from)) {
|
|
15261
|
+
(0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_2__.assignSourceMap)(to, from);
|
|
15353
15262
|
}
|
|
15354
15263
|
if (from.attributes.length > 0 || from.meta.length > 0) {
|
|
15355
15264
|
to.attributes = (0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_0__["default"])(to.attributes, from.attributes); // eslint-disable-line no-param-reassign
|
|
@@ -16656,16 +16565,31 @@ class Node {
|
|
|
16656
16565
|
type = 'node';
|
|
16657
16566
|
isMissing;
|
|
16658
16567
|
children;
|
|
16659
|
-
|
|
16568
|
+
startPositionRow;
|
|
16569
|
+
startPositionColumn;
|
|
16570
|
+
startIndex;
|
|
16571
|
+
endPositionRow;
|
|
16572
|
+
endPositionColumn;
|
|
16573
|
+
endIndex;
|
|
16660
16574
|
constructor({
|
|
16661
16575
|
children = [],
|
|
16662
|
-
|
|
16663
|
-
|
|
16576
|
+
isMissing = false,
|
|
16577
|
+
startPositionRow,
|
|
16578
|
+
startPositionColumn,
|
|
16579
|
+
startIndex,
|
|
16580
|
+
endPositionRow,
|
|
16581
|
+
endPositionColumn,
|
|
16582
|
+
endIndex
|
|
16664
16583
|
} = {}) {
|
|
16665
16584
|
this.type = this.constructor.type;
|
|
16666
16585
|
this.isMissing = isMissing;
|
|
16667
16586
|
this.children = children;
|
|
16668
|
-
this.
|
|
16587
|
+
this.startPositionRow = startPositionRow;
|
|
16588
|
+
this.startPositionColumn = startPositionColumn;
|
|
16589
|
+
this.startIndex = startIndex;
|
|
16590
|
+
this.endPositionRow = endPositionRow;
|
|
16591
|
+
this.endPositionColumn = endPositionColumn;
|
|
16592
|
+
this.endIndex = endIndex;
|
|
16669
16593
|
}
|
|
16670
16594
|
|
|
16671
16595
|
// creates shallow clone of node
|
|
@@ -17068,16 +16992,14 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
17068
16992
|
/* harmony export */ isParseResultElement: () => (/* binding */ isParseResultElement),
|
|
17069
16993
|
/* harmony export */ isPrimitiveElement: () => (/* binding */ isPrimitiveElement),
|
|
17070
16994
|
/* harmony export */ isRefElement: () => (/* binding */ isRefElement),
|
|
17071
|
-
/* harmony export */ isSourceMapElement: () => (/* binding */ isSourceMapElement),
|
|
17072
16995
|
/* harmony export */ isStringElement: () => (/* binding */ isStringElement)
|
|
17073
16996
|
/* harmony export */ });
|
|
17074
16997
|
/* harmony import */ var minim__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(88326);
|
|
17075
|
-
/* harmony import */ var
|
|
17076
|
-
/* harmony import */ var
|
|
16998
|
+
/* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(95380);
|
|
16999
|
+
/* harmony import */ var ramda_adjunct__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(73699);
|
|
17077
17000
|
/* harmony import */ var _elements_Annotation_mjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(14102);
|
|
17078
17001
|
/* harmony import */ var _elements_Comment_mjs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(10068);
|
|
17079
17002
|
/* harmony import */ var _elements_ParseResult_mjs__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(18737);
|
|
17080
|
-
/* harmony import */ var _elements_SourceMap_mjs__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(91364);
|
|
17081
17003
|
/* harmony import */ var _helpers_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(70145);
|
|
17082
17004
|
|
|
17083
17005
|
|
|
@@ -17086,7 +17008,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
17086
17008
|
|
|
17087
17009
|
|
|
17088
17010
|
|
|
17089
|
-
|
|
17090
17011
|
/**
|
|
17091
17012
|
* @public
|
|
17092
17013
|
*/
|
|
@@ -17225,17 +17146,6 @@ const isParseResultElement = (0,_helpers_mjs__WEBPACK_IMPORTED_MODULE_1__["defau
|
|
|
17225
17146
|
return element => element instanceof _elements_ParseResult_mjs__WEBPACK_IMPORTED_MODULE_4__["default"] || hasBasicElementProps(element) && isElementType('parseResult', element) && primitiveEq('array', element);
|
|
17226
17147
|
});
|
|
17227
17148
|
|
|
17228
|
-
/**
|
|
17229
|
-
* @public
|
|
17230
|
-
*/
|
|
17231
|
-
const isSourceMapElement = (0,_helpers_mjs__WEBPACK_IMPORTED_MODULE_1__["default"])(({
|
|
17232
|
-
hasBasicElementProps,
|
|
17233
|
-
isElementType,
|
|
17234
|
-
primitiveEq
|
|
17235
|
-
}) => {
|
|
17236
|
-
return element => element instanceof _elements_SourceMap_mjs__WEBPACK_IMPORTED_MODULE_5__["default"] || hasBasicElementProps(element) && isElementType('sourceMap', element) && primitiveEq('array', element);
|
|
17237
|
-
});
|
|
17238
|
-
|
|
17239
17149
|
/**
|
|
17240
17150
|
* @public
|
|
17241
17151
|
*/
|
|
@@ -17251,7 +17161,10 @@ const isPrimitiveElement = element => {
|
|
|
17251
17161
|
* @public
|
|
17252
17162
|
*/
|
|
17253
17163
|
const hasElementSourceMap = element => {
|
|
17254
|
-
|
|
17164
|
+
if (!isElement(element)) {
|
|
17165
|
+
return false;
|
|
17166
|
+
}
|
|
17167
|
+
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);
|
|
17255
17168
|
};
|
|
17256
17169
|
|
|
17257
17170
|
/**
|
|
@@ -17265,7 +17178,7 @@ const includesSymbols = (symbols, element) => {
|
|
|
17265
17178
|
if (!isArrayElement(elementSymbols)) {
|
|
17266
17179
|
return false;
|
|
17267
17180
|
}
|
|
17268
|
-
return (0,
|
|
17181
|
+
return (0,ramda__WEBPACK_IMPORTED_MODULE_5__["default"])((0,ramda_adjunct__WEBPACK_IMPORTED_MODULE_6__["default"])(elementSymbols.toValue()), symbols);
|
|
17269
17182
|
};
|
|
17270
17183
|
|
|
17271
17184
|
/**
|
|
@@ -17275,7 +17188,7 @@ const includesClasses = (classes, element) => {
|
|
|
17275
17188
|
if (classes.length === 0) {
|
|
17276
17189
|
return true;
|
|
17277
17190
|
}
|
|
17278
|
-
return (0,
|
|
17191
|
+
return (0,ramda__WEBPACK_IMPORTED_MODULE_5__["default"])((0,ramda_adjunct__WEBPACK_IMPORTED_MODULE_6__["default"])(element.classes.toValue()), classes);
|
|
17279
17192
|
};
|
|
17280
17193
|
|
|
17281
17194
|
/***/ }),
|
|
@@ -17657,28 +17570,22 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
17657
17570
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
17658
17571
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
17659
17572
|
/* harmony export */ });
|
|
17660
|
-
/* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
|
|
17661
|
-
/* harmony import */ var
|
|
17573
|
+
/* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(50726);
|
|
17574
|
+
/* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(61339);
|
|
17662
17575
|
/* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(88326);
|
|
17663
|
-
/* harmony import */ var
|
|
17576
|
+
/* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(10977);
|
|
17577
|
+
/* harmony import */ var _TreeCursorSyntaxNode_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(65587);
|
|
17664
17578
|
|
|
17665
17579
|
|
|
17666
17580
|
/* eslint-disable no-underscore-dangle */
|
|
17667
17581
|
class CstVisitor {
|
|
17668
|
-
static toPosition(node) {
|
|
17669
|
-
const start = new _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_0__.ArrayElement([node.startPosition.row, node.startPosition.column, node.startIndex]);
|
|
17670
|
-
const end = new _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_0__.ArrayElement([node.endPosition.row, node.endPosition.column, node.endIndex]);
|
|
17671
|
-
start.classes.push('position');
|
|
17672
|
-
end.classes.push('position');
|
|
17673
|
-
return [start, end];
|
|
17674
|
-
}
|
|
17675
17582
|
sourceMap = false;
|
|
17676
17583
|
annotations;
|
|
17677
17584
|
ParseResultElement = {
|
|
17678
17585
|
leave: element => {
|
|
17679
17586
|
// mark first-non Annotation element as result
|
|
17680
17587
|
// @ts-ignore
|
|
17681
|
-
const elements = element.findElements(
|
|
17588
|
+
const elements = element.findElements(_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_0__.isPrimitiveElement);
|
|
17682
17589
|
if (elements.length > 0) {
|
|
17683
17590
|
const resultElement = elements[0];
|
|
17684
17591
|
resultElement.classes.push('result');
|
|
@@ -17696,11 +17603,11 @@ class CstVisitor {
|
|
|
17696
17603
|
}
|
|
17697
17604
|
enter(node) {
|
|
17698
17605
|
// missing anonymous literals from CST transformed into AnnotationElements.
|
|
17699
|
-
if (node instanceof
|
|
17606
|
+
if (node instanceof _TreeCursorSyntaxNode_mjs__WEBPACK_IMPORTED_MODULE_1__["default"] && !node.isNamed && node.isMissing) {
|
|
17700
17607
|
// collect annotations from missing literals
|
|
17701
17608
|
const value = node.type || node.text;
|
|
17702
17609
|
const message = `(Missing ${value})`;
|
|
17703
|
-
const element = new
|
|
17610
|
+
const element = new _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_2__.AnnotationElement(message);
|
|
17704
17611
|
element.classes.push('warning');
|
|
17705
17612
|
this.maybeAddSourceMap(node, element);
|
|
17706
17613
|
this.annotations.push(element);
|
|
@@ -17708,21 +17615,21 @@ class CstVisitor {
|
|
|
17708
17615
|
return null; // remove everything unrecognized
|
|
17709
17616
|
}
|
|
17710
17617
|
document(node) {
|
|
17711
|
-
const element = new
|
|
17618
|
+
const element = new _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_2__.ParseResultElement();
|
|
17712
17619
|
// @ts-ignore
|
|
17713
17620
|
element._content = node.children;
|
|
17714
17621
|
this.maybeAddSourceMap(node, element);
|
|
17715
17622
|
return element;
|
|
17716
17623
|
}
|
|
17717
17624
|
object(node) {
|
|
17718
|
-
const element = new
|
|
17625
|
+
const element = new _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_2__.ObjectElement();
|
|
17719
17626
|
// @ts-ignore
|
|
17720
17627
|
element._content = node.children;
|
|
17721
17628
|
this.maybeAddSourceMap(node, element);
|
|
17722
17629
|
return element;
|
|
17723
17630
|
}
|
|
17724
17631
|
array(node) {
|
|
17725
|
-
const element = new
|
|
17632
|
+
const element = new _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_2__.ArrayElement();
|
|
17726
17633
|
// @ts-ignore
|
|
17727
17634
|
element._content = node.children;
|
|
17728
17635
|
this.maybeAddSourceMap(node, element);
|
|
@@ -17748,33 +17655,33 @@ class CstVisitor {
|
|
|
17748
17655
|
return element;
|
|
17749
17656
|
}
|
|
17750
17657
|
string(node) {
|
|
17751
|
-
const element = new
|
|
17658
|
+
const element = new _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_2__.StringElement(JSON.parse(node.text));
|
|
17752
17659
|
this.maybeAddSourceMap(node, element);
|
|
17753
17660
|
return element;
|
|
17754
17661
|
}
|
|
17755
17662
|
number(node) {
|
|
17756
|
-
const element = new
|
|
17663
|
+
const element = new _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_2__.NumberElement(Number(node.text));
|
|
17757
17664
|
this.maybeAddSourceMap(node, element);
|
|
17758
17665
|
return element;
|
|
17759
17666
|
}
|
|
17760
17667
|
|
|
17761
17668
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
17762
17669
|
null(node) {
|
|
17763
|
-
const element = new
|
|
17670
|
+
const element = new _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_2__.NullElement();
|
|
17764
17671
|
this.maybeAddSourceMap(node, element);
|
|
17765
17672
|
return element;
|
|
17766
17673
|
}
|
|
17767
17674
|
|
|
17768
17675
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
17769
17676
|
true(node) {
|
|
17770
|
-
const element = new
|
|
17677
|
+
const element = new _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_2__.BooleanElement(true);
|
|
17771
17678
|
this.maybeAddSourceMap(node, element);
|
|
17772
17679
|
return element;
|
|
17773
17680
|
}
|
|
17774
17681
|
|
|
17775
17682
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
17776
17683
|
false(node) {
|
|
17777
|
-
const element = new
|
|
17684
|
+
const element = new _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_2__.BooleanElement(false);
|
|
17778
17685
|
this.maybeAddSourceMap(node, element);
|
|
17779
17686
|
return element;
|
|
17780
17687
|
}
|
|
@@ -17783,12 +17690,12 @@ class CstVisitor {
|
|
|
17783
17690
|
const isUnexpected = !node.hasError;
|
|
17784
17691
|
const value = node.text;
|
|
17785
17692
|
const message = isUnexpected ? `(Unexpected ${value})` : `(Error ${value})`;
|
|
17786
|
-
const element = new
|
|
17693
|
+
const element = new _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_2__.AnnotationElement(message);
|
|
17787
17694
|
element.classes.push('error');
|
|
17788
17695
|
this.maybeAddSourceMap(node, element);
|
|
17789
17696
|
if (path.length === 0) {
|
|
17790
17697
|
// no document to visit, only error is present in CST
|
|
17791
|
-
const parseResultElement = new
|
|
17698
|
+
const parseResultElement = new _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_2__.ParseResultElement();
|
|
17792
17699
|
parseResultElement.push(element);
|
|
17793
17700
|
return parseResultElement;
|
|
17794
17701
|
}
|
|
@@ -17801,16 +17708,7 @@ class CstVisitor {
|
|
|
17801
17708
|
if (!this.sourceMap) {
|
|
17802
17709
|
return;
|
|
17803
17710
|
}
|
|
17804
|
-
|
|
17805
|
-
const position = CstVisitor.toPosition(node);
|
|
17806
|
-
if (position !== null) {
|
|
17807
|
-
const [start, end] = position;
|
|
17808
|
-
sourceMap.push(start);
|
|
17809
|
-
sourceMap.push(end);
|
|
17810
|
-
}
|
|
17811
|
-
// @ts-ignore
|
|
17812
|
-
sourceMap.astNode = node;
|
|
17813
|
-
element.meta.set('sourceMap', sourceMap);
|
|
17711
|
+
(0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_4__.assignSourceMap)(element, node);
|
|
17814
17712
|
}
|
|
17815
17713
|
}
|
|
17816
17714
|
|
|
@@ -20767,21 +20665,18 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
20767
20665
|
/* harmony export */ ObjectElement: () => (/* reexport safe */ minim__WEBPACK_IMPORTED_MODULE_0__.ObjectElement),
|
|
20768
20666
|
/* harmony export */ ParseResultElement: () => (/* reexport safe */ _elements_ParseResult_mjs__WEBPACK_IMPORTED_MODULE_4__["default"]),
|
|
20769
20667
|
/* harmony export */ RefElement: () => (/* reexport safe */ minim__WEBPACK_IMPORTED_MODULE_0__.RefElement),
|
|
20770
|
-
/* harmony export */ SourceMapElement: () => (/* reexport safe */ _elements_SourceMap_mjs__WEBPACK_IMPORTED_MODULE_5__["default"]),
|
|
20771
20668
|
/* harmony export */ StringElement: () => (/* reexport safe */ minim__WEBPACK_IMPORTED_MODULE_0__.StringElement)
|
|
20772
20669
|
/* harmony export */ });
|
|
20773
20670
|
/* harmony import */ var minim__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(88326);
|
|
20774
20671
|
/* harmony import */ var _elements_Annotation_mjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(14102);
|
|
20775
20672
|
/* harmony import */ var _elements_Comment_mjs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(10068);
|
|
20776
20673
|
/* harmony import */ var _elements_ParseResult_mjs__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(18737);
|
|
20777
|
-
/* harmony import */ var _elements_SourceMap_mjs__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(91364);
|
|
20778
20674
|
/* harmony import */ var _index_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(70696);
|
|
20779
20675
|
|
|
20780
20676
|
|
|
20781
20677
|
|
|
20782
20678
|
|
|
20783
20679
|
|
|
20784
|
-
|
|
20785
20680
|
minim__WEBPACK_IMPORTED_MODULE_0__.ObjectElement.refract = (0,_index_mjs__WEBPACK_IMPORTED_MODULE_1__.createRefractor)(minim__WEBPACK_IMPORTED_MODULE_0__.ObjectElement);
|
|
20786
20681
|
minim__WEBPACK_IMPORTED_MODULE_0__.ArrayElement.refract = (0,_index_mjs__WEBPACK_IMPORTED_MODULE_1__.createRefractor)(minim__WEBPACK_IMPORTED_MODULE_0__.ArrayElement);
|
|
20787
20682
|
minim__WEBPACK_IMPORTED_MODULE_0__.StringElement.refract = (0,_index_mjs__WEBPACK_IMPORTED_MODULE_1__.createRefractor)(minim__WEBPACK_IMPORTED_MODULE_0__.StringElement);
|
|
@@ -20793,7 +20688,6 @@ minim__WEBPACK_IMPORTED_MODULE_0__.RefElement.refract = (0,_index_mjs__WEBPACK_I
|
|
|
20793
20688
|
_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"]);
|
|
20794
20689
|
_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"]);
|
|
20795
20690
|
_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"]);
|
|
20796
|
-
_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"]);
|
|
20797
20691
|
|
|
20798
20692
|
|
|
20799
20693
|
/***/ }),
|
|
@@ -21990,9 +21884,11 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
21990
21884
|
/* harmony export */ });
|
|
21991
21885
|
class TreeCursorSyntaxNode {
|
|
21992
21886
|
type;
|
|
21993
|
-
|
|
21994
|
-
|
|
21887
|
+
startPositionRow;
|
|
21888
|
+
startPositionColumn;
|
|
21995
21889
|
startIndex;
|
|
21890
|
+
endPositionRow;
|
|
21891
|
+
endPositionColumn;
|
|
21996
21892
|
endIndex;
|
|
21997
21893
|
text;
|
|
21998
21894
|
isNamed;
|
|
@@ -22002,9 +21898,11 @@ class TreeCursorSyntaxNode {
|
|
|
22002
21898
|
children = [];
|
|
22003
21899
|
constructor(cursor) {
|
|
22004
21900
|
this.type = cursor.nodeType;
|
|
22005
|
-
this.
|
|
22006
|
-
this.
|
|
21901
|
+
this.startPositionRow = cursor.startPosition.row;
|
|
21902
|
+
this.startPositionColumn = cursor.startPosition.column;
|
|
22007
21903
|
this.startIndex = cursor.startIndex;
|
|
21904
|
+
this.endPositionRow = cursor.endPosition.row;
|
|
21905
|
+
this.endPositionColumn = cursor.endPosition.column;
|
|
22008
21906
|
this.endIndex = cursor.endIndex;
|
|
22009
21907
|
this.text = cursor.nodeText;
|
|
22010
21908
|
this.isNamed = cursor.nodeIsNamed;
|
|
@@ -24791,12 +24689,10 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
24791
24689
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
24792
24690
|
/* harmony export */ });
|
|
24793
24691
|
/* harmony import */ var minim__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(88326);
|
|
24794
|
-
/* harmony import */ var
|
|
24692
|
+
/* harmony import */ var ramda_adjunct__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(34606);
|
|
24795
24693
|
/* harmony import */ var _elements_Annotation_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(14102);
|
|
24796
24694
|
/* harmony import */ var _elements_Comment_mjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(10068);
|
|
24797
24695
|
/* harmony import */ var _elements_ParseResult_mjs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(18737);
|
|
24798
|
-
/* harmony import */ var _elements_SourceMap_mjs__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(91364);
|
|
24799
|
-
|
|
24800
24696
|
|
|
24801
24697
|
|
|
24802
24698
|
|
|
@@ -24811,7 +24707,6 @@ class Namespace extends minim__WEBPACK_IMPORTED_MODULE_0__.Namespace {
|
|
|
24811
24707
|
this.register('annotation', _elements_Annotation_mjs__WEBPACK_IMPORTED_MODULE_1__["default"]);
|
|
24812
24708
|
this.register('comment', _elements_Comment_mjs__WEBPACK_IMPORTED_MODULE_2__["default"]);
|
|
24813
24709
|
this.register('parseResult', _elements_ParseResult_mjs__WEBPACK_IMPORTED_MODULE_3__["default"]);
|
|
24814
|
-
this.register('sourceMap', _elements_SourceMap_mjs__WEBPACK_IMPORTED_MODULE_4__["default"]);
|
|
24815
24710
|
}
|
|
24816
24711
|
}
|
|
24817
24712
|
|
|
@@ -24825,7 +24720,7 @@ const namespace = new Namespace();
|
|
|
24825
24720
|
*/
|
|
24826
24721
|
const createNamespace = namespacePlugin => {
|
|
24827
24722
|
const namespaceInstance = new Namespace();
|
|
24828
|
-
if ((0,
|
|
24723
|
+
if ((0,ramda_adjunct__WEBPACK_IMPORTED_MODULE_4__["default"])(namespacePlugin)) {
|
|
24829
24724
|
namespaceInstance.use(namespacePlugin);
|
|
24830
24725
|
}
|
|
24831
24726
|
return namespaceInstance;
|
|
@@ -26341,6 +26236,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
26341
26236
|
/* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(50726);
|
|
26342
26237
|
/* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(61339);
|
|
26343
26238
|
/* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(88326);
|
|
26239
|
+
/* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(10977);
|
|
26344
26240
|
|
|
26345
26241
|
|
|
26346
26242
|
const keyMap = {
|
|
@@ -26504,12 +26400,7 @@ class JsonAstVisitor {
|
|
|
26504
26400
|
if (!this.sourceMap) {
|
|
26505
26401
|
return;
|
|
26506
26402
|
}
|
|
26507
|
-
|
|
26508
|
-
// @ts-ignore
|
|
26509
|
-
sourceMap.position = node.position;
|
|
26510
|
-
// @ts-ignore
|
|
26511
|
-
sourceMap.astNode = node;
|
|
26512
|
-
element.meta.set('sourceMap', sourceMap);
|
|
26403
|
+
(0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_11__.assignSourceMap)(element, node);
|
|
26513
26404
|
}
|
|
26514
26405
|
}
|
|
26515
26406
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (JsonAstVisitor);
|
|
@@ -28487,54 +28378,6 @@ var anyPass = /*#__PURE__*/(0,_internal_curry1_js__WEBPACK_IMPORTED_MODULE_0__["
|
|
|
28487
28378
|
|
|
28488
28379
|
/***/ }),
|
|
28489
28380
|
|
|
28490
|
-
/***/ 91364:
|
|
28491
|
-
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
28492
|
-
|
|
28493
|
-
"use strict";
|
|
28494
|
-
__webpack_require__.r(__webpack_exports__);
|
|
28495
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
28496
|
-
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
28497
|
-
/* harmony export */ });
|
|
28498
|
-
/* harmony import */ var minim__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(88326);
|
|
28499
|
-
|
|
28500
|
-
|
|
28501
|
-
/**
|
|
28502
|
-
* @public
|
|
28503
|
-
*/
|
|
28504
|
-
|
|
28505
|
-
/**
|
|
28506
|
-
* @public
|
|
28507
|
-
*/
|
|
28508
|
-
|
|
28509
|
-
/**
|
|
28510
|
-
* @public
|
|
28511
|
-
*/
|
|
28512
|
-
class SourceMap extends minim__WEBPACK_IMPORTED_MODULE_0__.ArrayElement {
|
|
28513
|
-
constructor(content, meta, attributes) {
|
|
28514
|
-
super(content, meta, attributes);
|
|
28515
|
-
this.element = 'sourceMap';
|
|
28516
|
-
}
|
|
28517
|
-
get positionStart() {
|
|
28518
|
-
return this.children.filter(item => item.classes.contains('position')).get(0);
|
|
28519
|
-
}
|
|
28520
|
-
get positionEnd() {
|
|
28521
|
-
return this.children.filter(item => item.classes.contains('position')).get(1);
|
|
28522
|
-
}
|
|
28523
|
-
set position(position) {
|
|
28524
|
-
if (typeof position === 'undefined') {
|
|
28525
|
-
return;
|
|
28526
|
-
}
|
|
28527
|
-
const start = new minim__WEBPACK_IMPORTED_MODULE_0__.ArrayElement([position.start.row, position.start.column, position.start.char]);
|
|
28528
|
-
const end = new minim__WEBPACK_IMPORTED_MODULE_0__.ArrayElement([position.end.row, position.end.column, position.end.char]);
|
|
28529
|
-
start.classes.push('position');
|
|
28530
|
-
end.classes.push('position');
|
|
28531
|
-
this.push(start).push(end);
|
|
28532
|
-
}
|
|
28533
|
-
}
|
|
28534
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (SourceMap);
|
|
28535
|
-
|
|
28536
|
-
/***/ }),
|
|
28537
|
-
|
|
28538
28381
|
/***/ 91613:
|
|
28539
28382
|
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
28540
28383
|
|