@abaplint/cli 2.103.6 → 2.103.8
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 +196 -99
- 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":
|
|
@@ -46637,6 +46686,7 @@ __exportStar(__webpack_require__(/*! ./messaging_channel */ "./node_modules/@aba
|
|
|
46637
46686
|
__exportStar(__webpack_require__(/*! ./mime_object */ "./node_modules/@abaplint/core/build/src/objects/mime_object.js"), exports);
|
|
46638
46687
|
__exportStar(__webpack_require__(/*! ./namespace */ "./node_modules/@abaplint/core/build/src/objects/namespace.js"), exports);
|
|
46639
46688
|
__exportStar(__webpack_require__(/*! ./number_range */ "./node_modules/@abaplint/core/build/src/objects/number_range.js"), exports);
|
|
46689
|
+
__exportStar(__webpack_require__(/*! ./oauth2_profile */ "./node_modules/@abaplint/core/build/src/objects/oauth2_profile.js"), exports);
|
|
46640
46690
|
__exportStar(__webpack_require__(/*! ./object_characteristic */ "./node_modules/@abaplint/core/build/src/objects/object_characteristic.js"), exports);
|
|
46641
46691
|
__exportStar(__webpack_require__(/*! ./outbound_service */ "./node_modules/@abaplint/core/build/src/objects/outbound_service.js"), exports);
|
|
46642
46692
|
__exportStar(__webpack_require__(/*! ./package_interface */ "./node_modules/@abaplint/core/build/src/objects/package_interface.js"), exports);
|
|
@@ -47283,6 +47333,37 @@ exports.NumberRange = NumberRange;
|
|
|
47283
47333
|
|
|
47284
47334
|
/***/ }),
|
|
47285
47335
|
|
|
47336
|
+
/***/ "./node_modules/@abaplint/core/build/src/objects/oauth2_profile.js":
|
|
47337
|
+
/*!*************************************************************************!*\
|
|
47338
|
+
!*** ./node_modules/@abaplint/core/build/src/objects/oauth2_profile.js ***!
|
|
47339
|
+
\*************************************************************************/
|
|
47340
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
47341
|
+
|
|
47342
|
+
"use strict";
|
|
47343
|
+
|
|
47344
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
47345
|
+
exports.Oauth2Profile = void 0;
|
|
47346
|
+
const _abstract_object_1 = __webpack_require__(/*! ./_abstract_object */ "./node_modules/@abaplint/core/build/src/objects/_abstract_object.js");
|
|
47347
|
+
class Oauth2Profile extends _abstract_object_1.AbstractObject {
|
|
47348
|
+
getType() {
|
|
47349
|
+
return "OA2P";
|
|
47350
|
+
}
|
|
47351
|
+
getAllowedNaming() {
|
|
47352
|
+
return {
|
|
47353
|
+
maxLength: 30,
|
|
47354
|
+
allowNamespace: true,
|
|
47355
|
+
};
|
|
47356
|
+
}
|
|
47357
|
+
getDescription() {
|
|
47358
|
+
// todo
|
|
47359
|
+
return undefined;
|
|
47360
|
+
}
|
|
47361
|
+
}
|
|
47362
|
+
exports.Oauth2Profile = Oauth2Profile;
|
|
47363
|
+
//# sourceMappingURL=oauth2_profile.js.map
|
|
47364
|
+
|
|
47365
|
+
/***/ }),
|
|
47366
|
+
|
|
47286
47367
|
/***/ "./node_modules/@abaplint/core/build/src/objects/object_characteristic.js":
|
|
47287
47368
|
/*!********************************************************************************!*\
|
|
47288
47369
|
!*** ./node_modules/@abaplint/core/build/src/objects/object_characteristic.js ***!
|
|
@@ -50918,7 +50999,7 @@ class Registry {
|
|
|
50918
50999
|
}
|
|
50919
51000
|
static abaplintVersion() {
|
|
50920
51001
|
// magic, see build script "version.sh"
|
|
50921
|
-
return "2.103.
|
|
51002
|
+
return "2.103.8";
|
|
50922
51003
|
}
|
|
50923
51004
|
getDDICReferences() {
|
|
50924
51005
|
return this.ddicReferences;
|
|
@@ -58408,24 +58489,40 @@ ${indentation} output = ${uniqueName}.\n`;
|
|
|
58408
58489
|
if (cdef && cdef.getMethodDefinitions === undefined) {
|
|
58409
58490
|
return undefined; // something wrong
|
|
58410
58491
|
}
|
|
58411
|
-
const importing = (_c = cdef
|
|
58492
|
+
const importing = (_c = this.findConstructor(cdef, spag)) === null || _c === void 0 ? void 0 : _c.getParameters().getDefaultImporting();
|
|
58412
58493
|
if (importing) {
|
|
58413
58494
|
extra += " EXPORTING " + importing + " = " + source;
|
|
58414
58495
|
}
|
|
58415
58496
|
else if (spag === undefined) {
|
|
58416
|
-
extra += " SpagUndefined";
|
|
58497
|
+
extra += " SpagUndefined ERROR";
|
|
58417
58498
|
}
|
|
58418
58499
|
else if (cdef === undefined) {
|
|
58419
|
-
extra += " ClassDefinitionNotFound";
|
|
58500
|
+
extra += " ClassDefinitionNotFound ERROR";
|
|
58420
58501
|
}
|
|
58421
58502
|
else {
|
|
58422
|
-
extra += " SomeError";
|
|
58503
|
+
extra += " SomeError ERROR";
|
|
58423
58504
|
}
|
|
58424
58505
|
}
|
|
58425
58506
|
}
|
|
58426
58507
|
const abap = `CREATE OBJECT ${name}${extra}.`;
|
|
58427
58508
|
return abap;
|
|
58428
58509
|
}
|
|
58510
|
+
findConstructor(cdef, spag) {
|
|
58511
|
+
let def = cdef;
|
|
58512
|
+
while (def !== undefined) {
|
|
58513
|
+
const method = def === null || def === void 0 ? void 0 : def.getMethodDefinitions().getByName("CONSTRUCTOR");
|
|
58514
|
+
if (method) {
|
|
58515
|
+
return method;
|
|
58516
|
+
}
|
|
58517
|
+
const name = def.getSuperClass();
|
|
58518
|
+
if (name) {
|
|
58519
|
+
def = spag === null || spag === void 0 ? void 0 : spag.findClassDefinition(name);
|
|
58520
|
+
}
|
|
58521
|
+
else {
|
|
58522
|
+
return undefined;
|
|
58523
|
+
}
|
|
58524
|
+
}
|
|
58525
|
+
}
|
|
58429
58526
|
}
|
|
58430
58527
|
exports.Downport = Downport;
|
|
58431
58528
|
//# 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.8",
|
|
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.8",
|
|
42
42
|
"@types/chai": "^4.3.10",
|
|
43
43
|
"@types/glob": "^7.2.0",
|
|
44
44
|
"@types/minimist": "^1.2.5",
|