@abaplint/cli 2.113.164 → 2.113.166
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 +14 -16
- package/package.json +2 -2
package/build/cli.js
CHANGED
|
@@ -7895,7 +7895,7 @@ class Source extends combi_1.Expression {
|
|
|
7895
7895
|
const corr = (0, combi_1.ver)(version_1.Version.v740sp05, (0, combi_1.seq)("CORRESPONDING", _1.TypeNameOrInfer, (0, combi_1.tok)(tokens_1.ParenLeftW), _1.CorrespondingBody, rparen, (0, combi_1.optPrio)(after)));
|
|
7896
7896
|
const conv = (0, combi_1.ver)(version_1.Version.v740sp02, (0, combi_1.seq)("CONV", _1.TypeNameOrInfer, lparenNoSpace, _1.ConvBody, rparenNoSpace, (0, combi_1.optPrio)(after)), version_1.Version.OpenABAP);
|
|
7897
7897
|
const swit = (0, combi_1.ver)(version_1.Version.v740sp02, (0, combi_1.seq)("SWITCH", _1.TypeNameOrInfer, (0, combi_1.tok)(tokens_1.ParenLeftW), _1.SwitchBody, rparenNoSpace, (0, combi_1.optPrio)(after)));
|
|
7898
|
-
const value = (0, combi_1.ver)(version_1.Version.v740sp02, (0, combi_1.seq)("VALUE", _1.TypeNameOrInfer, (0, combi_1.tok)(tokens_1.ParenLeftW), _1.ValueBody, rparenNoSpace, (0, combi_1.optPrio)(after)));
|
|
7898
|
+
const value = (0, combi_1.ver)(version_1.Version.v740sp02, (0, combi_1.seq)("VALUE", _1.TypeNameOrInfer, (0, combi_1.tok)(tokens_1.ParenLeftW), _1.ValueBody, rparenNoSpace, (0, combi_1.optPrio)(after)), version_1.Version.OpenABAP);
|
|
7899
7899
|
const cond = (0, combi_1.ver)(version_1.Version.v740sp02, (0, combi_1.seq)("COND", _1.TypeNameOrInfer, (0, combi_1.tok)(tokens_1.ParenLeftW), _1.CondBody, rparenNoSpace, (0, combi_1.optPrio)(after)));
|
|
7900
7900
|
const reff = (0, combi_1.ver)(version_1.Version.v740sp02, (0, combi_1.seq)("REF", _1.TypeNameOrInfer, (0, combi_1.tok)(tokens_1.ParenLeftW), Source, (0, combi_1.optPrio)("OPTIONAL"), rparen), version_1.Version.OpenABAP);
|
|
7901
7901
|
const exact = (0, combi_1.ver)(version_1.Version.v740sp02, (0, combi_1.seq)("EXACT", _1.TypeNameOrInfer, (0, combi_1.tok)(tokens_1.ParenLeftW), Source, rparen, (0, combi_1.optPrio)(after)));
|
|
@@ -28324,27 +28324,24 @@ class Source {
|
|
|
28324
28324
|
console.dir(inferredType);
|
|
28325
28325
|
console.dir(typeToken);
|
|
28326
28326
|
*/
|
|
28327
|
-
// hmm, need to align all this
|
|
28328
28327
|
if (typeName === "#" && inferredType && typeToken) {
|
|
28329
28328
|
const found = basic.lookupQualifiedName(inferredType.getQualifiedName());
|
|
28330
28329
|
if (found) {
|
|
28331
|
-
input.scope.addReference(typeToken, found, _reference_1.ReferenceType.InferredType, input.filename);
|
|
28332
|
-
}
|
|
28333
|
-
else if (inferredType instanceof basic_1.DataReference) {
|
|
28334
|
-
const tid = new _typed_identifier_1.TypedIdentifier(typeToken, input.filename, inferredType);
|
|
28335
|
-
input.scope.addReference(typeToken, tid, _reference_1.ReferenceType.InferredType, input.filename);
|
|
28330
|
+
input.scope.addReference(typeToken, found, _reference_1.ReferenceType.InferredType, input.filename, { foundQualified: true });
|
|
28336
28331
|
}
|
|
28337
28332
|
else if (inferredType instanceof basic_1.ObjectReferenceType) {
|
|
28338
28333
|
const def = input.scope.findObjectDefinition(inferredType.getQualifiedName());
|
|
28334
|
+
const tid = new _typed_identifier_1.TypedIdentifier(typeToken, input.filename, inferredType);
|
|
28339
28335
|
if (def) {
|
|
28340
|
-
|
|
28341
|
-
|
|
28336
|
+
input.scope.addReference(typeToken, tid, _reference_1.ReferenceType.InferredType, input.filename, { foundQualified: true });
|
|
28337
|
+
}
|
|
28338
|
+
else {
|
|
28339
|
+
input.scope.addReference(typeToken, tid, _reference_1.ReferenceType.InferredType, input.filename, { foundQualified: false });
|
|
28342
28340
|
}
|
|
28343
28341
|
}
|
|
28344
|
-
else
|
|
28345
|
-
// character is bit special it does not have a qualified name eg "TYPE c LENGTH 6"
|
|
28342
|
+
else {
|
|
28346
28343
|
const tid = new _typed_identifier_1.TypedIdentifier(typeToken, input.filename, inferredType);
|
|
28347
|
-
input.scope.addReference(typeToken, tid, _reference_1.ReferenceType.InferredType, input.filename);
|
|
28344
|
+
input.scope.addReference(typeToken, tid, _reference_1.ReferenceType.InferredType, input.filename, { foundQualified: false });
|
|
28348
28345
|
}
|
|
28349
28346
|
}
|
|
28350
28347
|
}
|
|
@@ -54794,7 +54791,7 @@ class Registry {
|
|
|
54794
54791
|
}
|
|
54795
54792
|
static abaplintVersion() {
|
|
54796
54793
|
// magic, see build script "version.sh"
|
|
54797
|
-
return "2.113.
|
|
54794
|
+
return "2.113.166";
|
|
54798
54795
|
}
|
|
54799
54796
|
getDDICReferences() {
|
|
54800
54797
|
return this.ddicReferences;
|
|
@@ -62312,7 +62309,7 @@ ${indentation} output = ${uniqueName}.\n`;
|
|
|
62312
62309
|
throw new SkipToNextFile(issue);
|
|
62313
62310
|
}
|
|
62314
62311
|
findType(i, lowFile, highSyntax, ref = false) {
|
|
62315
|
-
var _a;
|
|
62312
|
+
var _a, _b;
|
|
62316
62313
|
const expr = i.findDirectExpression(Expressions.TypeNameOrInfer);
|
|
62317
62314
|
if (expr === undefined) {
|
|
62318
62315
|
return undefined;
|
|
@@ -62331,7 +62328,8 @@ ${indentation} output = ${uniqueName}.\n`;
|
|
|
62331
62328
|
if (r.referenceType === _reference_1.ReferenceType.InferredType
|
|
62332
62329
|
&& r.resolved
|
|
62333
62330
|
&& r.position.getStart().equals(firstToken.getStart())
|
|
62334
|
-
&& r.resolved instanceof _typed_identifier_1.TypedIdentifier
|
|
62331
|
+
&& r.resolved instanceof _typed_identifier_1.TypedIdentifier
|
|
62332
|
+
&& ((_a = r.extra) === null || _a === void 0 ? void 0 : _a.foundQualified) === true) {
|
|
62335
62333
|
inferred = r.resolved;
|
|
62336
62334
|
break;
|
|
62337
62335
|
}
|
|
@@ -62343,7 +62341,7 @@ ${indentation} output = ${uniqueName}.\n`;
|
|
|
62343
62341
|
return inferred.getType().toABAP();
|
|
62344
62342
|
}
|
|
62345
62343
|
else {
|
|
62346
|
-
return (
|
|
62344
|
+
return (_b = inferred.getType().getQualifiedName()) === null || _b === void 0 ? void 0 : _b.toLowerCase();
|
|
62347
62345
|
}
|
|
62348
62346
|
}
|
|
62349
62347
|
outlineFS(low, high, lowFile, highSyntax) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abaplint/cli",
|
|
3
|
-
"version": "2.113.
|
|
3
|
+
"version": "2.113.166",
|
|
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.166",
|
|
42
42
|
"@types/chai": "^4.3.20",
|
|
43
43
|
"@types/minimist": "^1.2.5",
|
|
44
44
|
"@types/mocha": "^10.0.10",
|