@swagger-api/apidom-parser-adapter-json-schema-json-2020-12 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.
@@ -833,6 +833,7 @@ __webpack_require__.r(__webpack_exports__);
833
833
  /* harmony export */ });
834
834
  /* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(28400);
835
835
  /* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(50726);
836
+ /* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(10977);
836
837
 
837
838
 
838
839
  /**
@@ -848,21 +849,19 @@ class Visitor {
848
849
  Object.assign(this, options);
849
850
  }
850
851
 
851
- // eslint-disable-next-line class-methods-use-this
852
+ /* eslint-disable class-methods-use-this, no-param-reassign */
852
853
  copyMetaAndAttributes(from, to) {
853
854
  if (from.meta.length > 0 || to.meta.length > 0) {
854
- // eslint-disable-next-line no-param-reassign
855
855
  to.meta = (0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_0__["default"])(to.meta, from.meta);
856
- if ((0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_1__.hasElementSourceMap)(from)) {
857
- // avoid deep merging of source maps
858
- to.meta.set('sourceMap', from.meta.get('sourceMap'));
859
- }
856
+ }
857
+ if ((0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_1__.hasElementSourceMap)(from)) {
858
+ (0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_2__.assignSourceMap)(to, from);
860
859
  }
861
860
  if (from.attributes.length > 0 || from.meta.length > 0) {
862
- // eslint-disable-next-line no-param-reassign
863
861
  to.attributes = (0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_0__["default"])(to.attributes, from.attributes);
864
862
  }
865
863
  }
864
+ /* eslint-enable class-methods-use-this, no-param-reassign */
866
865
  }
867
866
  /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Visitor);
868
867
 
@@ -997,65 +996,6 @@ const jsonSchemaDraft4 = {
997
996
 
998
997
  /***/ }),
999
998
 
1000
- /***/ 3487:
1001
- /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
1002
-
1003
- "use strict";
1004
- __webpack_require__.r(__webpack_exports__);
1005
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1006
- /* harmony export */ Point: () => (/* binding */ Point),
1007
- /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
1008
- /* harmony export */ });
1009
- /* eslint-disable max-classes-per-file */
1010
-
1011
- /**
1012
- * @public
1013
- */
1014
-
1015
- /**
1016
- * @public
1017
- */
1018
- class Point {
1019
- static type = 'point';
1020
- type = Point.type;
1021
- row;
1022
- column;
1023
- char;
1024
- constructor({
1025
- row,
1026
- column,
1027
- char
1028
- }) {
1029
- this.row = row;
1030
- this.column = column;
1031
- this.char = char;
1032
- }
1033
- }
1034
-
1035
- /**
1036
- * @public
1037
- */
1038
-
1039
- /**
1040
- * @public
1041
- */
1042
- class Position {
1043
- static type = 'position';
1044
- type = Position.type;
1045
- start;
1046
- end;
1047
- constructor({
1048
- start,
1049
- end
1050
- }) {
1051
- this.start = start;
1052
- this.end = end;
1053
- }
1054
- }
1055
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Position);
1056
-
1057
- /***/ }),
1058
-
1059
999
  /***/ 3491:
1060
1000
  /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
1061
1001
 
@@ -2622,6 +2562,7 @@ class DependentRequiredVisitor extends _swagger_api_apidom_ns_json_schema_draft_
2622
2562
  "use strict";
2623
2563
  __webpack_require__.r(__webpack_exports__);
2624
2564
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
2565
+ /* harmony export */ assignSourceMap: () => (/* binding */ assignSourceMap),
2625
2566
  /* harmony export */ dereference: () => (/* binding */ dereference)
2626
2567
  /* harmony export */ });
2627
2568
  /* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(66719);
@@ -2656,6 +2597,20 @@ const dereference = (object, root) => {
2656
2597
  return val;
2657
2598
  }, object);
2658
2599
  };
2600
+ /**
2601
+ * @public
2602
+ */
2603
+ /* eslint-disable no-param-reassign */
2604
+ const assignSourceMap = (to, from) => {
2605
+ to.startPositionRow = from === null || from === void 0 ? void 0 : from.startPositionRow;
2606
+ to.startPositionColumn = from === null || from === void 0 ? void 0 : from.startPositionColumn;
2607
+ to.startIndex = from === null || from === void 0 ? void 0 : from.startIndex;
2608
+ to.endPositionRow = from === null || from === void 0 ? void 0 : from.endPositionRow;
2609
+ to.endPositionColumn = from === null || from === void 0 ? void 0 : from.endPositionColumn;
2610
+ to.endIndex = from === null || from === void 0 ? void 0 : from.endIndex;
2611
+ return to;
2612
+ };
2613
+ /* eslint-enable no-param-reassign */
2659
2614
 
2660
2615
  /***/ }),
2661
2616
 
@@ -2731,9 +2686,7 @@ __webpack_require__.r(__webpack_exports__);
2731
2686
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
2732
2687
  /* harmony export */ isLiteral: () => (/* binding */ isLiteral),
2733
2688
  /* harmony export */ isNodeType: () => (/* binding */ isNodeType),
2734
- /* harmony export */ isParseResult: () => (/* binding */ isParseResult),
2735
- /* harmony export */ isPoint: () => (/* binding */ isPoint),
2736
- /* harmony export */ isPosition: () => (/* binding */ isPosition)
2689
+ /* harmony export */ isParseResult: () => (/* binding */ isParseResult)
2737
2690
  /* harmony export */ });
2738
2691
  /**
2739
2692
  * @public
@@ -2745,16 +2698,6 @@ const isNodeType = (type, node) => node != null && typeof node === 'object' && '
2745
2698
  */
2746
2699
  const isLiteral = node => isNodeType('literal', node);
2747
2700
 
2748
- /**
2749
- * @public
2750
- */
2751
- const isPosition = node => isNodeType('position', node);
2752
-
2753
- /**
2754
- * @public
2755
- */
2756
- const isPoint = node => isNodeType('point', node);
2757
-
2758
2701
  /**
2759
2702
  * @public
2760
2703
  */
@@ -8144,8 +8087,7 @@ const keyMapDefault = {
8144
8087
  LinkElement: [],
8145
8088
  Annotation: [],
8146
8089
  Comment: [],
8147
- ParseResultElement: ['content'],
8148
- SourceMap: ['content']
8090
+ ParseResultElement: ['content']
8149
8091
  };
8150
8092
  class PredicateVisitor {
8151
8093
  result;
@@ -12000,8 +11942,7 @@ __webpack_require__.r(__webpack_exports__);
12000
11942
  /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__),
12001
11943
  /* harmony export */ keyMap: () => (/* binding */ keyMap)
12002
11944
  /* harmony export */ });
12003
- /* harmony import */ var _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(3487);
12004
- /* harmony import */ var _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(68200);
11945
+ /* harmony import */ var _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(68200);
12005
11946
  /* harmony import */ var _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(3252);
12006
11947
  /* harmony import */ var _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(86339);
12007
11948
  /* harmony import */ var _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(92178);
@@ -12015,9 +11956,11 @@ __webpack_require__.r(__webpack_exports__);
12015
11956
  /* harmony import */ var _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(78567);
12016
11957
  /* harmony import */ var _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(64708);
12017
11958
  /* harmony import */ var _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(24676);
11959
+ /* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(10977);
12018
11960
  /* harmony import */ var _TreeCursorSyntaxNode_mjs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(65587);
12019
11961
 
12020
11962
 
11963
+
12021
11964
  const keyMap = {
12022
11965
  document: ['children'],
12023
11966
  object: ['children'],
@@ -12031,30 +11974,12 @@ const keyMap = {
12031
11974
  /* eslint-disable class-methods-use-this */
12032
11975
 
12033
11976
  class CstVisitor {
12034
- static toPosition(node) {
12035
- const start = new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_0__.Point({
12036
- row: node.startPosition.row,
12037
- column: node.startPosition.column,
12038
- char: node.startIndex
12039
- });
12040
- const end = new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_0__.Point({
12041
- row: node.endPosition.row,
12042
- column: node.endPosition.column,
12043
- char: node.endIndex
12044
- });
12045
- return new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_0__["default"]({
12046
- start,
12047
- end
12048
- });
12049
- }
12050
11977
  document = {
12051
11978
  enter: node => {
12052
- const position = CstVisitor.toPosition(node);
12053
- return new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_1__["default"]({
11979
+ return new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_0__["default"]((0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_1__.assignSourceMap)({
12054
11980
  children: node.children,
12055
- position,
12056
11981
  isMissing: node.isMissing
12057
- });
11982
+ }, node));
12058
11983
  },
12059
11984
  leave: document => {
12060
11985
  return new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_2__["default"]({
@@ -12065,114 +11990,93 @@ class CstVisitor {
12065
11990
  enter(node) {
12066
11991
  // anonymous literals from CST transformed into AST literal nodes
12067
11992
  if (node instanceof _TreeCursorSyntaxNode_mjs__WEBPACK_IMPORTED_MODULE_3__["default"] && !node.isNamed) {
12068
- const position = CstVisitor.toPosition(node);
12069
11993
  const value = node.type || node.text;
12070
11994
  const {
12071
11995
  isMissing
12072
11996
  } = node;
12073
- return new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_4__["default"]({
11997
+ return new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_4__["default"]((0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_1__.assignSourceMap)({
12074
11998
  value,
12075
- position,
12076
11999
  isMissing
12077
- });
12000
+ }, node));
12078
12001
  }
12079
12002
  return undefined;
12080
12003
  }
12081
12004
  object(node) {
12082
- const position = CstVisitor.toPosition(node);
12083
- return new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_5__["default"]({
12005
+ return new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_5__["default"]((0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_1__.assignSourceMap)({
12084
12006
  children: node.children,
12085
- position,
12086
12007
  isMissing: node.isMissing
12087
- });
12008
+ }, node));
12088
12009
  }
12089
12010
  pair(node) {
12090
- const position = CstVisitor.toPosition(node);
12091
12011
  const children = node.children.slice(1);
12092
12012
  const {
12093
12013
  keyNode
12094
12014
  } = node;
12095
- const key = new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_6__["default"]({
12015
+ const key = new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_6__["default"]((0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_1__.assignSourceMap)({
12096
12016
  children: (keyNode === null || keyNode === void 0 ? void 0 : keyNode.children) || [],
12097
- position: keyNode != null ? CstVisitor.toPosition(keyNode) : undefined,
12098
12017
  isMissing: keyNode != null ? keyNode.isMissing : false
12099
- });
12100
- return new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_7__["default"]({
12018
+ }, keyNode));
12019
+ return new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_7__["default"]((0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_1__.assignSourceMap)({
12101
12020
  children: [key, ...children],
12102
- position,
12103
12021
  isMissing: node.isMissing
12104
- });
12022
+ }, node));
12105
12023
  }
12106
12024
  array(node) {
12107
- const position = CstVisitor.toPosition(node);
12108
- return new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_8__["default"]({
12025
+ return new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_8__["default"]((0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_1__.assignSourceMap)({
12109
12026
  children: node.children,
12110
- position,
12111
12027
  isMissing: node.isMissing
12112
- });
12028
+ }, node));
12113
12029
  }
12114
12030
  string(node) {
12115
- const position = CstVisitor.toPosition(node);
12116
12031
  const content = new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_9__["default"]({
12117
12032
  value: JSON.parse(node.text)
12118
12033
  });
12119
- return new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_10__["default"]({
12034
+ return new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_10__["default"]((0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_1__.assignSourceMap)({
12120
12035
  children: [content],
12121
- position,
12122
12036
  isMissing: node.isMissing
12123
- });
12037
+ }, node));
12124
12038
  }
12125
12039
  number(node) {
12126
- const position = CstVisitor.toPosition(node);
12127
12040
  const value = node.text;
12128
- return new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_11__["default"]({
12041
+ return new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_11__["default"]((0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_1__.assignSourceMap)({
12129
12042
  value,
12130
- position,
12131
12043
  isMissing: node.isMissing
12132
- });
12044
+ }, node));
12133
12045
  }
12134
12046
 
12135
12047
  // eslint-disable-next-line @typescript-eslint/naming-convention
12136
12048
  null(node) {
12137
- const position = CstVisitor.toPosition(node);
12138
12049
  const value = node.text;
12139
- return new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_12__["default"]({
12050
+ return new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_12__["default"]((0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_1__.assignSourceMap)({
12140
12051
  value,
12141
- position,
12142
12052
  isMissing: node.isMissing
12143
- });
12053
+ }, node));
12144
12054
  }
12145
12055
 
12146
12056
  // eslint-disable-next-line @typescript-eslint/naming-convention
12147
12057
  true(node) {
12148
- const position = CstVisitor.toPosition(node);
12149
12058
  const value = node.text;
12150
- return new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_13__["default"]({
12059
+ return new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_13__["default"]((0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_1__.assignSourceMap)({
12151
12060
  value,
12152
- position,
12153
12061
  isMissing: node.isMissing
12154
- });
12062
+ }, node));
12155
12063
  }
12156
12064
 
12157
12065
  // eslint-disable-next-line @typescript-eslint/naming-convention
12158
12066
  false(node) {
12159
- const position = CstVisitor.toPosition(node);
12160
12067
  const value = node.text;
12161
- return new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_14__["default"]({
12068
+ return new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_14__["default"]((0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_1__.assignSourceMap)({
12162
12069
  value,
12163
- position,
12164
12070
  isMissing: node.isMissing
12165
- });
12071
+ }, node));
12166
12072
  }
12167
12073
  ERROR(node, key, parent, path) {
12168
- const position = CstVisitor.toPosition(node);
12169
- const errorNode = new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_15__["default"]({
12074
+ const errorNode = new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_15__["default"]((0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_1__.assignSourceMap)({
12170
12075
  children: node.children,
12171
- position,
12172
12076
  isUnexpected: !node.hasError,
12173
12077
  isMissing: node.isMissing,
12174
12078
  value: node.text
12175
- });
12079
+ }, node));
12176
12080
  if (path.length === 0) {
12177
12081
  return new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_2__["default"]({
12178
12082
  children: [errorNode]
@@ -13011,7 +12915,9 @@ __webpack_require__.r(__webpack_exports__);
13011
12915
  /* harmony import */ var minim__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(88326);
13012
12916
  /* harmony import */ var _predicates_index_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(50726);
13013
12917
  /* harmony import */ var _errors_DeepCloneError_mjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(39112);
13014
- /* harmony import */ var _errors_ShallowCloneError_mjs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(16500);
12918
+ /* harmony import */ var _errors_ShallowCloneError_mjs__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(16500);
12919
+ /* harmony import */ var _util_mjs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(10977);
12920
+
13015
12921
 
13016
12922
 
13017
12923
 
@@ -13115,6 +13021,9 @@ const cloneShallowElement = element => {
13115
13021
  // @ts-ignore
13116
13022
  const copy = new element.constructor();
13117
13023
  copy.element = element.element;
13024
+ if ((0,_predicates_index_mjs__WEBPACK_IMPORTED_MODULE_1__.hasElementSourceMap)(element)) {
13025
+ (0,_util_mjs__WEBPACK_IMPORTED_MODULE_3__.assignSourceMap)(copy, element);
13026
+ }
13118
13027
  if (element.meta.length > 0) {
13119
13028
  copy._meta = cloneDeep(element.meta);
13120
13029
  }
@@ -13151,7 +13060,7 @@ const cloneShallow = value => {
13151
13060
  if ((0,_predicates_index_mjs__WEBPACK_IMPORTED_MODULE_1__.isElement)(value)) {
13152
13061
  return cloneShallowElement(value);
13153
13062
  }
13154
- throw new _errors_ShallowCloneError_mjs__WEBPACK_IMPORTED_MODULE_3__["default"]("Value provided to cloneShallow function couldn't be cloned", {
13063
+ throw new _errors_ShallowCloneError_mjs__WEBPACK_IMPORTED_MODULE_4__["default"]("Value provided to cloneShallow function couldn't be cloned", {
13155
13064
  value
13156
13065
  });
13157
13066
  };
@@ -15108,16 +15017,31 @@ class Node {
15108
15017
  type = 'node';
15109
15018
  isMissing;
15110
15019
  children;
15111
- position;
15020
+ startPositionRow;
15021
+ startPositionColumn;
15022
+ startIndex;
15023
+ endPositionRow;
15024
+ endPositionColumn;
15025
+ endIndex;
15112
15026
  constructor({
15113
15027
  children = [],
15114
- position,
15115
- isMissing = false
15028
+ isMissing = false,
15029
+ startPositionRow,
15030
+ startPositionColumn,
15031
+ startIndex,
15032
+ endPositionRow,
15033
+ endPositionColumn,
15034
+ endIndex
15116
15035
  } = {}) {
15117
15036
  this.type = this.constructor.type;
15118
15037
  this.isMissing = isMissing;
15119
15038
  this.children = children;
15120
- this.position = position;
15039
+ this.startPositionRow = startPositionRow;
15040
+ this.startPositionColumn = startPositionColumn;
15041
+ this.startIndex = startIndex;
15042
+ this.endPositionRow = endPositionRow;
15043
+ this.endPositionColumn = endPositionColumn;
15044
+ this.endIndex = endIndex;
15121
15045
  }
15122
15046
 
15123
15047
  // creates shallow clone of node
@@ -15520,16 +15444,14 @@ __webpack_require__.r(__webpack_exports__);
15520
15444
  /* harmony export */ isParseResultElement: () => (/* binding */ isParseResultElement),
15521
15445
  /* harmony export */ isPrimitiveElement: () => (/* binding */ isPrimitiveElement),
15522
15446
  /* harmony export */ isRefElement: () => (/* binding */ isRefElement),
15523
- /* harmony export */ isSourceMapElement: () => (/* binding */ isSourceMapElement),
15524
15447
  /* harmony export */ isStringElement: () => (/* binding */ isStringElement)
15525
15448
  /* harmony export */ });
15526
15449
  /* harmony import */ var minim__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(88326);
15527
- /* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(95380);
15528
- /* harmony import */ var ramda_adjunct__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(73699);
15450
+ /* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(95380);
15451
+ /* harmony import */ var ramda_adjunct__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(73699);
15529
15452
  /* harmony import */ var _elements_Annotation_mjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(14102);
15530
15453
  /* harmony import */ var _elements_Comment_mjs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(10068);
15531
15454
  /* harmony import */ var _elements_ParseResult_mjs__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(18737);
15532
- /* harmony import */ var _elements_SourceMap_mjs__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(91364);
15533
15455
  /* harmony import */ var _helpers_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(70145);
15534
15456
 
15535
15457
 
@@ -15538,7 +15460,6 @@ __webpack_require__.r(__webpack_exports__);
15538
15460
 
15539
15461
 
15540
15462
 
15541
-
15542
15463
  /**
15543
15464
  * @public
15544
15465
  */
@@ -15677,17 +15598,6 @@ const isParseResultElement = (0,_helpers_mjs__WEBPACK_IMPORTED_MODULE_1__["defau
15677
15598
  return element => element instanceof _elements_ParseResult_mjs__WEBPACK_IMPORTED_MODULE_4__["default"] || hasBasicElementProps(element) && isElementType('parseResult', element) && primitiveEq('array', element);
15678
15599
  });
15679
15600
 
15680
- /**
15681
- * @public
15682
- */
15683
- const isSourceMapElement = (0,_helpers_mjs__WEBPACK_IMPORTED_MODULE_1__["default"])(({
15684
- hasBasicElementProps,
15685
- isElementType,
15686
- primitiveEq
15687
- }) => {
15688
- return element => element instanceof _elements_SourceMap_mjs__WEBPACK_IMPORTED_MODULE_5__["default"] || hasBasicElementProps(element) && isElementType('sourceMap', element) && primitiveEq('array', element);
15689
- });
15690
-
15691
15601
  /**
15692
15602
  * @public
15693
15603
  */
@@ -15703,7 +15613,10 @@ const isPrimitiveElement = element => {
15703
15613
  * @public
15704
15614
  */
15705
15615
  const hasElementSourceMap = element => {
15706
- return isSourceMapElement(element.meta.get('sourceMap'));
15616
+ if (!isElement(element)) {
15617
+ return false;
15618
+ }
15619
+ 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);
15707
15620
  };
15708
15621
 
15709
15622
  /**
@@ -15717,7 +15630,7 @@ const includesSymbols = (symbols, element) => {
15717
15630
  if (!isArrayElement(elementSymbols)) {
15718
15631
  return false;
15719
15632
  }
15720
- return (0,ramda__WEBPACK_IMPORTED_MODULE_6__["default"])((0,ramda_adjunct__WEBPACK_IMPORTED_MODULE_7__["default"])(elementSymbols.toValue()), symbols);
15633
+ return (0,ramda__WEBPACK_IMPORTED_MODULE_5__["default"])((0,ramda_adjunct__WEBPACK_IMPORTED_MODULE_6__["default"])(elementSymbols.toValue()), symbols);
15721
15634
  };
15722
15635
 
15723
15636
  /**
@@ -15727,7 +15640,7 @@ const includesClasses = (classes, element) => {
15727
15640
  if (classes.length === 0) {
15728
15641
  return true;
15729
15642
  }
15730
- return (0,ramda__WEBPACK_IMPORTED_MODULE_6__["default"])((0,ramda_adjunct__WEBPACK_IMPORTED_MODULE_7__["default"])(element.classes.toValue()), classes);
15643
+ return (0,ramda__WEBPACK_IMPORTED_MODULE_5__["default"])((0,ramda_adjunct__WEBPACK_IMPORTED_MODULE_6__["default"])(element.classes.toValue()), classes);
15731
15644
  };
15732
15645
 
15733
15646
  /***/ }),
@@ -16084,28 +15997,22 @@ __webpack_require__.r(__webpack_exports__);
16084
15997
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
16085
15998
  /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
16086
15999
  /* harmony export */ });
16087
- /* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(61339);
16088
- /* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(50726);
16000
+ /* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(50726);
16001
+ /* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(61339);
16089
16002
  /* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(88326);
16090
- /* harmony import */ var _TreeCursorSyntaxNode_mjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(65587);
16003
+ /* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(10977);
16004
+ /* harmony import */ var _TreeCursorSyntaxNode_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(65587);
16091
16005
 
16092
16006
 
16093
16007
  /* eslint-disable no-underscore-dangle */
16094
16008
  class CstVisitor {
16095
- static toPosition(node) {
16096
- const start = new _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_0__.ArrayElement([node.startPosition.row, node.startPosition.column, node.startIndex]);
16097
- const end = new _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_0__.ArrayElement([node.endPosition.row, node.endPosition.column, node.endIndex]);
16098
- start.classes.push('position');
16099
- end.classes.push('position');
16100
- return [start, end];
16101
- }
16102
16009
  sourceMap = false;
16103
16010
  annotations;
16104
16011
  ParseResultElement = {
16105
16012
  leave: element => {
16106
16013
  // mark first-non Annotation element as result
16107
16014
  // @ts-ignore
16108
- const elements = element.findElements(_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_1__.isPrimitiveElement);
16015
+ const elements = element.findElements(_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_0__.isPrimitiveElement);
16109
16016
  if (elements.length > 0) {
16110
16017
  const resultElement = elements[0];
16111
16018
  resultElement.classes.push('result');
@@ -16123,11 +16030,11 @@ class CstVisitor {
16123
16030
  }
16124
16031
  enter(node) {
16125
16032
  // missing anonymous literals from CST transformed into AnnotationElements.
16126
- if (node instanceof _TreeCursorSyntaxNode_mjs__WEBPACK_IMPORTED_MODULE_2__["default"] && !node.isNamed && node.isMissing) {
16033
+ if (node instanceof _TreeCursorSyntaxNode_mjs__WEBPACK_IMPORTED_MODULE_1__["default"] && !node.isNamed && node.isMissing) {
16127
16034
  // collect annotations from missing literals
16128
16035
  const value = node.type || node.text;
16129
16036
  const message = `(Missing ${value})`;
16130
- const element = new _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_0__.AnnotationElement(message);
16037
+ const element = new _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_2__.AnnotationElement(message);
16131
16038
  element.classes.push('warning');
16132
16039
  this.maybeAddSourceMap(node, element);
16133
16040
  this.annotations.push(element);
@@ -16135,21 +16042,21 @@ class CstVisitor {
16135
16042
  return null; // remove everything unrecognized
16136
16043
  }
16137
16044
  document(node) {
16138
- const element = new _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_0__.ParseResultElement();
16045
+ const element = new _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_2__.ParseResultElement();
16139
16046
  // @ts-ignore
16140
16047
  element._content = node.children;
16141
16048
  this.maybeAddSourceMap(node, element);
16142
16049
  return element;
16143
16050
  }
16144
16051
  object(node) {
16145
- const element = new _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_0__.ObjectElement();
16052
+ const element = new _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_2__.ObjectElement();
16146
16053
  // @ts-ignore
16147
16054
  element._content = node.children;
16148
16055
  this.maybeAddSourceMap(node, element);
16149
16056
  return element;
16150
16057
  }
16151
16058
  array(node) {
16152
- const element = new _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_0__.ArrayElement();
16059
+ const element = new _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_2__.ArrayElement();
16153
16060
  // @ts-ignore
16154
16061
  element._content = node.children;
16155
16062
  this.maybeAddSourceMap(node, element);
@@ -16175,33 +16082,33 @@ class CstVisitor {
16175
16082
  return element;
16176
16083
  }
16177
16084
  string(node) {
16178
- const element = new _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_0__.StringElement(JSON.parse(node.text));
16085
+ const element = new _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_2__.StringElement(JSON.parse(node.text));
16179
16086
  this.maybeAddSourceMap(node, element);
16180
16087
  return element;
16181
16088
  }
16182
16089
  number(node) {
16183
- const element = new _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_0__.NumberElement(Number(node.text));
16090
+ const element = new _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_2__.NumberElement(Number(node.text));
16184
16091
  this.maybeAddSourceMap(node, element);
16185
16092
  return element;
16186
16093
  }
16187
16094
 
16188
16095
  // eslint-disable-next-line @typescript-eslint/naming-convention
16189
16096
  null(node) {
16190
- const element = new _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_0__.NullElement();
16097
+ const element = new _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_2__.NullElement();
16191
16098
  this.maybeAddSourceMap(node, element);
16192
16099
  return element;
16193
16100
  }
16194
16101
 
16195
16102
  // eslint-disable-next-line @typescript-eslint/naming-convention
16196
16103
  true(node) {
16197
- const element = new _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_0__.BooleanElement(true);
16104
+ const element = new _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_2__.BooleanElement(true);
16198
16105
  this.maybeAddSourceMap(node, element);
16199
16106
  return element;
16200
16107
  }
16201
16108
 
16202
16109
  // eslint-disable-next-line @typescript-eslint/naming-convention
16203
16110
  false(node) {
16204
- const element = new _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_0__.BooleanElement(false);
16111
+ const element = new _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_2__.BooleanElement(false);
16205
16112
  this.maybeAddSourceMap(node, element);
16206
16113
  return element;
16207
16114
  }
@@ -16210,12 +16117,12 @@ class CstVisitor {
16210
16117
  const isUnexpected = !node.hasError;
16211
16118
  const value = node.text;
16212
16119
  const message = isUnexpected ? `(Unexpected ${value})` : `(Error ${value})`;
16213
- const element = new _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_0__.AnnotationElement(message);
16120
+ const element = new _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_2__.AnnotationElement(message);
16214
16121
  element.classes.push('error');
16215
16122
  this.maybeAddSourceMap(node, element);
16216
16123
  if (path.length === 0) {
16217
16124
  // no document to visit, only error is present in CST
16218
- const parseResultElement = new _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_0__.ParseResultElement();
16125
+ const parseResultElement = new _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_2__.ParseResultElement();
16219
16126
  parseResultElement.push(element);
16220
16127
  return parseResultElement;
16221
16128
  }
@@ -16228,16 +16135,7 @@ class CstVisitor {
16228
16135
  if (!this.sourceMap) {
16229
16136
  return;
16230
16137
  }
16231
- const sourceMap = new _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_0__.SourceMapElement();
16232
- const position = CstVisitor.toPosition(node);
16233
- if (position !== null) {
16234
- const [start, end] = position;
16235
- sourceMap.push(start);
16236
- sourceMap.push(end);
16237
- }
16238
- // @ts-ignore
16239
- sourceMap.astNode = node;
16240
- element.meta.set('sourceMap', sourceMap);
16138
+ (0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_4__.assignSourceMap)(element, node);
16241
16139
  }
16242
16140
  }
16243
16141
 
@@ -18880,21 +18778,18 @@ __webpack_require__.r(__webpack_exports__);
18880
18778
  /* harmony export */ ObjectElement: () => (/* reexport safe */ minim__WEBPACK_IMPORTED_MODULE_0__.ObjectElement),
18881
18779
  /* harmony export */ ParseResultElement: () => (/* reexport safe */ _elements_ParseResult_mjs__WEBPACK_IMPORTED_MODULE_4__["default"]),
18882
18780
  /* harmony export */ RefElement: () => (/* reexport safe */ minim__WEBPACK_IMPORTED_MODULE_0__.RefElement),
18883
- /* harmony export */ SourceMapElement: () => (/* reexport safe */ _elements_SourceMap_mjs__WEBPACK_IMPORTED_MODULE_5__["default"]),
18884
18781
  /* harmony export */ StringElement: () => (/* reexport safe */ minim__WEBPACK_IMPORTED_MODULE_0__.StringElement)
18885
18782
  /* harmony export */ });
18886
18783
  /* harmony import */ var minim__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(88326);
18887
18784
  /* harmony import */ var _elements_Annotation_mjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(14102);
18888
18785
  /* harmony import */ var _elements_Comment_mjs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(10068);
18889
18786
  /* harmony import */ var _elements_ParseResult_mjs__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(18737);
18890
- /* harmony import */ var _elements_SourceMap_mjs__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(91364);
18891
18787
  /* harmony import */ var _index_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(70696);
18892
18788
 
18893
18789
 
18894
18790
 
18895
18791
 
18896
18792
 
18897
-
18898
18793
  minim__WEBPACK_IMPORTED_MODULE_0__.ObjectElement.refract = (0,_index_mjs__WEBPACK_IMPORTED_MODULE_1__.createRefractor)(minim__WEBPACK_IMPORTED_MODULE_0__.ObjectElement);
18899
18794
  minim__WEBPACK_IMPORTED_MODULE_0__.ArrayElement.refract = (0,_index_mjs__WEBPACK_IMPORTED_MODULE_1__.createRefractor)(minim__WEBPACK_IMPORTED_MODULE_0__.ArrayElement);
18900
18795
  minim__WEBPACK_IMPORTED_MODULE_0__.StringElement.refract = (0,_index_mjs__WEBPACK_IMPORTED_MODULE_1__.createRefractor)(minim__WEBPACK_IMPORTED_MODULE_0__.StringElement);
@@ -18906,7 +18801,6 @@ minim__WEBPACK_IMPORTED_MODULE_0__.RefElement.refract = (0,_index_mjs__WEBPACK_I
18906
18801
  _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"]);
18907
18802
  _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"]);
18908
18803
  _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"]);
18909
- _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"]);
18910
18804
 
18911
18805
 
18912
18806
  /***/ }),
@@ -19699,9 +19593,11 @@ __webpack_require__.r(__webpack_exports__);
19699
19593
  /* harmony export */ });
19700
19594
  class TreeCursorSyntaxNode {
19701
19595
  type;
19702
- startPosition;
19703
- endPosition;
19596
+ startPositionRow;
19597
+ startPositionColumn;
19704
19598
  startIndex;
19599
+ endPositionRow;
19600
+ endPositionColumn;
19705
19601
  endIndex;
19706
19602
  text;
19707
19603
  isNamed;
@@ -19711,9 +19607,11 @@ class TreeCursorSyntaxNode {
19711
19607
  children = [];
19712
19608
  constructor(cursor) {
19713
19609
  this.type = cursor.nodeType;
19714
- this.startPosition = cursor.startPosition;
19715
- this.endPosition = cursor.endPosition;
19610
+ this.startPositionRow = cursor.startPosition.row;
19611
+ this.startPositionColumn = cursor.startPosition.column;
19716
19612
  this.startIndex = cursor.startIndex;
19613
+ this.endPositionRow = cursor.endPosition.row;
19614
+ this.endPositionColumn = cursor.endPosition.column;
19717
19615
  this.endIndex = cursor.endIndex;
19718
19616
  this.text = cursor.nodeText;
19719
19617
  this.isNamed = cursor.nodeIsNamed;
@@ -21908,12 +21806,10 @@ __webpack_require__.r(__webpack_exports__);
21908
21806
  /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
21909
21807
  /* harmony export */ });
21910
21808
  /* harmony import */ var minim__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(88326);
21911
- /* harmony import */ var ramda_adjunct__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(34606);
21809
+ /* harmony import */ var ramda_adjunct__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(34606);
21912
21810
  /* harmony import */ var _elements_Annotation_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(14102);
21913
21811
  /* harmony import */ var _elements_Comment_mjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(10068);
21914
21812
  /* harmony import */ var _elements_ParseResult_mjs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(18737);
21915
- /* harmony import */ var _elements_SourceMap_mjs__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(91364);
21916
-
21917
21813
 
21918
21814
 
21919
21815
 
@@ -21928,7 +21824,6 @@ class Namespace extends minim__WEBPACK_IMPORTED_MODULE_0__.Namespace {
21928
21824
  this.register('annotation', _elements_Annotation_mjs__WEBPACK_IMPORTED_MODULE_1__["default"]);
21929
21825
  this.register('comment', _elements_Comment_mjs__WEBPACK_IMPORTED_MODULE_2__["default"]);
21930
21826
  this.register('parseResult', _elements_ParseResult_mjs__WEBPACK_IMPORTED_MODULE_3__["default"]);
21931
- this.register('sourceMap', _elements_SourceMap_mjs__WEBPACK_IMPORTED_MODULE_4__["default"]);
21932
21827
  }
21933
21828
  }
21934
21829
 
@@ -21942,7 +21837,7 @@ const namespace = new Namespace();
21942
21837
  */
21943
21838
  const createNamespace = namespacePlugin => {
21944
21839
  const namespaceInstance = new Namespace();
21945
- if ((0,ramda_adjunct__WEBPACK_IMPORTED_MODULE_5__["default"])(namespacePlugin)) {
21840
+ if ((0,ramda_adjunct__WEBPACK_IMPORTED_MODULE_4__["default"])(namespacePlugin)) {
21946
21841
  namespaceInstance.use(namespacePlugin);
21947
21842
  }
21948
21843
  return namespaceInstance;
@@ -23356,6 +23251,7 @@ __webpack_require__.r(__webpack_exports__);
23356
23251
  /* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(50726);
23357
23252
  /* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(61339);
23358
23253
  /* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(88326);
23254
+ /* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(10977);
23359
23255
 
23360
23256
 
23361
23257
  const keyMap = {
@@ -23519,12 +23415,7 @@ class JsonAstVisitor {
23519
23415
  if (!this.sourceMap) {
23520
23416
  return;
23521
23417
  }
23522
- const sourceMap = new _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_9__.SourceMapElement();
23523
- // @ts-ignore
23524
- sourceMap.position = node.position;
23525
- // @ts-ignore
23526
- sourceMap.astNode = node;
23527
- element.meta.set('sourceMap', sourceMap);
23418
+ (0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_11__.assignSourceMap)(element, node);
23528
23419
  }
23529
23420
  }
23530
23421
  /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (JsonAstVisitor);
@@ -25108,54 +24999,6 @@ var anyPass = /*#__PURE__*/(0,_internal_curry1_js__WEBPACK_IMPORTED_MODULE_0__["
25108
24999
 
25109
25000
  /***/ }),
25110
25001
 
25111
- /***/ 91364:
25112
- /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
25113
-
25114
- "use strict";
25115
- __webpack_require__.r(__webpack_exports__);
25116
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
25117
- /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
25118
- /* harmony export */ });
25119
- /* harmony import */ var minim__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(88326);
25120
-
25121
-
25122
- /**
25123
- * @public
25124
- */
25125
-
25126
- /**
25127
- * @public
25128
- */
25129
-
25130
- /**
25131
- * @public
25132
- */
25133
- class SourceMap extends minim__WEBPACK_IMPORTED_MODULE_0__.ArrayElement {
25134
- constructor(content, meta, attributes) {
25135
- super(content, meta, attributes);
25136
- this.element = 'sourceMap';
25137
- }
25138
- get positionStart() {
25139
- return this.children.filter(item => item.classes.contains('position')).get(0);
25140
- }
25141
- get positionEnd() {
25142
- return this.children.filter(item => item.classes.contains('position')).get(1);
25143
- }
25144
- set position(position) {
25145
- if (typeof position === 'undefined') {
25146
- return;
25147
- }
25148
- const start = new minim__WEBPACK_IMPORTED_MODULE_0__.ArrayElement([position.start.row, position.start.column, position.start.char]);
25149
- const end = new minim__WEBPACK_IMPORTED_MODULE_0__.ArrayElement([position.end.row, position.end.column, position.end.char]);
25150
- start.classes.push('position');
25151
- end.classes.push('position');
25152
- this.push(start).push(end);
25153
- }
25154
- }
25155
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (SourceMap);
25156
-
25157
- /***/ }),
25158
-
25159
25002
  /***/ 91613:
25160
25003
  /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
25161
25004