@abaplint/cli 2.103.5 → 2.103.7
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/build/cli.js +204 -105
- package/package.json +2 -2
package/build/cli.js
CHANGED
|
@@ -1167,95 +1167,8 @@ exports.Lexer = void 0;
|
|
|
1167
1167
|
const position_1 = __webpack_require__(/*! ../../position */ "./node_modules/@abaplint/core/build/src/position.js");
|
|
1168
1168
|
const virtual_position_1 = __webpack_require__(/*! ../../virtual_position */ "./node_modules/@abaplint/core/build/src/virtual_position.js");
|
|
1169
1169
|
const tokens_1 = __webpack_require__(/*! ./tokens */ "./node_modules/@abaplint/core/build/src/abap/1_lexer/tokens/index.js");
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
this.buf = "";
|
|
1173
|
-
}
|
|
1174
|
-
add(s) {
|
|
1175
|
-
this.buf = this.buf + s;
|
|
1176
|
-
return this.buf;
|
|
1177
|
-
}
|
|
1178
|
-
get() {
|
|
1179
|
-
return this.buf;
|
|
1180
|
-
}
|
|
1181
|
-
clear() {
|
|
1182
|
-
this.buf = "";
|
|
1183
|
-
}
|
|
1184
|
-
countIsEven(char) {
|
|
1185
|
-
let count = 0;
|
|
1186
|
-
for (let i = 0; i < this.buf.length; i += 1) {
|
|
1187
|
-
if (this.buf.charAt(i) === char) {
|
|
1188
|
-
count += 1;
|
|
1189
|
-
}
|
|
1190
|
-
}
|
|
1191
|
-
return count % 2 === 0;
|
|
1192
|
-
}
|
|
1193
|
-
}
|
|
1194
|
-
class Stream {
|
|
1195
|
-
constructor(raw) {
|
|
1196
|
-
this.offset = -1;
|
|
1197
|
-
this.raw = raw;
|
|
1198
|
-
this.row = 0;
|
|
1199
|
-
this.col = 0;
|
|
1200
|
-
}
|
|
1201
|
-
advance() {
|
|
1202
|
-
if (this.currentChar() === "\n") {
|
|
1203
|
-
this.col = 1;
|
|
1204
|
-
this.row = this.row + 1;
|
|
1205
|
-
}
|
|
1206
|
-
if (this.offset === this.raw.length) {
|
|
1207
|
-
return false;
|
|
1208
|
-
}
|
|
1209
|
-
this.col = this.col + 1;
|
|
1210
|
-
this.offset = this.offset + 1;
|
|
1211
|
-
return true;
|
|
1212
|
-
}
|
|
1213
|
-
getCol() {
|
|
1214
|
-
return this.col;
|
|
1215
|
-
}
|
|
1216
|
-
getRow() {
|
|
1217
|
-
return this.row;
|
|
1218
|
-
}
|
|
1219
|
-
prevChar() {
|
|
1220
|
-
if (this.offset - 1 < 0) {
|
|
1221
|
-
return "";
|
|
1222
|
-
}
|
|
1223
|
-
return this.raw.substr(this.offset - 1, 1);
|
|
1224
|
-
}
|
|
1225
|
-
prevPrevChar() {
|
|
1226
|
-
if (this.offset - 2 < 0) {
|
|
1227
|
-
return "";
|
|
1228
|
-
}
|
|
1229
|
-
return this.raw.substr(this.offset - 2, 2);
|
|
1230
|
-
}
|
|
1231
|
-
currentChar() {
|
|
1232
|
-
if (this.offset < 0) {
|
|
1233
|
-
return "\n"; // simulate newline at start of file to handle star(*) comments
|
|
1234
|
-
}
|
|
1235
|
-
else if (this.offset >= this.raw.length) {
|
|
1236
|
-
return "";
|
|
1237
|
-
}
|
|
1238
|
-
return this.raw.substr(this.offset, 1);
|
|
1239
|
-
}
|
|
1240
|
-
nextChar() {
|
|
1241
|
-
if (this.offset + 2 > this.raw.length) {
|
|
1242
|
-
return "";
|
|
1243
|
-
}
|
|
1244
|
-
return this.raw.substr(this.offset + 1, 1);
|
|
1245
|
-
}
|
|
1246
|
-
nextNextChar() {
|
|
1247
|
-
if (this.offset + 3 > this.raw.length) {
|
|
1248
|
-
return this.nextChar();
|
|
1249
|
-
}
|
|
1250
|
-
return this.raw.substr(this.offset + 1, 2);
|
|
1251
|
-
}
|
|
1252
|
-
getRaw() {
|
|
1253
|
-
return this.raw;
|
|
1254
|
-
}
|
|
1255
|
-
getOffset() {
|
|
1256
|
-
return this.offset;
|
|
1257
|
-
}
|
|
1258
|
-
}
|
|
1170
|
+
const lexer_buffer_1 = __webpack_require__(/*! ./lexer_buffer */ "./node_modules/@abaplint/core/build/src/abap/1_lexer/lexer_buffer.js");
|
|
1171
|
+
const lexer_stream_1 = __webpack_require__(/*! ./lexer_stream */ "./node_modules/@abaplint/core/build/src/abap/1_lexer/lexer_stream.js");
|
|
1259
1172
|
class Lexer {
|
|
1260
1173
|
constructor() {
|
|
1261
1174
|
this.ModeNormal = 1;
|
|
@@ -1463,8 +1376,8 @@ class Lexer {
|
|
|
1463
1376
|
this.buffer.clear();
|
|
1464
1377
|
}
|
|
1465
1378
|
process(raw) {
|
|
1466
|
-
this.stream = new
|
|
1467
|
-
this.buffer = new
|
|
1379
|
+
this.stream = new lexer_stream_1.LexerStream(raw.replace(/\r/g, ""));
|
|
1380
|
+
this.buffer = new lexer_buffer_1.LexerBuffer();
|
|
1468
1381
|
const splits = {};
|
|
1469
1382
|
splits[" "] = true;
|
|
1470
1383
|
splits[":"] = true;
|
|
@@ -1609,6 +1522,125 @@ exports.Lexer = Lexer;
|
|
|
1609
1522
|
|
|
1610
1523
|
/***/ }),
|
|
1611
1524
|
|
|
1525
|
+
/***/ "./node_modules/@abaplint/core/build/src/abap/1_lexer/lexer_buffer.js":
|
|
1526
|
+
/*!****************************************************************************!*\
|
|
1527
|
+
!*** ./node_modules/@abaplint/core/build/src/abap/1_lexer/lexer_buffer.js ***!
|
|
1528
|
+
\****************************************************************************/
|
|
1529
|
+
/***/ ((__unused_webpack_module, exports) => {
|
|
1530
|
+
|
|
1531
|
+
"use strict";
|
|
1532
|
+
|
|
1533
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
1534
|
+
exports.LexerBuffer = void 0;
|
|
1535
|
+
class LexerBuffer {
|
|
1536
|
+
constructor() {
|
|
1537
|
+
this.buf = "";
|
|
1538
|
+
}
|
|
1539
|
+
add(s) {
|
|
1540
|
+
this.buf = this.buf + s;
|
|
1541
|
+
return this.buf;
|
|
1542
|
+
}
|
|
1543
|
+
get() {
|
|
1544
|
+
return this.buf;
|
|
1545
|
+
}
|
|
1546
|
+
clear() {
|
|
1547
|
+
this.buf = "";
|
|
1548
|
+
}
|
|
1549
|
+
countIsEven(char) {
|
|
1550
|
+
let count = 0;
|
|
1551
|
+
for (let i = 0; i < this.buf.length; i += 1) {
|
|
1552
|
+
if (this.buf.charAt(i) === char) {
|
|
1553
|
+
count += 1;
|
|
1554
|
+
}
|
|
1555
|
+
}
|
|
1556
|
+
return count % 2 === 0;
|
|
1557
|
+
}
|
|
1558
|
+
}
|
|
1559
|
+
exports.LexerBuffer = LexerBuffer;
|
|
1560
|
+
//# sourceMappingURL=lexer_buffer.js.map
|
|
1561
|
+
|
|
1562
|
+
/***/ }),
|
|
1563
|
+
|
|
1564
|
+
/***/ "./node_modules/@abaplint/core/build/src/abap/1_lexer/lexer_stream.js":
|
|
1565
|
+
/*!****************************************************************************!*\
|
|
1566
|
+
!*** ./node_modules/@abaplint/core/build/src/abap/1_lexer/lexer_stream.js ***!
|
|
1567
|
+
\****************************************************************************/
|
|
1568
|
+
/***/ ((__unused_webpack_module, exports) => {
|
|
1569
|
+
|
|
1570
|
+
"use strict";
|
|
1571
|
+
|
|
1572
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
1573
|
+
exports.LexerStream = void 0;
|
|
1574
|
+
class LexerStream {
|
|
1575
|
+
constructor(raw) {
|
|
1576
|
+
this.offset = -1;
|
|
1577
|
+
this.raw = raw;
|
|
1578
|
+
this.row = 0;
|
|
1579
|
+
this.col = 0;
|
|
1580
|
+
}
|
|
1581
|
+
advance() {
|
|
1582
|
+
if (this.currentChar() === "\n") {
|
|
1583
|
+
this.col = 1;
|
|
1584
|
+
this.row = this.row + 1;
|
|
1585
|
+
}
|
|
1586
|
+
if (this.offset === this.raw.length) {
|
|
1587
|
+
return false;
|
|
1588
|
+
}
|
|
1589
|
+
this.col = this.col + 1;
|
|
1590
|
+
this.offset = this.offset + 1;
|
|
1591
|
+
return true;
|
|
1592
|
+
}
|
|
1593
|
+
getCol() {
|
|
1594
|
+
return this.col;
|
|
1595
|
+
}
|
|
1596
|
+
getRow() {
|
|
1597
|
+
return this.row;
|
|
1598
|
+
}
|
|
1599
|
+
prevChar() {
|
|
1600
|
+
if (this.offset - 1 < 0) {
|
|
1601
|
+
return "";
|
|
1602
|
+
}
|
|
1603
|
+
return this.raw.substr(this.offset - 1, 1);
|
|
1604
|
+
}
|
|
1605
|
+
prevPrevChar() {
|
|
1606
|
+
if (this.offset - 2 < 0) {
|
|
1607
|
+
return "";
|
|
1608
|
+
}
|
|
1609
|
+
return this.raw.substr(this.offset - 2, 2);
|
|
1610
|
+
}
|
|
1611
|
+
currentChar() {
|
|
1612
|
+
if (this.offset < 0) {
|
|
1613
|
+
return "\n"; // simulate newline at start of file to handle star(*) comments
|
|
1614
|
+
}
|
|
1615
|
+
else if (this.offset >= this.raw.length) {
|
|
1616
|
+
return "";
|
|
1617
|
+
}
|
|
1618
|
+
return this.raw.substr(this.offset, 1);
|
|
1619
|
+
}
|
|
1620
|
+
nextChar() {
|
|
1621
|
+
if (this.offset + 2 > this.raw.length) {
|
|
1622
|
+
return "";
|
|
1623
|
+
}
|
|
1624
|
+
return this.raw.substr(this.offset + 1, 1);
|
|
1625
|
+
}
|
|
1626
|
+
nextNextChar() {
|
|
1627
|
+
if (this.offset + 3 > this.raw.length) {
|
|
1628
|
+
return this.nextChar();
|
|
1629
|
+
}
|
|
1630
|
+
return this.raw.substr(this.offset + 1, 2);
|
|
1631
|
+
}
|
|
1632
|
+
getRaw() {
|
|
1633
|
+
return this.raw;
|
|
1634
|
+
}
|
|
1635
|
+
getOffset() {
|
|
1636
|
+
return this.offset;
|
|
1637
|
+
}
|
|
1638
|
+
}
|
|
1639
|
+
exports.LexerStream = LexerStream;
|
|
1640
|
+
//# sourceMappingURL=lexer_stream.js.map
|
|
1641
|
+
|
|
1642
|
+
/***/ }),
|
|
1643
|
+
|
|
1612
1644
|
/***/ "./node_modules/@abaplint/core/build/src/abap/1_lexer/tokens/abstract_token.js":
|
|
1613
1645
|
/*!*************************************************************************************!*\
|
|
1614
1646
|
!*** ./node_modules/@abaplint/core/build/src/abap/1_lexer/tokens/abstract_token.js ***!
|
|
@@ -34654,6 +34686,7 @@ __exportStar(__webpack_require__(/*! ./expression_node */ "./node_modules/@abapl
|
|
|
34654
34686
|
__exportStar(__webpack_require__(/*! ./statement_node */ "./node_modules/@abaplint/core/build/src/abap/nodes/statement_node.js"), exports);
|
|
34655
34687
|
__exportStar(__webpack_require__(/*! ./structure_node */ "./node_modules/@abaplint/core/build/src/abap/nodes/structure_node.js"), exports);
|
|
34656
34688
|
__exportStar(__webpack_require__(/*! ./token_node */ "./node_modules/@abaplint/core/build/src/abap/nodes/token_node.js"), exports);
|
|
34689
|
+
__exportStar(__webpack_require__(/*! ./token_node_regex */ "./node_modules/@abaplint/core/build/src/abap/nodes/token_node_regex.js"), exports);
|
|
34657
34690
|
//# sourceMappingURL=index.js.map
|
|
34658
34691
|
|
|
34659
34692
|
/***/ }),
|
|
@@ -35274,7 +35307,7 @@ exports.StructureNode = StructureNode;
|
|
|
35274
35307
|
"use strict";
|
|
35275
35308
|
|
|
35276
35309
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
35277
|
-
exports.
|
|
35310
|
+
exports.TokenNode = void 0;
|
|
35278
35311
|
class TokenNode {
|
|
35279
35312
|
constructor(token) {
|
|
35280
35313
|
this.token = token;
|
|
@@ -35305,10 +35338,25 @@ class TokenNode {
|
|
|
35305
35338
|
}
|
|
35306
35339
|
}
|
|
35307
35340
|
exports.TokenNode = TokenNode;
|
|
35308
|
-
|
|
35341
|
+
//# sourceMappingURL=token_node.js.map
|
|
35342
|
+
|
|
35343
|
+
/***/ }),
|
|
35344
|
+
|
|
35345
|
+
/***/ "./node_modules/@abaplint/core/build/src/abap/nodes/token_node_regex.js":
|
|
35346
|
+
/*!******************************************************************************!*\
|
|
35347
|
+
!*** ./node_modules/@abaplint/core/build/src/abap/nodes/token_node_regex.js ***!
|
|
35348
|
+
\******************************************************************************/
|
|
35349
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
35350
|
+
|
|
35351
|
+
"use strict";
|
|
35352
|
+
|
|
35353
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
35354
|
+
exports.TokenNodeRegex = void 0;
|
|
35355
|
+
const token_node_1 = __webpack_require__(/*! ./token_node */ "./node_modules/@abaplint/core/build/src/abap/nodes/token_node.js");
|
|
35356
|
+
class TokenNodeRegex extends token_node_1.TokenNode {
|
|
35309
35357
|
}
|
|
35310
35358
|
exports.TokenNodeRegex = TokenNodeRegex;
|
|
35311
|
-
//# sourceMappingURL=
|
|
35359
|
+
//# sourceMappingURL=token_node_regex.js.map
|
|
35312
35360
|
|
|
35313
35361
|
/***/ }),
|
|
35314
35362
|
|
|
@@ -42171,6 +42219,7 @@ class Help {
|
|
|
42171
42219
|
switch (node.constructor.name) {
|
|
42172
42220
|
case "TokenNode":
|
|
42173
42221
|
case "TokenNodeRegex":
|
|
42222
|
+
// @ts-ignore
|
|
42174
42223
|
extra = node.get().constructor.name + ", \"" + node.get().getStr() + "\"";
|
|
42175
42224
|
break;
|
|
42176
42225
|
case "ExpressionNode":
|
|
@@ -44268,6 +44317,37 @@ exports.BusinessObjectModel = BusinessObjectModel;
|
|
|
44268
44317
|
|
|
44269
44318
|
/***/ }),
|
|
44270
44319
|
|
|
44320
|
+
/***/ "./node_modules/@abaplint/core/build/src/objects/business_object_type.js":
|
|
44321
|
+
/*!*******************************************************************************!*\
|
|
44322
|
+
!*** ./node_modules/@abaplint/core/build/src/objects/business_object_type.js ***!
|
|
44323
|
+
\*******************************************************************************/
|
|
44324
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
44325
|
+
|
|
44326
|
+
"use strict";
|
|
44327
|
+
|
|
44328
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
44329
|
+
exports.BusinessObjectType = void 0;
|
|
44330
|
+
const _abstract_object_1 = __webpack_require__(/*! ./_abstract_object */ "./node_modules/@abaplint/core/build/src/objects/_abstract_object.js");
|
|
44331
|
+
class BusinessObjectType extends _abstract_object_1.AbstractObject {
|
|
44332
|
+
getType() {
|
|
44333
|
+
return "SOBJ";
|
|
44334
|
+
}
|
|
44335
|
+
getAllowedNaming() {
|
|
44336
|
+
return {
|
|
44337
|
+
maxLength: 200,
|
|
44338
|
+
allowNamespace: true,
|
|
44339
|
+
};
|
|
44340
|
+
}
|
|
44341
|
+
getDescription() {
|
|
44342
|
+
// todo
|
|
44343
|
+
return undefined;
|
|
44344
|
+
}
|
|
44345
|
+
}
|
|
44346
|
+
exports.BusinessObjectType = BusinessObjectType;
|
|
44347
|
+
//# sourceMappingURL=business_object_type.js.map
|
|
44348
|
+
|
|
44349
|
+
/***/ }),
|
|
44350
|
+
|
|
44271
44351
|
/***/ "./node_modules/@abaplint/core/build/src/objects/cds_metadata_extension.js":
|
|
44272
44352
|
/*!*********************************************************************************!*\
|
|
44273
44353
|
!*** ./node_modules/@abaplint/core/build/src/objects/cds_metadata_extension.js ***!
|
|
@@ -46522,9 +46602,9 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
46522
46602
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
46523
46603
|
__exportStar(__webpack_require__(/*! ./activation_variant */ "./node_modules/@abaplint/core/build/src/objects/activation_variant.js"), exports);
|
|
46524
46604
|
__exportStar(__webpack_require__(/*! ./api_release_state */ "./node_modules/@abaplint/core/build/src/objects/api_release_state.js"), exports);
|
|
46525
|
-
__exportStar(__webpack_require__(/*! ./application_log_object */ "./node_modules/@abaplint/core/build/src/objects/application_log_object.js"), exports);
|
|
46526
46605
|
__exportStar(__webpack_require__(/*! ./application_job_catalog_entry */ "./node_modules/@abaplint/core/build/src/objects/application_job_catalog_entry.js"), exports);
|
|
46527
46606
|
__exportStar(__webpack_require__(/*! ./application_job_template */ "./node_modules/@abaplint/core/build/src/objects/application_job_template.js"), exports);
|
|
46607
|
+
__exportStar(__webpack_require__(/*! ./application_log_object */ "./node_modules/@abaplint/core/build/src/objects/application_log_object.js"), exports);
|
|
46528
46608
|
__exportStar(__webpack_require__(/*! ./assignment_service_to_authorization_group */ "./node_modules/@abaplint/core/build/src/objects/assignment_service_to_authorization_group.js"), exports);
|
|
46529
46609
|
__exportStar(__webpack_require__(/*! ./atc_check_category */ "./node_modules/@abaplint/core/build/src/objects/atc_check_category.js"), exports);
|
|
46530
46610
|
__exportStar(__webpack_require__(/*! ./atc_check_object */ "./node_modules/@abaplint/core/build/src/objects/atc_check_object.js"), exports);
|
|
@@ -46543,6 +46623,7 @@ __exportStar(__webpack_require__(/*! ./business_configuration_set */ "./node_mod
|
|
|
46543
46623
|
__exportStar(__webpack_require__(/*! ./business_function_assignment */ "./node_modules/@abaplint/core/build/src/objects/business_function_assignment.js"), exports);
|
|
46544
46624
|
__exportStar(__webpack_require__(/*! ./business_function_set_assignment */ "./node_modules/@abaplint/core/build/src/objects/business_function_set_assignment.js"), exports);
|
|
46545
46625
|
__exportStar(__webpack_require__(/*! ./business_object_model */ "./node_modules/@abaplint/core/build/src/objects/business_object_model.js"), exports);
|
|
46626
|
+
__exportStar(__webpack_require__(/*! ./business_object_type */ "./node_modules/@abaplint/core/build/src/objects/business_object_type.js"), exports);
|
|
46546
46627
|
__exportStar(__webpack_require__(/*! ./cds_metadata_extension */ "./node_modules/@abaplint/core/build/src/objects/cds_metadata_extension.js"), exports);
|
|
46547
46628
|
__exportStar(__webpack_require__(/*! ./change_document */ "./node_modules/@abaplint/core/build/src/objects/change_document.js"), exports);
|
|
46548
46629
|
__exportStar(__webpack_require__(/*! ./chapter_of_book_structure */ "./node_modules/@abaplint/core/build/src/objects/chapter_of_book_structure.js"), exports);
|
|
@@ -46569,8 +46650,8 @@ __exportStar(__webpack_require__(/*! ./ecatt_test_script */ "./node_modules/@aba
|
|
|
46569
46650
|
__exportStar(__webpack_require__(/*! ./enhancement_implementation */ "./node_modules/@abaplint/core/build/src/objects/enhancement_implementation.js"), exports);
|
|
46570
46651
|
__exportStar(__webpack_require__(/*! ./enhancement_spot */ "./node_modules/@abaplint/core/build/src/objects/enhancement_spot.js"), exports);
|
|
46571
46652
|
__exportStar(__webpack_require__(/*! ./event_binding */ "./node_modules/@abaplint/core/build/src/objects/event_binding.js"), exports);
|
|
46572
|
-
__exportStar(__webpack_require__(/*! ./event_consumer */ "./node_modules/@abaplint/core/build/src/objects/event_consumer.js"), exports);
|
|
46573
46653
|
__exportStar(__webpack_require__(/*! ./event_binding */ "./node_modules/@abaplint/core/build/src/objects/event_binding.js"), exports);
|
|
46654
|
+
__exportStar(__webpack_require__(/*! ./event_consumer */ "./node_modules/@abaplint/core/build/src/objects/event_consumer.js"), exports);
|
|
46574
46655
|
__exportStar(__webpack_require__(/*! ./extension_index */ "./node_modules/@abaplint/core/build/src/objects/extension_index.js"), exports);
|
|
46575
46656
|
__exportStar(__webpack_require__(/*! ./field_catalog */ "./node_modules/@abaplint/core/build/src/objects/field_catalog.js"), exports);
|
|
46576
46657
|
__exportStar(__webpack_require__(/*! ./form_object_form */ "./node_modules/@abaplint/core/build/src/objects/form_object_form.js"), exports);
|
|
@@ -50886,7 +50967,7 @@ class Registry {
|
|
|
50886
50967
|
}
|
|
50887
50968
|
static abaplintVersion() {
|
|
50888
50969
|
// magic, see build script "version.sh"
|
|
50889
|
-
return "2.103.
|
|
50970
|
+
return "2.103.7";
|
|
50890
50971
|
}
|
|
50891
50972
|
getDDICReferences() {
|
|
50892
50973
|
return this.ddicReferences;
|
|
@@ -54101,9 +54182,8 @@ class CloudTypes {
|
|
|
54101
54182
|
this.reg = reg;
|
|
54102
54183
|
return this;
|
|
54103
54184
|
}
|
|
54104
|
-
|
|
54105
|
-
|
|
54106
|
-
|| obj instanceof Objects.ApplicationJobCatalogEntry
|
|
54185
|
+
static isCloud(obj) {
|
|
54186
|
+
return obj instanceof Objects.ApplicationJobCatalogEntry
|
|
54107
54187
|
|| obj instanceof Objects.ApplicationJobTemplate
|
|
54108
54188
|
|| obj instanceof Objects.AssignmentServiceToAuthorizationGroup
|
|
54109
54189
|
|| obj instanceof Objects.ATCCheckCategory
|
|
@@ -54141,7 +54221,10 @@ class CloudTypes {
|
|
|
54141
54221
|
|| obj instanceof Objects.ServiceDefinition
|
|
54142
54222
|
|| obj instanceof Objects.Table
|
|
54143
54223
|
|| obj instanceof Objects.TableType
|
|
54144
|
-
|| obj instanceof Objects.Transformation
|
|
54224
|
+
|| obj instanceof Objects.Transformation;
|
|
54225
|
+
}
|
|
54226
|
+
run(obj) {
|
|
54227
|
+
if (this.reg.getConfig().getVersion() !== version_1.Version.Cloud || CloudTypes.isCloud(obj)) {
|
|
54145
54228
|
return [];
|
|
54146
54229
|
}
|
|
54147
54230
|
const position = new position_1.Position(1, 1);
|
|
@@ -58374,24 +58457,40 @@ ${indentation} output = ${uniqueName}.\n`;
|
|
|
58374
58457
|
if (cdef && cdef.getMethodDefinitions === undefined) {
|
|
58375
58458
|
return undefined; // something wrong
|
|
58376
58459
|
}
|
|
58377
|
-
const importing = (_c = cdef
|
|
58460
|
+
const importing = (_c = this.findConstructor(cdef, spag)) === null || _c === void 0 ? void 0 : _c.getParameters().getDefaultImporting();
|
|
58378
58461
|
if (importing) {
|
|
58379
58462
|
extra += " EXPORTING " + importing + " = " + source;
|
|
58380
58463
|
}
|
|
58381
58464
|
else if (spag === undefined) {
|
|
58382
|
-
extra += " SpagUndefined";
|
|
58465
|
+
extra += " SpagUndefined ERROR";
|
|
58383
58466
|
}
|
|
58384
58467
|
else if (cdef === undefined) {
|
|
58385
|
-
extra += " ClassDefinitionNotFound";
|
|
58468
|
+
extra += " ClassDefinitionNotFound ERROR";
|
|
58386
58469
|
}
|
|
58387
58470
|
else {
|
|
58388
|
-
extra += " SomeError";
|
|
58471
|
+
extra += " SomeError ERROR";
|
|
58389
58472
|
}
|
|
58390
58473
|
}
|
|
58391
58474
|
}
|
|
58392
58475
|
const abap = `CREATE OBJECT ${name}${extra}.`;
|
|
58393
58476
|
return abap;
|
|
58394
58477
|
}
|
|
58478
|
+
findConstructor(cdef, spag) {
|
|
58479
|
+
let def = cdef;
|
|
58480
|
+
while (def !== undefined) {
|
|
58481
|
+
const method = def === null || def === void 0 ? void 0 : def.getMethodDefinitions().getByName("CONSTRUCTOR");
|
|
58482
|
+
if (method) {
|
|
58483
|
+
return method;
|
|
58484
|
+
}
|
|
58485
|
+
const name = def.getSuperClass();
|
|
58486
|
+
if (name) {
|
|
58487
|
+
def = spag === null || spag === void 0 ? void 0 : spag.findClassDefinition(name);
|
|
58488
|
+
}
|
|
58489
|
+
else {
|
|
58490
|
+
return undefined;
|
|
58491
|
+
}
|
|
58492
|
+
}
|
|
58493
|
+
}
|
|
58395
58494
|
}
|
|
58396
58495
|
exports.Downport = Downport;
|
|
58397
58496
|
//# sourceMappingURL=downport.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abaplint/cli",
|
|
3
|
-
"version": "2.103.
|
|
3
|
+
"version": "2.103.7",
|
|
4
4
|
"description": "abaplint - Command Line Interface",
|
|
5
5
|
"funding": "https://github.com/sponsors/larshp",
|
|
6
6
|
"bin": {
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
},
|
|
39
39
|
"homepage": "https://abaplint.org",
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"@abaplint/core": "^2.103.
|
|
41
|
+
"@abaplint/core": "^2.103.7",
|
|
42
42
|
"@types/chai": "^4.3.10",
|
|
43
43
|
"@types/glob": "^7.2.0",
|
|
44
44
|
"@types/minimist": "^1.2.5",
|