@abaplint/cli 2.113.241 → 2.113.243
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 +17 -14
- package/package.json +2 -2
package/build/cli.js
CHANGED
|
@@ -25624,7 +25624,9 @@ class ComponentName {
|
|
|
25624
25624
|
return ret;
|
|
25625
25625
|
}
|
|
25626
25626
|
}
|
|
25627
|
-
|
|
25627
|
+
if (!(context instanceof Basic.UnknownType)) {
|
|
25628
|
+
input.issues.push((0, _syntax_input_1.syntaxIssue)(input, nameToken, "Not a structure, ComponentName, \"" + name + "\", (" + (context === null || context === void 0 ? void 0 : context.constructor.name) + ")"));
|
|
25629
|
+
}
|
|
25628
25630
|
return Basic.VoidType.get(_syntax_input_1.CheckSyntaxKey);
|
|
25629
25631
|
}
|
|
25630
25632
|
}
|
|
@@ -29298,8 +29300,9 @@ class Target {
|
|
|
29298
29300
|
currentIndex++;
|
|
29299
29301
|
if (current.get() instanceof tokens_1.Dash) {
|
|
29300
29302
|
if (context instanceof unknown_type_1.UnknownType) {
|
|
29301
|
-
|
|
29302
|
-
|
|
29303
|
+
return basic_1.VoidType.get(_syntax_input_1.CheckSyntaxKey);
|
|
29304
|
+
}
|
|
29305
|
+
else if (context instanceof basic_1.TableType && context.isWithHeader() && context.getRowType() instanceof unknown_type_1.UnknownType) {
|
|
29303
29306
|
return basic_1.VoidType.get(_syntax_input_1.CheckSyntaxKey);
|
|
29304
29307
|
}
|
|
29305
29308
|
else if (!(context instanceof basic_1.StructureType)
|
|
@@ -32619,27 +32622,27 @@ const basic_types_1 = __webpack_require__(/*! ../basic_types */ "./node_modules/
|
|
|
32619
32622
|
const _typed_identifier_1 = __webpack_require__(/*! ../../types/_typed_identifier */ "./node_modules/@abaplint/core/build/src/abap/types/_typed_identifier.js");
|
|
32620
32623
|
const _syntax_input_1 = __webpack_require__(/*! ../_syntax_input */ "./node_modules/@abaplint/core/build/src/abap/5_syntax/_syntax_input.js");
|
|
32621
32624
|
const assert_error_1 = __webpack_require__(/*! ../assert_error */ "./node_modules/@abaplint/core/build/src/abap/5_syntax/assert_error.js");
|
|
32625
|
+
const _reference_1 = __webpack_require__(/*! ../_reference */ "./node_modules/@abaplint/core/build/src/abap/5_syntax/_reference.js");
|
|
32622
32626
|
class IncludeType {
|
|
32623
32627
|
runSyntax(node, input) {
|
|
32624
|
-
var _a, _b
|
|
32628
|
+
var _a, _b;
|
|
32625
32629
|
const components = [];
|
|
32626
32630
|
const iname = node.findFirstExpression(Expressions.TypeName);
|
|
32627
32631
|
if (iname === undefined) {
|
|
32628
32632
|
throw new assert_error_1.AssertError("IncludeType, unexpected node structure");
|
|
32629
32633
|
}
|
|
32630
|
-
const
|
|
32634
|
+
const firstToken = iname.getFirstToken();
|
|
32635
|
+
const name = firstToken.getStr();
|
|
32631
32636
|
const isStructure = node.findDirectTokenByText("STRUCTURE") !== undefined;
|
|
32632
32637
|
let ityp = new basic_types_1.BasicTypes(input).parseType(iname);
|
|
32633
|
-
if (ityp instanceof basic_1.VoidType && isStructure) {
|
|
32634
|
-
const found =
|
|
32638
|
+
if ((ityp instanceof basic_1.VoidType && isStructure) || ityp instanceof basic_1.UnknownType) {
|
|
32639
|
+
const found = input.scope.findVariable(name);
|
|
32635
32640
|
if (found) {
|
|
32636
|
-
|
|
32641
|
+
input.scope.addReference(firstToken, found, _reference_1.ReferenceType.DataReadReference, input.filename);
|
|
32642
|
+
ityp = found.getType();
|
|
32637
32643
|
}
|
|
32638
32644
|
}
|
|
32639
|
-
|
|
32640
|
-
ityp = (_c = (_b = input.scope.findVariable(name)) === null || _b === void 0 ? void 0 : _b.getType()) !== null && _c !== void 0 ? _c : ityp;
|
|
32641
|
-
}
|
|
32642
|
-
const as = (_d = node.findExpressionAfterToken("AS")) === null || _d === void 0 ? void 0 : _d.concatTokens();
|
|
32645
|
+
const as = (_a = node.findExpressionAfterToken("AS")) === null || _a === void 0 ? void 0 : _a.concatTokens();
|
|
32643
32646
|
if (as && ityp instanceof basic_1.StructureType) {
|
|
32644
32647
|
ityp = new basic_1.StructureType(ityp.getComponents().concat([{
|
|
32645
32648
|
name: as,
|
|
@@ -32661,7 +32664,7 @@ class IncludeType {
|
|
|
32661
32664
|
input.issues.push((0, _syntax_input_1.syntaxIssue)(input, iname.getFirstToken(), message));
|
|
32662
32665
|
return basic_1.VoidType.get(_syntax_input_1.CheckSyntaxKey);
|
|
32663
32666
|
}
|
|
32664
|
-
const suffix = (
|
|
32667
|
+
const suffix = (_b = node.findExpressionAfterToken("SUFFIX")) === null || _b === void 0 ? void 0 : _b.concatTokens();
|
|
32665
32668
|
if (suffix && ityp instanceof basic_1.StructureType) {
|
|
32666
32669
|
const components = [];
|
|
32667
32670
|
for (const c of ityp.getComponents()) {
|
|
@@ -54883,7 +54886,7 @@ class Registry {
|
|
|
54883
54886
|
}
|
|
54884
54887
|
static abaplintVersion() {
|
|
54885
54888
|
// magic, see build script "version.sh"
|
|
54886
|
-
return "2.113.
|
|
54889
|
+
return "2.113.243";
|
|
54887
54890
|
}
|
|
54888
54891
|
getDDICReferences() {
|
|
54889
54892
|
return this.ddicReferences;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abaplint/cli",
|
|
3
|
-
"version": "2.113.
|
|
3
|
+
"version": "2.113.243",
|
|
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.113.
|
|
41
|
+
"@abaplint/core": "^2.113.243",
|
|
42
42
|
"@types/chai": "^4.3.20",
|
|
43
43
|
"@types/minimist": "^1.2.5",
|
|
44
44
|
"@types/mocha": "^10.0.10",
|