@abaplint/cli 2.102.62 → 2.102.64

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 +34 -5
  2. package/package.json +3 -3
package/build/cli.js CHANGED
@@ -5354,6 +5354,7 @@ __exportStar(__webpack_require__(/*! ./sql_order_by */ "./node_modules/@abaplint
5354
5354
  __exportStar(__webpack_require__(/*! ./sql_path */ "./node_modules/@abaplint/core/build/src/abap/2_statements/expressions/sql_path.js"), exports);
5355
5355
  __exportStar(__webpack_require__(/*! ./sql_source_simple */ "./node_modules/@abaplint/core/build/src/abap/2_statements/expressions/sql_source_simple.js"), exports);
5356
5356
  __exportStar(__webpack_require__(/*! ./sql_source */ "./node_modules/@abaplint/core/build/src/abap/2_statements/expressions/sql_source.js"), exports);
5357
+ __exportStar(__webpack_require__(/*! ./sql_source_no_space */ "./node_modules/@abaplint/core/build/src/abap/2_statements/expressions/sql_source_no_space.js"), exports);
5357
5358
  __exportStar(__webpack_require__(/*! ./sql_target */ "./node_modules/@abaplint/core/build/src/abap/2_statements/expressions/sql_target.js"), exports);
5358
5359
  __exportStar(__webpack_require__(/*! ./sql_up_to */ "./node_modules/@abaplint/core/build/src/abap/2_statements/expressions/sql_up_to.js"), exports);
5359
5360
  __exportStar(__webpack_require__(/*! ./string_template_formatting */ "./node_modules/@abaplint/core/build/src/abap/2_statements/expressions/string_template_formatting.js"), exports);
@@ -7848,7 +7849,7 @@ const version_1 = __webpack_require__(/*! ../../../version */ "./node_modules/@a
7848
7849
  class SQLIn extends combi_1.Expression {
7849
7850
  getRunnable() {
7850
7851
  const val = new _1.SQLSource();
7851
- const short = (0, combi_1.seq)((0, combi_1.tok)(tokens_1.At), _1.SimpleSource3);
7852
+ const short = new _1.SQLSourceNoSpace();
7852
7853
  const listOld = (0, combi_1.seq)((0, combi_1.tok)(tokens_1.WParenLeft), (0, combi_1.alt)((0, combi_1.ver)(version_1.Version.v740sp05, short), val), (0, combi_1.starPrio)((0, combi_1.seq)(",", val)), (0, combi_1.altPrio)((0, combi_1.tok)(tokens_1.ParenRight), (0, combi_1.tok)(tokens_1.ParenRightW), (0, combi_1.tok)(tokens_1.WParenRightW)));
7853
7854
  const listNew = (0, combi_1.seq)((0, combi_1.tok)(tokens_1.WParenLeftW), val, (0, combi_1.starPrio)((0, combi_1.seq)(",", (0, combi_1.altPrio)(short, val))), (0, combi_1.altPrio)((0, combi_1.tok)(tokens_1.WParenRight), (0, combi_1.tok)(tokens_1.WParenRightW)));
7854
7855
  const list = (0, combi_1.alt)(listOld, (0, combi_1.ver)(version_1.Version.v740sp02, listNew)); // version is a guess, https://github.com/abaplint/abaplint/issues/2530
@@ -8032,6 +8033,32 @@ exports.SQLSource = SQLSource;
8032
8033
 
8033
8034
  /***/ }),
8034
8035
 
8036
+ /***/ "./node_modules/@abaplint/core/build/src/abap/2_statements/expressions/sql_source_no_space.js":
8037
+ /*!****************************************************************************************************!*\
8038
+ !*** ./node_modules/@abaplint/core/build/src/abap/2_statements/expressions/sql_source_no_space.js ***!
8039
+ \****************************************************************************************************/
8040
+ /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
8041
+
8042
+ "use strict";
8043
+
8044
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
8045
+ exports.SQLSourceNoSpace = void 0;
8046
+ const combi_1 = __webpack_require__(/*! ../combi */ "./node_modules/@abaplint/core/build/src/abap/2_statements/combi.js");
8047
+ const version_1 = __webpack_require__(/*! ../../../version */ "./node_modules/@abaplint/core/build/src/version.js");
8048
+ const tokens_1 = __webpack_require__(/*! ../../1_lexer/tokens */ "./node_modules/@abaplint/core/build/src/abap/1_lexer/tokens/index.js");
8049
+ const _1 = __webpack_require__(/*! . */ "./node_modules/@abaplint/core/build/src/abap/2_statements/expressions/index.js");
8050
+ class SQLSourceNoSpace extends combi_1.Expression {
8051
+ getRunnable() {
8052
+ const paren = (0, combi_1.seq)((0, combi_1.tok)(tokens_1.ParenLeftW), _1.Source, (0, combi_1.tok)(tokens_1.WParenRightW));
8053
+ const at = (0, combi_1.ver)(version_1.Version.v740sp05, (0, combi_1.seq)((0, combi_1.tok)(tokens_1.At), (0, combi_1.altPrio)(_1.SimpleSource3, paren)));
8054
+ return (0, combi_1.alt)(_1.SQLAliasField, _1.SimpleSource3, at);
8055
+ }
8056
+ }
8057
+ exports.SQLSourceNoSpace = SQLSourceNoSpace;
8058
+ //# sourceMappingURL=sql_source_no_space.js.map
8059
+
8060
+ /***/ }),
8061
+
8035
8062
  /***/ "./node_modules/@abaplint/core/build/src/abap/2_statements/expressions/sql_source_simple.js":
8036
8063
  /*!**************************************************************************************************!*\
8037
8064
  !*** ./node_modules/@abaplint/core/build/src/abap/2_statements/expressions/sql_source_simple.js ***!
@@ -20198,7 +20225,7 @@ BuiltIn.methods = [
20198
20225
  {
20199
20226
  name: "LINE_INDEX",
20200
20227
  mandatory: {
20201
- "val": basic_1.CLikeType.get(),
20228
+ "val": new basic_1.AnyType(),
20202
20229
  },
20203
20230
  return: basic_1.IntegerType.get(),
20204
20231
  version: version_1.Version.v740sp02,
@@ -21939,9 +21966,10 @@ class TypeUtils {
21939
21966
  }
21940
21967
  return true;
21941
21968
  }
21942
- else if (target instanceof basic_1.CharacterType) {
21943
- return false;
21969
+ else if (target instanceof basic_1.VoidType || target instanceof basic_1.AnyType) {
21970
+ return true;
21944
21971
  }
21972
+ return false;
21945
21973
  }
21946
21974
  else if (source instanceof basic_1.Integer8Type) {
21947
21975
  if (target instanceof basic_1.IntegerType || target instanceof basic_1.StringType) {
@@ -50111,7 +50139,7 @@ class Registry {
50111
50139
  }
50112
50140
  static abaplintVersion() {
50113
50141
  // magic, see build script "version.sh"
50114
- return "2.102.62";
50142
+ return "2.102.64";
50115
50143
  }
50116
50144
  getDDICReferences() {
50117
50145
  return this.ddicReferences;
@@ -55296,6 +55324,7 @@ Make sure to test the downported code, it might not always be completely correct
55296
55324
  };
55297
55325
  const candidates = [high.findAllExpressionsRecursive(Expressions.SQLTarget),
55298
55326
  high.findAllExpressionsRecursive(Expressions.SQLSource),
55327
+ high.findAllExpressionsRecursive(Expressions.SQLSourceNoSpace),
55299
55328
  high.findAllExpressionsRecursive(Expressions.SQLSourceSimple)].flat();
55300
55329
  for (const c of candidates.reverse()) {
55301
55330
  if (c.getFirstToken() instanceof tokens_1.WAt
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/cli",
3
- "version": "2.102.62",
3
+ "version": "2.102.64",
4
4
  "description": "abaplint - Command Line Interface",
5
5
  "funding": "https://github.com/sponsors/larshp",
6
6
  "bin": {
@@ -38,12 +38,12 @@
38
38
  },
39
39
  "homepage": "https://abaplint.org",
40
40
  "devDependencies": {
41
- "@abaplint/core": "^2.102.62",
41
+ "@abaplint/core": "^2.102.64",
42
42
  "@types/chai": "^4.3.9",
43
43
  "@types/glob": "^7.2.0",
44
44
  "@types/minimist": "^1.2.4",
45
45
  "@types/mocha": "^10.0.3",
46
- "@types/node": "^20.8.8",
46
+ "@types/node": "^20.8.9",
47
47
  "@types/progress": "^2.0.6",
48
48
  "chai": "^4.3.10",
49
49
  "chalk": "^5.3.0",