@abaplint/cli 2.113.177 → 2.113.179

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.
Files changed (2) hide show
  1. package/build/cli.js +13 -7
  2. package/package.json +2 -2
package/build/cli.js CHANGED
@@ -8369,7 +8369,7 @@ const tokens_1 = __webpack_require__(/*! ../../1_lexer/tokens */ "./node_modules
8369
8369
  class SQLFieldList extends combi_1.Expression {
8370
8370
  getRunnable() {
8371
8371
  const paren = (0, combi_1.seq)((0, combi_1.tok)(tokens_1.WParenLeftW), _1.SQLFieldName, (0, combi_1.tok)(tokens_1.WParenRightW));
8372
- const nev = (0, combi_1.ver)(version_1.Version.v740sp05, (0, combi_1.starPrio)((0, combi_1.seq)(",", _1.SQLField)));
8372
+ const nev = (0, combi_1.ver)(version_1.Version.v740sp05, (0, combi_1.starPrio)((0, combi_1.seq)(",", _1.SQLField)), version_1.Version.OpenABAP);
8373
8373
  const old = (0, combi_1.starPrio)(_1.SQLField);
8374
8374
  return (0, combi_1.altPrio)("*", _1.Dynamic, (0, combi_1.seq)(_1.SQLField, (0, combi_1.alt)(nev, old)), paren);
8375
8375
  }
@@ -8397,10 +8397,10 @@ const tokens_1 = __webpack_require__(/*! ../../1_lexer/tokens */ "./node_modules
8397
8397
  // loop must include one field from the database table
8398
8398
  class SQLFieldListLoop extends combi_1.Expression {
8399
8399
  getRunnable() {
8400
- const comma = (0, combi_1.opt)((0, combi_1.ver)(version_1.Version.v740sp05, ","));
8400
+ const comma = (0, combi_1.opt)((0, combi_1.ver)(version_1.Version.v740sp05, ",", version_1.Version.OpenABAP));
8401
8401
  const as = (0, combi_1.seq)("AS", _1.SQLAsName);
8402
8402
  const someField = (0, combi_1.seq)(_1.SQLField, comma);
8403
- const abap = (0, combi_1.ver)(version_1.Version.v740sp05, (0, combi_1.seq)((0, combi_1.tok)(tokens_1.WAt), _1.SimpleFieldChain2));
8403
+ const abap = (0, combi_1.ver)(version_1.Version.v740sp05, (0, combi_1.seq)((0, combi_1.tok)(tokens_1.WAt), _1.SimpleFieldChain2), version_1.Version.OpenABAP);
8404
8404
  const fieldList = (0, combi_1.seq)((0, combi_1.star)(someField), (0, combi_1.alt)(_1.SQLFieldName, abap, sql_path_1.SQLPath, _1.Constant), (0, combi_1.optPrio)(as), comma, (0, combi_1.star)(someField));
8405
8405
  const fields = (0, combi_1.alt)("*", _1.Dynamic, fieldList);
8406
8406
  return fields;
@@ -8985,7 +8985,7 @@ const _1 = __webpack_require__(/*! . */ "./node_modules/@abaplint/core/build/src
8985
8985
  class SQLTarget extends combi_1.Expression {
8986
8986
  getRunnable() {
8987
8987
  const n = (0, combi_1.ver)(version_1.Version.v754, "NEW");
8988
- const at = (0, combi_1.ver)(version_1.Version.v740sp05, (0, combi_1.seq)((0, combi_1.opt)(n), (0, combi_1.altPrio)((0, combi_1.tok)(tokens_1.WAt), (0, combi_1.tok)(tokens_1.At)), _1.Target));
8988
+ const at = (0, combi_1.ver)(version_1.Version.v740sp05, (0, combi_1.seq)((0, combi_1.opt)(n), (0, combi_1.altPrio)((0, combi_1.tok)(tokens_1.WAt), (0, combi_1.tok)(tokens_1.At)), _1.Target), version_1.Version.OpenABAP);
8989
8989
  return (0, combi_1.altPrio)(at, _1.Target);
8990
8990
  }
8991
8991
  }
@@ -27993,11 +27993,17 @@ class Select {
27993
27993
  }
27994
27994
  }
27995
27995
  static buildStructureType(fields, dbSources, scope) {
27996
- var _a;
27996
+ var _a, _b, _c;
27997
27997
  if (fields.length === 1 && dbSources.length === 1) {
27998
27998
  const dbType = (_a = dbSources[0]) === null || _a === void 0 ? void 0 : _a.parseType(scope.getRegistry());
27999
27999
  if (dbType === undefined) {
28000
- return basic_1.VoidType.get("SELECT_todo8");
28000
+ const name = ((_b = dbSources[0]) === null || _b === void 0 ? void 0 : _b.getName()) || "buildStructureTypeError";
28001
+ if (scope.getRegistry().inErrorNamespace(name) === true) {
28002
+ return new basic_1.UnknownType("Select, " + name + " not found");
28003
+ }
28004
+ else {
28005
+ return basic_1.VoidType.get((_c = dbSources[0]) === null || _c === void 0 ? void 0 : _c.getName());
28006
+ }
28001
28007
  }
28002
28008
  if (fields[0].code === "*") {
28003
28009
  return dbType;
@@ -54889,7 +54895,7 @@ class Registry {
54889
54895
  }
54890
54896
  static abaplintVersion() {
54891
54897
  // magic, see build script "version.sh"
54892
- return "2.113.177";
54898
+ return "2.113.178";
54893
54899
  }
54894
54900
  getDDICReferences() {
54895
54901
  return this.ddicReferences;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/cli",
3
- "version": "2.113.177",
3
+ "version": "2.113.179",
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.177",
41
+ "@abaplint/core": "^2.113.178",
42
42
  "@types/chai": "^4.3.20",
43
43
  "@types/minimist": "^1.2.5",
44
44
  "@types/mocha": "^10.0.10",