@abaplint/cli 2.113.170 → 2.113.172
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 +7 -5
- package/package.json +2 -2
package/build/cli.js
CHANGED
|
@@ -7890,7 +7890,7 @@ class Source extends combi_1.Expression {
|
|
|
7890
7890
|
// paren used for eg. "( 2 + 1 ) * 4"
|
|
7891
7891
|
const paren = (0, combi_1.seq)((0, combi_1.tok)(tokens_1.WParenLeftW), Source, rparen);
|
|
7892
7892
|
const after = (0, combi_1.seq)((0, combi_1.altPrio)("&", "&&", _1.ArithOperator), Source);
|
|
7893
|
-
const bool = (0, combi_1.seq)((0, combi_1.altPrio)((0, combi_1.ver)(version_1.Version.v702, (0, combi_1.regex)(/^BOOLC$/i), version_1.Version.OpenABAP), (0, combi_1.ver)(version_1.Version.v740sp08, (0, combi_1.regex)(/^XSDBOOL$/i)
|
|
7893
|
+
const bool = (0, combi_1.seq)((0, combi_1.altPrio)((0, combi_1.ver)(version_1.Version.v702, (0, combi_1.regex)(/^BOOLC$/i), version_1.Version.OpenABAP), (0, combi_1.ver)(version_1.Version.v740sp08, (0, combi_1.regex)(/^XSDBOOL$/i), version_1.Version.OpenABAP)), (0, combi_1.tok)(tokens_1.ParenLeftW), _1.Cond, ")");
|
|
7894
7894
|
const prefix = (0, combi_1.altPrio)((0, combi_1.tok)(tokens_1.WPlus), "BIT-NOT");
|
|
7895
7895
|
const old = (0, combi_1.seq)((0, combi_1.optPrio)(prefix), (0, combi_1.altPrio)(_1.Constant, _1.StringTemplate, text_element_1.TextElement, bool, method, (0, combi_1.seq)(_1.FieldChain, deref), paren), (0, combi_1.optPrio)(after));
|
|
7896
7896
|
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)));
|
|
@@ -27493,9 +27493,11 @@ class NewObject {
|
|
|
27493
27493
|
if (ret === undefined) {
|
|
27494
27494
|
const objDefinition = input.scope.findObjectDefinition(typeName);
|
|
27495
27495
|
if (objDefinition) {
|
|
27496
|
+
const objref = new basic_1.ObjectReferenceType(objDefinition);
|
|
27497
|
+
const tid = new _typed_identifier_1.TypedIdentifier(typeToken, input.filename, objref);
|
|
27498
|
+
input.scope.addReference(typeToken, tid, _reference_1.ReferenceType.InferredType, input.filename);
|
|
27496
27499
|
input.scope.addReference(typeToken, objDefinition, _reference_1.ReferenceType.ObjectOrientedReference, input.filename);
|
|
27497
27500
|
input.scope.addReference(typeToken, objDefinition, _reference_1.ReferenceType.ConstructorReference, input.filename, { ooName: objDefinition.getName() });
|
|
27498
|
-
const objref = new basic_1.ObjectReferenceType(objDefinition);
|
|
27499
27501
|
const clas = input.scope.findClassDefinition(objref.getIdentifierName());
|
|
27500
27502
|
if ((clas === null || clas === void 0 ? void 0 : clas.isAbstract()) === true) {
|
|
27501
27503
|
const message = clas.getName() + " is abstract, cannot be instantiated";
|
|
@@ -28346,12 +28348,12 @@ class Source {
|
|
|
28346
28348
|
const basic = new basic_types_1.BasicTypes(input);
|
|
28347
28349
|
const typeExpression = node.findDirectExpression(Expressions.TypeNameOrInfer);
|
|
28348
28350
|
const typeToken = typeExpression === null || typeExpression === void 0 ? void 0 : typeExpression.getFirstToken();
|
|
28349
|
-
const typeName = typeToken
|
|
28351
|
+
// const typeName = typeToken?.getStr();
|
|
28350
28352
|
/*
|
|
28351
28353
|
console.dir(inferredType);
|
|
28352
28354
|
console.dir(typeToken);
|
|
28353
28355
|
*/
|
|
28354
|
-
if (
|
|
28356
|
+
if (inferredType && typeToken) {
|
|
28355
28357
|
const found = basic.lookupQualifiedName(inferredType.getQualifiedName());
|
|
28356
28358
|
if (found) {
|
|
28357
28359
|
const tid = new _typed_identifier_1.TypedIdentifier(typeToken, input.filename, inferredType);
|
|
@@ -54822,7 +54824,7 @@ class Registry {
|
|
|
54822
54824
|
}
|
|
54823
54825
|
static abaplintVersion() {
|
|
54824
54826
|
// magic, see build script "version.sh"
|
|
54825
|
-
return "2.113.
|
|
54827
|
+
return "2.113.172";
|
|
54826
54828
|
}
|
|
54827
54829
|
getDDICReferences() {
|
|
54828
54830
|
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.172",
|
|
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.172",
|
|
42
42
|
"@types/chai": "^4.3.20",
|
|
43
43
|
"@types/minimist": "^1.2.5",
|
|
44
44
|
"@types/mocha": "^10.0.10",
|