@speclynx/apidom-parser-adapter-yaml-1-2 6.1.0 → 6.1.2
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.
- package/CHANGELOG.md +13 -0
- package/dist/apidom-parser-adapter-yaml-1-2.browser.js +59 -50
- package/dist/apidom-parser-adapter-yaml-1-2.browser.min.js +1 -1
- package/package.json +6 -6
- package/src/tree-sitter/syntactic-analysis/YamlAstTransformer.cjs +14 -5
- package/src/tree-sitter/syntactic-analysis/YamlAstTransformer.mjs +15 -6
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,19 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [6.1.2](https://github.com/speclynx/apidom/compare/v6.1.1...v6.1.2) (2026-10-29)
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
- **core:** drop empty lines after clip and strip block scalars ([#726](https://github.com/speclynx/apidom/issues/726)) ([ee8815f](https://github.com/speclynx/apidom/commit/ee8815fc5054a8ed34d07f94d7882cfd504f1734)), closes [#681](https://github.com/speclynx/apidom/issues/681) [speclynx/speclynx-cli#199](https://github.com/speclynx/speclynx-cli/issues/199)
|
|
11
|
+
|
|
12
|
+
## [6.1.1](https://github.com/speclynx/apidom/compare/v6.1.0...v6.1.1) (2026-10-29)
|
|
13
|
+
|
|
14
|
+
### Bug Fixes
|
|
15
|
+
|
|
16
|
+
- parse empty YAML values as null elements ([#712](https://github.com/speclynx/apidom/issues/712)) ([388e842](https://github.com/speclynx/apidom/commit/388e842f3156fc94f46724f507cbf0dd92acae06)), closes [#655](https://github.com/speclynx/apidom/issues/655) [#709](https://github.com/speclynx/apidom/issues/709) [#694](https://github.com/speclynx/apidom/issues/694)
|
|
17
|
+
- serialize empty YAML mapping keys to the empty string ([#709](https://github.com/speclynx/apidom/issues/709)) ([3ecce30](https://github.com/speclynx/apidom/commit/3ecce3025b89e5bcdb1481525fe35a86685285f9)), closes [#655](https://github.com/speclynx/apidom/issues/655) [#694](https://github.com/speclynx/apidom/issues/694)
|
|
18
|
+
|
|
6
19
|
# [6.1.0](https://github.com/speclynx/apidom/compare/v6.0.6...v6.1.0) (2026-10-17)
|
|
7
20
|
|
|
8
21
|
### Bug Fixes
|
|
@@ -992,15 +992,19 @@ const transformCstToYamlAst = (cursor, ctx) => {
|
|
|
992
992
|
__webpack_require__.r(__webpack_exports__);
|
|
993
993
|
/* harmony import */ var _speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5156);
|
|
994
994
|
/* harmony import */ var _speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(5162);
|
|
995
|
-
/* harmony import */ var _speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
|
|
996
|
-
/* harmony import */ var _speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
|
|
997
|
-
/* harmony import */ var _speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(
|
|
998
|
-
/* harmony import */ var _speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(
|
|
999
|
-
/* harmony import */ var _speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(
|
|
1000
|
-
/* harmony import */ var _speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(
|
|
1001
|
-
/* harmony import */ var _speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(
|
|
1002
|
-
/* harmony import */ var
|
|
1003
|
-
/* harmony import */ var
|
|
995
|
+
/* harmony import */ var _speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(5297);
|
|
996
|
+
/* harmony import */ var _speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(8121);
|
|
997
|
+
/* harmony import */ var _speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(8252);
|
|
998
|
+
/* harmony import */ var _speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(7601);
|
|
999
|
+
/* harmony import */ var _speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(1770);
|
|
1000
|
+
/* harmony import */ var _speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(7071);
|
|
1001
|
+
/* harmony import */ var _speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(4660);
|
|
1002
|
+
/* harmony import */ var _speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(94);
|
|
1003
|
+
/* harmony import */ var _speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(4823);
|
|
1004
|
+
/* harmony import */ var _speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(5810);
|
|
1005
|
+
/* harmony import */ var _speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(9686);
|
|
1006
|
+
/* harmony import */ var _ast_nodes_predicates_ts__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(1228);
|
|
1007
|
+
/* harmony import */ var _ast_nodes_YamlStyle_ts__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(9276);
|
|
1004
1008
|
|
|
1005
1009
|
|
|
1006
1010
|
|
|
@@ -1014,7 +1018,7 @@ const maybeAddSourceMap = (node, element, ctx) => {
|
|
|
1014
1018
|
if (!ctx.sourceMap) {
|
|
1015
1019
|
return;
|
|
1016
1020
|
}
|
|
1017
|
-
|
|
1021
|
+
_speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_11__["default"].transfer(node, element);
|
|
1018
1022
|
};
|
|
1019
1023
|
|
|
1020
1024
|
// find the first descendant matching a type path through the AST
|
|
@@ -1032,7 +1036,7 @@ const findFirst = (node, path) => {
|
|
|
1032
1036
|
// detect indent from first nested block mapping (stream > document > mapping > keyValuePair > mapping)
|
|
1033
1037
|
const detectIndent = node => {
|
|
1034
1038
|
const nested = findFirst(node, ['document', 'mapping', 'keyValuePair', 'mapping']);
|
|
1035
|
-
if (nested?.styleGroup ===
|
|
1039
|
+
if (nested?.styleGroup === _ast_nodes_YamlStyle_ts__WEBPACK_IMPORTED_MODULE_14__.YamlStyleGroup.Block && typeof nested.startCharacter === 'number' && nested.startCharacter > 0) {
|
|
1036
1040
|
return nested.startCharacter;
|
|
1037
1041
|
}
|
|
1038
1042
|
return 2;
|
|
@@ -1164,7 +1168,7 @@ const buildYamlStyle = (node, ctx, extras) => {
|
|
|
1164
1168
|
// an untagged node has the non-specific tag '?' when it's a plain scalar and '!' otherwise
|
|
1165
1169
|
// (YAML 1.2 §6.9.1); an explicit '!' on any other node means the same as no tag
|
|
1166
1170
|
const tag = node.tag?.explicitName;
|
|
1167
|
-
if (tag !== undefined && tag !== (node.style ===
|
|
1171
|
+
if (tag !== undefined && tag !== (node.style === _ast_nodes_YamlStyle_ts__WEBPACK_IMPORTED_MODULE_14__.YamlStyle.Plain ? '?' : '!')) {
|
|
1168
1172
|
yamlStyle.tag = tag;
|
|
1169
1173
|
}
|
|
1170
1174
|
// the anchor's name, without the & indicator
|
|
@@ -1278,17 +1282,17 @@ const collectStreamComments = node => {
|
|
|
1278
1282
|
if (!root) comments.before.push(text);else if (comment.startLine === root.endLine) comments.inline.push(text);else comments.after.push(text);
|
|
1279
1283
|
};
|
|
1280
1284
|
for (const child of node.children) {
|
|
1281
|
-
if ((0,
|
|
1285
|
+
if ((0,_ast_nodes_predicates_ts__WEBPACK_IMPORTED_MODULE_13__.isDocument)(child)) {
|
|
1282
1286
|
if (root) break;
|
|
1283
1287
|
// comments after an explicit document start (---) or before an explicit document end (...)
|
|
1284
1288
|
// are the document's own children, around its root node
|
|
1285
1289
|
const children = child.children || [];
|
|
1286
|
-
const rootIndex = children.findIndex(c => !(0,
|
|
1290
|
+
const rootIndex = children.findIndex(c => !(0,_ast_nodes_predicates_ts__WEBPACK_IMPORTED_MODULE_13__.isComment)(c));
|
|
1287
1291
|
if (rootIndex === -1) break;
|
|
1288
|
-
children.slice(0, rootIndex).filter(
|
|
1292
|
+
children.slice(0, rootIndex).filter(_ast_nodes_predicates_ts__WEBPACK_IMPORTED_MODULE_13__.isComment).forEach(collect);
|
|
1289
1293
|
root = children[rootIndex];
|
|
1290
|
-
children.slice(rootIndex + 1).filter(
|
|
1291
|
-
} else if ((0,
|
|
1294
|
+
children.slice(rootIndex + 1).filter(_ast_nodes_predicates_ts__WEBPACK_IMPORTED_MODULE_13__.isComment).forEach(collect);
|
|
1295
|
+
} else if ((0,_ast_nodes_predicates_ts__WEBPACK_IMPORTED_MODULE_13__.isComment)(child)) {
|
|
1292
1296
|
collect(child);
|
|
1293
1297
|
}
|
|
1294
1298
|
}
|
|
@@ -1301,7 +1305,7 @@ const transformStream = (node, ctx) => {
|
|
|
1301
1305
|
if (ctx.style) {
|
|
1302
1306
|
ctx.indent = detectIndent(node);
|
|
1303
1307
|
}
|
|
1304
|
-
const element = new
|
|
1308
|
+
const element = new _speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_10__["default"]();
|
|
1305
1309
|
|
|
1306
1310
|
// Transform all children
|
|
1307
1311
|
const children = transformChildren(node.children || [], ctx);
|
|
@@ -1361,7 +1365,7 @@ const transformDocument = (node, ctx) => {
|
|
|
1361
1365
|
const shouldSkipVisitingMoreDocuments = ctx.processedDocumentCount >= 1;
|
|
1362
1366
|
if (shouldWarnAboutMoreDocuments) {
|
|
1363
1367
|
const message = 'Only first document within YAML stream will be used. Rest will be discarded.';
|
|
1364
|
-
const element = new
|
|
1368
|
+
const element = new _speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_8__["default"](message);
|
|
1365
1369
|
element.classes.push('warning');
|
|
1366
1370
|
maybeAddSourceMap(node, element, ctx);
|
|
1367
1371
|
ctx.annotations.push(element);
|
|
@@ -1380,7 +1384,7 @@ const transformCollection = (element, node, ctx) => {
|
|
|
1380
1384
|
const typedNode = node;
|
|
1381
1385
|
const children = node.children || [];
|
|
1382
1386
|
if (ctx.style) {
|
|
1383
|
-
if (ctx.flowCollectionPadding === null && node.styleGroup ===
|
|
1387
|
+
if (ctx.flowCollectionPadding === null && node.styleGroup === _ast_nodes_YamlStyle_ts__WEBPACK_IMPORTED_MODULE_14__.YamlStyleGroup.Flow) {
|
|
1384
1388
|
ctx.flowCollectionPadding = detectFlowPadding(typedNode);
|
|
1385
1389
|
}
|
|
1386
1390
|
const comments = collectComments(children, typedNode.startCharacter);
|
|
@@ -1391,7 +1395,7 @@ const transformCollection = (element, node, ctx) => {
|
|
|
1391
1395
|
element.style = buildYamlStyle(node, ctx, {
|
|
1392
1396
|
comment: comments.trailing,
|
|
1393
1397
|
// a single pair written directly in a flow sequence (e.g. [a: 1])
|
|
1394
|
-
singlePair: node.style ===
|
|
1398
|
+
singlePair: node.style === _ast_nodes_YamlStyle_ts__WEBPACK_IMPORTED_MODULE_14__.YamlStyle.SinglePair || undefined
|
|
1395
1399
|
});
|
|
1396
1400
|
if (comments.outOfScope.length > 0) {
|
|
1397
1401
|
ctx.promotedComments.push(...comments.outOfScope);
|
|
@@ -1404,14 +1408,14 @@ const transformCollection = (element, node, ctx) => {
|
|
|
1404
1408
|
|
|
1405
1409
|
// Mapping: Transforms to ObjectElement
|
|
1406
1410
|
const transformMapping = (node, ctx) => {
|
|
1407
|
-
const element = new
|
|
1411
|
+
const element = new _speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_7__["default"]();
|
|
1408
1412
|
transformCollection(element, node, ctx);
|
|
1409
1413
|
return element;
|
|
1410
1414
|
};
|
|
1411
1415
|
|
|
1412
1416
|
// KeyValuePair: Transforms to MemberElement
|
|
1413
1417
|
const transformKeyValuePair = (node, ctx) => {
|
|
1414
|
-
const element = new
|
|
1418
|
+
const element = new _speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_6__["default"]();
|
|
1415
1419
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
1416
1420
|
const {
|
|
1417
1421
|
key,
|
|
@@ -1422,15 +1426,25 @@ const transformKeyValuePair = (node, ctx) => {
|
|
|
1422
1426
|
styleGroup,
|
|
1423
1427
|
startCharacter
|
|
1424
1428
|
} = value;
|
|
1425
|
-
if (styleGroup ===
|
|
1429
|
+
if (styleGroup === _ast_nodes_YamlStyle_ts__WEBPACK_IMPORTED_MODULE_14__.YamlStyleGroup.Block) {
|
|
1426
1430
|
ctx.indentSeq = startCharacter > node.startCharacter;
|
|
1427
1431
|
}
|
|
1428
1432
|
}
|
|
1429
1433
|
|
|
1430
1434
|
// Transform key and value (these are dynamically defined properties)
|
|
1431
|
-
|
|
1435
|
+
let keyResult = transform(key, ctx);
|
|
1432
1436
|
const valueResult = transform(value, ctx);
|
|
1433
1437
|
|
|
1438
|
+
// an empty key is a null in YAML, but a JavaScript property name can't be null, so it's the empty
|
|
1439
|
+
// string it's named by, marked as an empty key
|
|
1440
|
+
if ((0,_speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_1__.isNullElement)(keyResult) && (0,_speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_4__.includesClasses)(keyResult, ['yaml-e-node'])) {
|
|
1441
|
+
const emptyKey = new _speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_3__["default"]('', keyResult.meta, keyResult.attributes);
|
|
1442
|
+
emptyKey.classes.push('yaml-e-key');
|
|
1443
|
+
_speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_11__["default"].transfer(keyResult, emptyKey);
|
|
1444
|
+
_speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_12__["default"].transfer(keyResult, emptyKey);
|
|
1445
|
+
keyResult = emptyKey;
|
|
1446
|
+
}
|
|
1447
|
+
|
|
1434
1448
|
// @ts-ignore
|
|
1435
1449
|
element.content.key = keyResult;
|
|
1436
1450
|
// @ts-ignore
|
|
@@ -1450,19 +1464,18 @@ const transformKeyValuePair = (node, ctx) => {
|
|
|
1450
1464
|
|
|
1451
1465
|
// Sequence: Transforms to ArrayElement
|
|
1452
1466
|
const transformSequence = (node, ctx) => {
|
|
1453
|
-
const element = new
|
|
1467
|
+
const element = new _speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_5__["default"]();
|
|
1454
1468
|
transformCollection(element, node, ctx);
|
|
1455
1469
|
return element;
|
|
1456
1470
|
};
|
|
1457
1471
|
|
|
1458
1472
|
// Scalar: Converts to Element via namespace
|
|
1459
1473
|
const transformScalar = (node, ctx) => {
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
// Translate style information about empty nodes; an empty node (YAML 1.2 §7.2) is a null unless
|
|
1463
|
-
// a tag other than the null tag makes it something else (e.g. !!str makes it an empty string)
|
|
1474
|
+
// an empty node (YAML 1.2 §7.2) is a null unless a tag other than the null tag makes it
|
|
1475
|
+
// something else (e.g. !!str makes it an empty string); its classes tell it from an explicit null
|
|
1464
1476
|
const tag = node.tag?.explicitName;
|
|
1465
|
-
const isEmptyNode = node.content === '' && node.style ===
|
|
1477
|
+
const isEmptyNode = node.content === '' && node.style === _ast_nodes_YamlStyle_ts__WEBPACK_IMPORTED_MODULE_14__.YamlStyle.Plain && [undefined, '?', '!!null', '!<tag:yaml.org,2002:null>'].includes(tag);
|
|
1478
|
+
const element = isEmptyNode ? new _speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_2__["default"]() : ctx.namespace.toElement(node.content);
|
|
1466
1479
|
if (isEmptyNode) {
|
|
1467
1480
|
element.classes.push('yaml-e-node');
|
|
1468
1481
|
element.classes.push('yaml-e-scalar');
|
|
@@ -1490,7 +1503,7 @@ const transformComment = (node, ctx) => {
|
|
|
1490
1503
|
// Only interested in stream comments before the first document
|
|
1491
1504
|
if (isStreamComment) {
|
|
1492
1505
|
// @ts-ignore
|
|
1493
|
-
const element = new
|
|
1506
|
+
const element = new _speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_9__["default"](node.content);
|
|
1494
1507
|
maybeAddSourceMap(node, element, ctx);
|
|
1495
1508
|
return element;
|
|
1496
1509
|
}
|
|
@@ -1501,7 +1514,7 @@ const transformComment = (node, ctx) => {
|
|
|
1501
1514
|
const transformLiteral = (node, ctx) => {
|
|
1502
1515
|
if (node.isMissing) {
|
|
1503
1516
|
const message = `(Missing ${node.value})`;
|
|
1504
|
-
const element = new
|
|
1517
|
+
const element = new _speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_8__["default"](message);
|
|
1505
1518
|
element.classes.push('warning');
|
|
1506
1519
|
maybeAddSourceMap(node, element, ctx);
|
|
1507
1520
|
ctx.annotations.push(element);
|
|
@@ -1512,7 +1525,7 @@ const transformLiteral = (node, ctx) => {
|
|
|
1512
1525
|
// Error as annotation (used by keyValuePair)
|
|
1513
1526
|
const transformErrorAsAnnotation = (node, ctx) => {
|
|
1514
1527
|
const message = node.isUnexpected ? '(Unexpected YAML syntax error)' : '(Error YAML syntax error)';
|
|
1515
|
-
const element = new
|
|
1528
|
+
const element = new _speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_8__["default"](message);
|
|
1516
1529
|
element.classes.push('error');
|
|
1517
1530
|
maybeAddSourceMap(node, element, ctx);
|
|
1518
1531
|
ctx.annotations.push(element);
|
|
@@ -1521,7 +1534,7 @@ const transformErrorAsAnnotation = (node, ctx) => {
|
|
|
1521
1534
|
// Error: Creates error annotation (adds to annotations array)
|
|
1522
1535
|
const transformError = (node, ctx) => {
|
|
1523
1536
|
const message = node.isUnexpected ? '(Unexpected YAML syntax error)' : '(Error YAML syntax error)';
|
|
1524
|
-
const element = new
|
|
1537
|
+
const element = new _speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_8__["default"](message);
|
|
1525
1538
|
element.classes.push('error');
|
|
1526
1539
|
maybeAddSourceMap(node, element, ctx);
|
|
1527
1540
|
ctx.annotations.push(element);
|
|
@@ -1531,10 +1544,10 @@ const transformError = (node, ctx) => {
|
|
|
1531
1544
|
// Error at root level: Creates ParseResultElement with error annotation
|
|
1532
1545
|
const transformRootError = (node, ctx) => {
|
|
1533
1546
|
const message = node.isUnexpected ? '(Unexpected YAML syntax error)' : '(Error YAML syntax error)';
|
|
1534
|
-
const element = new
|
|
1547
|
+
const element = new _speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_8__["default"](message);
|
|
1535
1548
|
element.classes.push('error');
|
|
1536
1549
|
maybeAddSourceMap(node, element, ctx);
|
|
1537
|
-
const parseResultElement = new
|
|
1550
|
+
const parseResultElement = new _speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_10__["default"]();
|
|
1538
1551
|
parseResultElement.push(element);
|
|
1539
1552
|
return parseResultElement;
|
|
1540
1553
|
};
|
|
@@ -1561,7 +1574,7 @@ const transformYamlAstToApiDOM = (yamlAst, {
|
|
|
1561
1574
|
|
|
1562
1575
|
// Handle empty parse result
|
|
1563
1576
|
if (!rootNode) {
|
|
1564
|
-
return new
|
|
1577
|
+
return new _speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_10__["default"]();
|
|
1565
1578
|
}
|
|
1566
1579
|
|
|
1567
1580
|
// Handle root-level error (no valid stream, just an error node)
|
|
@@ -1571,12 +1584,12 @@ const transformYamlAstToApiDOM = (yamlAst, {
|
|
|
1571
1584
|
const result = transform(rootNode, ctx);
|
|
1572
1585
|
|
|
1573
1586
|
// Result should be a ParseResultElement from transformStream
|
|
1574
|
-
if (result instanceof
|
|
1587
|
+
if (result instanceof _speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_10__["default"]) {
|
|
1575
1588
|
return result;
|
|
1576
1589
|
}
|
|
1577
1590
|
|
|
1578
1591
|
// Fallback: wrap in ParseResultElement
|
|
1579
|
-
const parseResult = new
|
|
1592
|
+
const parseResult = new _speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_10__["default"]();
|
|
1580
1593
|
if (result !== null) {
|
|
1581
1594
|
if (Array.isArray(result)) {
|
|
1582
1595
|
result.forEach(el => parseResult.push(el));
|
|
@@ -21324,9 +21337,6 @@ class ShallowCloneError extends _CloneError_mjs__WEBPACK_IMPORTED_MODULE_0__["de
|
|
|
21324
21337
|
|
|
21325
21338
|
"use strict";
|
|
21326
21339
|
__webpack_require__.r(__webpack_exports__);
|
|
21327
|
-
/* empty/unused harmony star reexport */
|
|
21328
|
-
/* empty/unused harmony star reexport */
|
|
21329
|
-
/* empty/unused harmony star reexport */
|
|
21330
21340
|
/* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(8138);
|
|
21331
21341
|
/* harmony import */ var _ObjectSlice_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(8504);
|
|
21332
21342
|
/* harmony import */ var _KeyValuePair_mjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(6663);
|
|
@@ -22613,11 +22623,10 @@ class CollectionElement extends _Element_mjs__WEBPACK_IMPORTED_MODULE_0__["defau
|
|
|
22613
22623
|
|
|
22614
22624
|
"use strict";
|
|
22615
22625
|
__webpack_require__.r(__webpack_exports__);
|
|
22616
|
-
/* empty/unused harmony star reexport */
|
|
22617
22626
|
/* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(3654);
|
|
22618
22627
|
/* harmony import */ var _Metadata_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1844);
|
|
22619
|
-
/* harmony import */ var
|
|
22620
|
-
/* harmony import */ var
|
|
22628
|
+
/* harmony import */ var _KeyValuePair_mjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(6663);
|
|
22629
|
+
/* harmony import */ var _ObjectSlice_mjs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(8504);
|
|
22621
22630
|
|
|
22622
22631
|
|
|
22623
22632
|
|
|
@@ -22787,13 +22796,13 @@ class Element {
|
|
|
22787
22796
|
}
|
|
22788
22797
|
|
|
22789
22798
|
// KeyValuePair
|
|
22790
|
-
if (value instanceof
|
|
22799
|
+
if (value instanceof _KeyValuePair_mjs__WEBPACK_IMPORTED_MODULE_2__["default"]) {
|
|
22791
22800
|
this._content = value;
|
|
22792
22801
|
return;
|
|
22793
22802
|
}
|
|
22794
22803
|
|
|
22795
22804
|
// ObjectSlice - extract elements array
|
|
22796
|
-
if (value instanceof
|
|
22805
|
+
if (value instanceof _ObjectSlice_mjs__WEBPACK_IMPORTED_MODULE_3__["default"]) {
|
|
22797
22806
|
this._content = value.elements;
|
|
22798
22807
|
return;
|
|
22799
22808
|
}
|
|
@@ -22912,7 +22921,7 @@ class Element {
|
|
|
22912
22921
|
if (Array.isArray(content)) {
|
|
22913
22922
|
return content;
|
|
22914
22923
|
}
|
|
22915
|
-
if (content instanceof
|
|
22924
|
+
if (content instanceof _KeyValuePair_mjs__WEBPACK_IMPORTED_MODULE_2__["default"]) {
|
|
22916
22925
|
const children = [];
|
|
22917
22926
|
if (content.key) children.push(content.key);
|
|
22918
22927
|
if (content.value) children.push(content.value);
|
|
@@ -22976,7 +22985,7 @@ class Element {
|
|
|
22976
22985
|
if (_content instanceof Element) {
|
|
22977
22986
|
return _content.toValue();
|
|
22978
22987
|
}
|
|
22979
|
-
if (_content instanceof
|
|
22988
|
+
if (_content instanceof _KeyValuePair_mjs__WEBPACK_IMPORTED_MODULE_2__["default"]) {
|
|
22980
22989
|
return _content.toValue();
|
|
22981
22990
|
}
|
|
22982
22991
|
if (Array.isArray(_content)) {
|