@abaplint/transpiler-cli 2.6.43 → 2.6.44
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/bundle.js +58 -21
- package/package.json +6 -6
package/build/bundle.js
CHANGED
|
@@ -29772,7 +29772,7 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
29772
29772
|
exports.Tables = void 0;
|
|
29773
29773
|
const Expressions = __webpack_require__(/*! ../../2_statements/expressions */ "./node_modules/@abaplint/core/build/src/abap/2_statements/expressions/index.js");
|
|
29774
29774
|
const _typed_identifier_1 = __webpack_require__(/*! ../../types/_typed_identifier */ "./node_modules/@abaplint/core/build/src/abap/types/_typed_identifier.js");
|
|
29775
|
-
const
|
|
29775
|
+
const unknown_type_1 = __webpack_require__(/*! ../../types/basic/unknown_type */ "./node_modules/@abaplint/core/build/src/abap/types/basic/unknown_type.js");
|
|
29776
29776
|
class Tables {
|
|
29777
29777
|
runSyntax(node, scope, filename) {
|
|
29778
29778
|
var _a, _b;
|
|
@@ -29784,13 +29784,15 @@ class Tables {
|
|
|
29784
29784
|
if (name.startsWith("*")) {
|
|
29785
29785
|
name = name.substr(1);
|
|
29786
29786
|
}
|
|
29787
|
+
// lookupTableOrView will also give Unknown and Void
|
|
29787
29788
|
const found = (_b = scope.getDDIC()) === null || _b === void 0 ? void 0 : _b.lookupTableOrView(name);
|
|
29788
29789
|
if (found) {
|
|
29789
29790
|
scope.getDDICReferences().addUsing(scope.getParentObj(), { object: found.object, filename: filename, token: nameToken });
|
|
29790
29791
|
scope.addIdentifier(new _typed_identifier_1.TypedIdentifier(nameToken, filename, found.type));
|
|
29791
29792
|
return;
|
|
29792
29793
|
}
|
|
29793
|
-
|
|
29794
|
+
// this should never happen,
|
|
29795
|
+
scope.addIdentifier(new _typed_identifier_1.TypedIdentifier(nameToken, filename, new unknown_type_1.UnknownType("Tables, fallback")));
|
|
29794
29796
|
}
|
|
29795
29797
|
}
|
|
29796
29798
|
exports.Tables = Tables;
|
|
@@ -38435,21 +38437,27 @@ class LSPLookup {
|
|
|
38435
38437
|
const hover = "Method Definition \"" + method.getName() + "\"";
|
|
38436
38438
|
return { hover, definition: found, definitionId: method, scope: bottomScope };
|
|
38437
38439
|
}
|
|
38440
|
+
let hoverValue = "";
|
|
38441
|
+
const ddicRefs = reg.getDDICReferences().listByFilename(cursor.identifier.getFilename(), cursor.identifier.getStart().getRow());
|
|
38442
|
+
for (const d of ddicRefs) {
|
|
38443
|
+
if (d.object && d.token && d.token.getStart().equals(cursor.identifier.getStart())) {
|
|
38444
|
+
hoverValue += `DDIC: ${d.object.getType()} ${d.object.getName()}`;
|
|
38445
|
+
}
|
|
38446
|
+
}
|
|
38438
38447
|
const variable = bottomScope.findVariable(cursor.token.getStr());
|
|
38439
38448
|
if (variable !== undefined && variable.getStart().equals(cursor.token.getStart())) {
|
|
38440
38449
|
const hover = "Variable Definition\n\n" + this.dumpType(variable);
|
|
38450
|
+
if (hoverValue !== "") {
|
|
38451
|
+
hoverValue = hover + "\n_________________\n" + hoverValue;
|
|
38452
|
+
}
|
|
38453
|
+
else {
|
|
38454
|
+
hoverValue = hover;
|
|
38455
|
+
}
|
|
38441
38456
|
let location = undefined;
|
|
38442
38457
|
if (variable.getMeta().includes("built-in" /* IdentifierMeta.BuiltIn */) === false) {
|
|
38443
38458
|
location = _lsp_utils_1.LSPUtils.identiferToLocation(variable);
|
|
38444
38459
|
}
|
|
38445
|
-
return { hover, definition: location, implementation: location, definitionId: variable, scope: bottomScope };
|
|
38446
|
-
}
|
|
38447
|
-
let hoverValue = "";
|
|
38448
|
-
const ddicRefs = reg.getDDICReferences().listByFilename(cursor.identifier.getFilename(), cursor.identifier.getStart().getRow());
|
|
38449
|
-
for (const d of ddicRefs) {
|
|
38450
|
-
if (d.object && d.token && d.token.getStart().equals(cursor.identifier.getStart())) {
|
|
38451
|
-
hoverValue += `DDIC: ${d.object.getType()} ${d.object.getName()}`;
|
|
38452
|
-
}
|
|
38460
|
+
return { hover: hoverValue, definition: location, implementation: location, definitionId: variable, scope: bottomScope };
|
|
38453
38461
|
}
|
|
38454
38462
|
const refs = this.searchReferences(bottomScope, cursor.token);
|
|
38455
38463
|
if (refs.length > 0) {
|
|
@@ -44037,10 +44045,6 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
44037
44045
|
exports.Program = void 0;
|
|
44038
44046
|
const _abap_object_1 = __webpack_require__(/*! ./_abap_object */ "./node_modules/@abaplint/core/build/src/objects/_abap_object.js");
|
|
44039
44047
|
class Program extends _abap_object_1.ABAPObject {
|
|
44040
|
-
constructor() {
|
|
44041
|
-
super(...arguments);
|
|
44042
|
-
this.isIncludeValue = undefined;
|
|
44043
|
-
}
|
|
44044
44048
|
getType() {
|
|
44045
44049
|
return "PROG";
|
|
44046
44050
|
}
|
|
@@ -44062,15 +44066,25 @@ class Program extends _abap_object_1.ABAPObject {
|
|
|
44062
44066
|
};
|
|
44063
44067
|
}
|
|
44064
44068
|
setDirty() {
|
|
44065
|
-
this.
|
|
44069
|
+
this.parsedXML = undefined;
|
|
44066
44070
|
super.setDirty();
|
|
44067
44071
|
}
|
|
44068
44072
|
isInclude() {
|
|
44069
|
-
|
|
44073
|
+
this.parseXML();
|
|
44074
|
+
return this.parsedXML.isInclude;
|
|
44075
|
+
}
|
|
44076
|
+
isModulePool() {
|
|
44077
|
+
this.parseXML();
|
|
44078
|
+
return this.parsedXML.isModulePool;
|
|
44079
|
+
}
|
|
44080
|
+
parseXML() {
|
|
44081
|
+
if (this.parsedXML === undefined) {
|
|
44070
44082
|
const file = this.getXMLFile();
|
|
44071
|
-
this.
|
|
44083
|
+
this.parsedXML = {
|
|
44084
|
+
isInclude: file ? file.getRaw().includes("<SUBC>I</SUBC>") : false,
|
|
44085
|
+
isModulePool: file ? file.getRaw().includes("<SUBC>M</SUBC>") : false,
|
|
44086
|
+
};
|
|
44072
44087
|
}
|
|
44073
|
-
return this.isIncludeValue;
|
|
44074
44088
|
}
|
|
44075
44089
|
}
|
|
44076
44090
|
exports.Program = Program;
|
|
@@ -46645,7 +46659,7 @@ class Registry {
|
|
|
46645
46659
|
}
|
|
46646
46660
|
static abaplintVersion() {
|
|
46647
46661
|
// magic, see build script "version.sh"
|
|
46648
|
-
return "2.99.
|
|
46662
|
+
return "2.99.9";
|
|
46649
46663
|
}
|
|
46650
46664
|
getDDICReferences() {
|
|
46651
46665
|
return this.references;
|
|
@@ -57958,7 +57972,9 @@ class MainFileContents {
|
|
|
57958
57972
|
if (stru === undefined) {
|
|
57959
57973
|
return [];
|
|
57960
57974
|
}
|
|
57961
|
-
if (obj instanceof Objects.Program
|
|
57975
|
+
if (obj instanceof Objects.Program
|
|
57976
|
+
&& obj.isInclude() === false
|
|
57977
|
+
&& obj.isModulePool() === false) {
|
|
57962
57978
|
let count = 0;
|
|
57963
57979
|
let first = main.getStatements()[count];
|
|
57964
57980
|
while (first !== undefined && first.get() instanceof _statement_1.Comment) {
|
|
@@ -64013,7 +64029,6 @@ Activates from v750 and up`,
|
|
|
64013
64029
|
const message = "INTO/APPENDING must be last in strict SQL";
|
|
64014
64030
|
const issue = issue_1.Issue.atToken(file, s.getFirstToken(), message, this.getMetadata().key, this.conf.severity, fix);
|
|
64015
64031
|
issues.push(issue);
|
|
64016
|
-
break;
|
|
64017
64032
|
}
|
|
64018
64033
|
}
|
|
64019
64034
|
return issues;
|
|
@@ -71888,6 +71903,27 @@ exports.AtTranspiler = AtTranspiler;
|
|
|
71888
71903
|
|
|
71889
71904
|
/***/ }),
|
|
71890
71905
|
|
|
71906
|
+
/***/ "./node_modules/@abaplint/transpiler/build/src/statements/at_selection_screen.js":
|
|
71907
|
+
/*!***************************************************************************************!*\
|
|
71908
|
+
!*** ./node_modules/@abaplint/transpiler/build/src/statements/at_selection_screen.js ***!
|
|
71909
|
+
\***************************************************************************************/
|
|
71910
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
71911
|
+
|
|
71912
|
+
"use strict";
|
|
71913
|
+
|
|
71914
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
71915
|
+
exports.AtSelectionScreenTranspiler = void 0;
|
|
71916
|
+
const chunk_1 = __webpack_require__(/*! ../chunk */ "./node_modules/@abaplint/transpiler/build/src/chunk.js");
|
|
71917
|
+
class AtSelectionScreenTranspiler {
|
|
71918
|
+
transpile(_node, _traversal) {
|
|
71919
|
+
return new chunk_1.Chunk(`throw new Error("AtSelectionScreen, not supported, transpiler");`);
|
|
71920
|
+
}
|
|
71921
|
+
}
|
|
71922
|
+
exports.AtSelectionScreenTranspiler = AtSelectionScreenTranspiler;
|
|
71923
|
+
//# sourceMappingURL=at_selection_screen.js.map
|
|
71924
|
+
|
|
71925
|
+
/***/ }),
|
|
71926
|
+
|
|
71891
71927
|
/***/ "./node_modules/@abaplint/transpiler/build/src/statements/authority_check.js":
|
|
71892
71928
|
/*!***********************************************************************************!*\
|
|
71893
71929
|
!*** ./node_modules/@abaplint/transpiler/build/src/statements/authority_check.js ***!
|
|
@@ -74136,6 +74172,7 @@ __exportStar(__webpack_require__(/*! ./add */ "./node_modules/@abaplint/transpil
|
|
|
74136
74172
|
__exportStar(__webpack_require__(/*! ./append */ "./node_modules/@abaplint/transpiler/build/src/statements/append.js"), exports);
|
|
74137
74173
|
__exportStar(__webpack_require__(/*! ./assert */ "./node_modules/@abaplint/transpiler/build/src/statements/assert.js"), exports);
|
|
74138
74174
|
__exportStar(__webpack_require__(/*! ./assign */ "./node_modules/@abaplint/transpiler/build/src/statements/assign.js"), exports);
|
|
74175
|
+
__exportStar(__webpack_require__(/*! ./at_selection_screen */ "./node_modules/@abaplint/transpiler/build/src/statements/at_selection_screen.js"), exports);
|
|
74139
74176
|
__exportStar(__webpack_require__(/*! ./at */ "./node_modules/@abaplint/transpiler/build/src/statements/at.js"), exports);
|
|
74140
74177
|
__exportStar(__webpack_require__(/*! ./authority_check */ "./node_modules/@abaplint/transpiler/build/src/statements/authority_check.js"), exports);
|
|
74141
74178
|
__exportStar(__webpack_require__(/*! ./break_id */ "./node_modules/@abaplint/transpiler/build/src/statements/break_id.js"), exports);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abaplint/transpiler-cli",
|
|
3
|
-
"version": "2.6.
|
|
3
|
+
"version": "2.6.44",
|
|
4
4
|
"description": "Transpiler - Command Line Interface",
|
|
5
5
|
"bin": {
|
|
6
6
|
"abap_transpile": "./abap_transpile"
|
|
@@ -25,15 +25,15 @@
|
|
|
25
25
|
"author": "abaplint",
|
|
26
26
|
"license": "MIT",
|
|
27
27
|
"devDependencies": {
|
|
28
|
-
"@abaplint/transpiler": "^2.6.
|
|
28
|
+
"@abaplint/transpiler": "^2.6.44",
|
|
29
29
|
"@types/glob": "^7.2.0",
|
|
30
30
|
"glob": "=7.2.0",
|
|
31
31
|
"@types/progress": "^2.0.5",
|
|
32
|
-
"@types/node": "^20.1.
|
|
33
|
-
"@abaplint/core": "^2.99.
|
|
32
|
+
"@types/node": "^20.1.2",
|
|
33
|
+
"@abaplint/core": "^2.99.9",
|
|
34
34
|
"progress": "^2.0.3",
|
|
35
|
-
"webpack": "^5.82.
|
|
36
|
-
"webpack-cli": "^5.1.
|
|
35
|
+
"webpack": "^5.82.1",
|
|
36
|
+
"webpack-cli": "^5.1.1",
|
|
37
37
|
"typescript": "^5.0.4"
|
|
38
38
|
}
|
|
39
39
|
}
|