@abaplint/transpiler-cli 2.10.17 → 2.10.19
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 +22 -13
- package/package.json +4 -4
package/build/bundle.js
CHANGED
|
@@ -20749,6 +20749,7 @@ exports.ObjectOriented = void 0;
|
|
|
20749
20749
|
const Statements = __webpack_require__(/*! ../2_statements/statements */ "./node_modules/@abaplint/core/build/src/abap/2_statements/statements/index.js");
|
|
20750
20750
|
const Expressions = __webpack_require__(/*! ../2_statements/expressions */ "./node_modules/@abaplint/core/build/src/abap/2_statements/expressions/index.js");
|
|
20751
20751
|
const visibility_1 = __webpack_require__(/*! ../4_file_information/visibility */ "./node_modules/@abaplint/core/build/src/abap/4_file_information/visibility.js");
|
|
20752
|
+
const types_1 = __webpack_require__(/*! ../types */ "./node_modules/@abaplint/core/build/src/abap/types/index.js");
|
|
20752
20753
|
// todo, think some of the public methods can be made private
|
|
20753
20754
|
// todo: changet this class to static? for performance
|
|
20754
20755
|
class ObjectOriented {
|
|
@@ -20822,6 +20823,18 @@ class ObjectOriented {
|
|
|
20822
20823
|
}
|
|
20823
20824
|
return undefined;
|
|
20824
20825
|
}
|
|
20826
|
+
methodReferenceExtras(foundDef, ooName) {
|
|
20827
|
+
if (foundDef === undefined) {
|
|
20828
|
+
return {
|
|
20829
|
+
ooName: ooName,
|
|
20830
|
+
ooType: undefined,
|
|
20831
|
+
};
|
|
20832
|
+
}
|
|
20833
|
+
return {
|
|
20834
|
+
ooName: foundDef === null || foundDef === void 0 ? void 0 : foundDef.getName(),
|
|
20835
|
+
ooType: foundDef instanceof types_1.ClassDefinition ? "CLAS" : "INTF",
|
|
20836
|
+
};
|
|
20837
|
+
}
|
|
20825
20838
|
findClassName(node) {
|
|
20826
20839
|
if (!(node.get() instanceof Statements.ClassImplementation
|
|
20827
20840
|
|| node.get() instanceof Statements.ClassDefinition)) {
|
|
@@ -24659,7 +24672,6 @@ const method_call_param_1 = __webpack_require__(/*! ./method_call_param */ "./no
|
|
|
24659
24672
|
const _reference_1 = __webpack_require__(/*! ../_reference */ "./node_modules/@abaplint/core/build/src/abap/5_syntax/_reference.js");
|
|
24660
24673
|
const component_name_1 = __webpack_require__(/*! ./component_name */ "./node_modules/@abaplint/core/build/src/abap/5_syntax/expressions/component_name.js");
|
|
24661
24674
|
const attribute_name_1 = __webpack_require__(/*! ./attribute_name */ "./node_modules/@abaplint/core/build/src/abap/5_syntax/expressions/attribute_name.js");
|
|
24662
|
-
const class_definition_1 = __webpack_require__(/*! ../../types/class_definition */ "./node_modules/@abaplint/core/build/src/abap/types/class_definition.js");
|
|
24663
24675
|
const _syntax_input_1 = __webpack_require__(/*! ../_syntax_input */ "./node_modules/@abaplint/core/build/src/abap/5_syntax/_syntax_input.js");
|
|
24664
24676
|
class MethodCallChain {
|
|
24665
24677
|
runSyntax(node, input, targetType) {
|
|
@@ -24702,10 +24714,8 @@ class MethodCallChain {
|
|
|
24702
24714
|
input.issues.push((0, _syntax_input_1.syntaxIssue)(input, methodToken, message));
|
|
24703
24715
|
return new basic_1.VoidType(_syntax_input_1.CheckSyntaxKey);
|
|
24704
24716
|
}
|
|
24705
|
-
const
|
|
24706
|
-
|
|
24707
|
-
ooType: foundDef instanceof class_definition_1.ClassDefinition ? "CLAS" : "INTF"
|
|
24708
|
-
};
|
|
24717
|
+
const voidedName = context instanceof basic_1.VoidType ? context.getVoided() : undefined;
|
|
24718
|
+
const extra = helper.methodReferenceExtras(foundDef, className || voidedName);
|
|
24709
24719
|
input.scope.addReference(methodToken, method, _reference_1.ReferenceType.MethodReference, input.filename, extra);
|
|
24710
24720
|
}
|
|
24711
24721
|
if (methodName === null || methodName === void 0 ? void 0 : methodName.includes("~")) {
|
|
@@ -25290,7 +25300,6 @@ const source_field_1 = __webpack_require__(/*! ./source_field */ "./node_modules
|
|
|
25290
25300
|
const tokens_1 = __webpack_require__(/*! ../../1_lexer/tokens */ "./node_modules/@abaplint/core/build/src/abap/1_lexer/tokens/index.js");
|
|
25291
25301
|
const attribute_name_1 = __webpack_require__(/*! ./attribute_name */ "./node_modules/@abaplint/core/build/src/abap/5_syntax/expressions/attribute_name.js");
|
|
25292
25302
|
const component_name_1 = __webpack_require__(/*! ./component_name */ "./node_modules/@abaplint/core/build/src/abap/5_syntax/expressions/component_name.js");
|
|
25293
|
-
const types_1 = __webpack_require__(/*! ../../types */ "./node_modules/@abaplint/core/build/src/abap/types/index.js");
|
|
25294
25303
|
const version_1 = __webpack_require__(/*! ../../../version */ "./node_modules/@abaplint/core/build/src/version.js");
|
|
25295
25304
|
const _syntax_input_1 = __webpack_require__(/*! ../_syntax_input */ "./node_modules/@abaplint/core/build/src/abap/5_syntax/_syntax_input.js");
|
|
25296
25305
|
const assert_error_1 = __webpack_require__(/*! ../assert_error */ "./node_modules/@abaplint/core/build/src/abap/5_syntax/assert_error.js");
|
|
@@ -25370,10 +25379,7 @@ class MethodSource {
|
|
|
25370
25379
|
return new basic_1.VoidType(_syntax_input_1.CheckSyntaxKey);
|
|
25371
25380
|
}
|
|
25372
25381
|
else if (method) {
|
|
25373
|
-
const extra =
|
|
25374
|
-
ooName: foundDef === null || foundDef === void 0 ? void 0 : foundDef.getName(),
|
|
25375
|
-
ooType: foundDef instanceof types_1.ClassDefinition ? "CLAS" : "INTF"
|
|
25376
|
-
};
|
|
25382
|
+
const extra = helper.methodReferenceExtras(foundDef, className);
|
|
25377
25383
|
input.scope.addReference(methodToken, method, _reference_1.ReferenceType.MethodReference, input.filename, extra);
|
|
25378
25384
|
context = method;
|
|
25379
25385
|
}
|
|
@@ -51649,7 +51655,7 @@ class Registry {
|
|
|
51649
51655
|
}
|
|
51650
51656
|
static abaplintVersion() {
|
|
51651
51657
|
// magic, see build script "version.sh"
|
|
51652
|
-
return "2.113.
|
|
51658
|
+
return "2.113.8";
|
|
51653
51659
|
}
|
|
51654
51660
|
getDDICReferences() {
|
|
51655
51661
|
return this.ddicReferences;
|
|
@@ -63829,7 +63835,7 @@ https://docs.abapopenchecks.org/checks/16/`,
|
|
|
63829
63835
|
const position = new position_1.Position(i + 1, column);
|
|
63830
63836
|
// merge punc into previous row
|
|
63831
63837
|
let rowContent = rows[i].trim();
|
|
63832
|
-
// if reported row contains
|
|
63838
|
+
// if reported row contains parentheses, prefix with space if needed
|
|
63833
63839
|
if (rowContent.length > 1 && !rows[i - 1].endsWith(" ") && !rows[i - 1].endsWith(" \r")) {
|
|
63834
63840
|
rowContent = " " + rowContent;
|
|
63835
63841
|
}
|
|
@@ -63839,7 +63845,10 @@ https://docs.abapopenchecks.org/checks/16/`,
|
|
|
63839
63845
|
}
|
|
63840
63846
|
const startPos = new position_1.Position(i, rows[i - 1].length + 1 + offset);
|
|
63841
63847
|
const endPos = new position_1.Position(i + 1, rows[i].length + 1);
|
|
63842
|
-
|
|
63848
|
+
let fix = edit_helper_1.EditHelper.replaceRange(file, startPos, endPos, rowContent);
|
|
63849
|
+
if (rows[i - 1] === undefined || rows[i - 1].indexOf("*") === 0 || rows[i - 1].includes(`"`)) {
|
|
63850
|
+
fix = undefined;
|
|
63851
|
+
}
|
|
63843
63852
|
const issue = issue_1.Issue.atPosition(file, position, this.getMessage(), this.getMetadata().key, this.conf.severity, fix);
|
|
63844
63853
|
issues.push(issue);
|
|
63845
63854
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abaplint/transpiler-cli",
|
|
3
|
-
"version": "2.10.
|
|
3
|
+
"version": "2.10.19",
|
|
4
4
|
"description": "Transpiler - Command Line Interface",
|
|
5
5
|
"funding": "https://github.com/sponsors/larshp",
|
|
6
6
|
"bin": {
|
|
@@ -26,15 +26,15 @@
|
|
|
26
26
|
"author": "abaplint",
|
|
27
27
|
"license": "MIT",
|
|
28
28
|
"devDependencies": {
|
|
29
|
-
"@abaplint/transpiler": "^2.10.
|
|
29
|
+
"@abaplint/transpiler": "^2.10.19",
|
|
30
30
|
"@types/glob": "^8.1.0",
|
|
31
31
|
"glob": "=7.2.0",
|
|
32
32
|
"@types/progress": "^2.0.7",
|
|
33
33
|
"@types/node": "^22.5.4",
|
|
34
|
-
"@abaplint/core": "^2.113.
|
|
34
|
+
"@abaplint/core": "^2.113.8",
|
|
35
35
|
"progress": "^2.0.3",
|
|
36
36
|
"webpack": "^5.94.0",
|
|
37
37
|
"webpack-cli": "^5.1.4",
|
|
38
|
-
"typescript": "^5.
|
|
38
|
+
"typescript": "^5.6.2"
|
|
39
39
|
}
|
|
40
40
|
}
|