@abaplint/cli 2.102.34 → 2.102.36

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 +12 -7
  2. package/package.json +5 -5
package/build/cli.js CHANGED
@@ -1020,7 +1020,7 @@ class Rename {
1020
1020
  }
1021
1021
  const newStr = o.getName().replace(regex, p.newName);
1022
1022
  if (quiet !== true) {
1023
- console.log("Renaming " + o.getName().padEnd(30, " ") + " -> " + newStr);
1023
+ console.log("Renaming " + o.getType() + " " + o.getName().padEnd(30, " ") + " -> " + newStr);
1024
1024
  }
1025
1025
  const result = renamer.rename(o.getType(), o.getName(), newStr);
1026
1026
  result.updatedFiles.forEach(f => { this.updatedFiles.add(f); });
@@ -13651,10 +13651,11 @@ class Loop {
13651
13651
  getMatcher() {
13652
13652
  const where = (0, combi_1.seq)("WHERE", (0, combi_1.alt)(expressions_1.ComponentCond, expressions_1.Dynamic));
13653
13653
  const group = (0, combi_1.ver)(version_1.Version.v740sp08, (0, combi_1.seq)("GROUP BY", loop_group_by_1.LoopGroupBy));
13654
+ const step = (0, combi_1.ver)(version_1.Version.v757, (0, combi_1.seq)("STEP", expressions_1.Source));
13654
13655
  const from = (0, combi_1.seq)("FROM", expressions_1.Source);
13655
13656
  const to = (0, combi_1.seq)("TO", expressions_1.Source);
13656
13657
  const usingKey = (0, combi_1.seq)("USING KEY", (0, combi_1.altPrio)(expressions_1.SimpleName, expressions_1.Dynamic));
13657
- const options = (0, combi_1.per)(expressions_1.LoopTarget, from, to, where, usingKey, group);
13658
+ const options = (0, combi_1.per)(expressions_1.LoopTarget, from, to, where, usingKey, group, step);
13658
13659
  const at = (0, combi_1.seq)("AT", (0, combi_1.opt)((0, combi_1.seq)("SCREEN", (0, combi_1.failCombinator)())), (0, combi_1.opt)((0, combi_1.ver)(version_1.Version.v740sp08, "GROUP")), (0, combi_1.alt)(simple_source2_1.SimpleSource2, (0, combi_1.ver)(version_1.Version.v740sp02, expressions_1.Source)), (0, combi_1.opt)(options));
13659
13660
  return (0, combi_1.seq)("LOOP", (0, combi_1.opt)(at));
13660
13661
  }
@@ -14758,7 +14759,7 @@ const version_1 = __webpack_require__(/*! ../../../version */ "./node_modules/@a
14758
14759
  class ReadTextpool {
14759
14760
  getMatcher() {
14760
14761
  const language = (0, combi_1.seq)("LANGUAGE", expressions_1.Source);
14761
- const into = (0, combi_1.seq)("INTO", expressions_1.Target);
14762
+ const into = (0, combi_1.seq)("INTO", expressions_1.SimpleTarget);
14762
14763
  const state = (0, combi_1.seq)("STATE", expressions_1.Source);
14763
14764
  const ret = (0, combi_1.seq)("READ TEXTPOOL", expressions_1.Source, (0, combi_1.per)(into, language, state));
14764
14765
  return (0, combi_1.verNot)(version_1.Version.Cloud, ret);
@@ -21900,6 +21901,9 @@ class TypeUtils {
21900
21901
  else if (target.containsVoid() === true) {
21901
21902
  return true;
21902
21903
  }
21904
+ else if (source instanceof basic_1.StringType && this.structureContainsString(target)) {
21905
+ return false;
21906
+ }
21903
21907
  else if (source instanceof basic_1.IntegerType) {
21904
21908
  return false;
21905
21909
  }
@@ -30513,7 +30517,7 @@ class ReadTextpool {
30513
30517
  for (const s of node.findDirectExpressions(Expressions.Source)) {
30514
30518
  new source_1.Source().runSyntax(s, scope, filename);
30515
30519
  }
30516
- for (const t of node.findDirectExpressions(Expressions.Target)) {
30520
+ for (const t of node.findDirectExpressions(Expressions.SimpleTarget)) {
30517
30521
  new target_1.Target().runSyntax(t, scope, filename);
30518
30522
  }
30519
30523
  }
@@ -46770,9 +46774,10 @@ class RenamerHelper {
46770
46774
  renameFiles(obj, oldName, name) {
46771
46775
  const list = [];
46772
46776
  const newName = name.toLowerCase().replace(/\//g, "#");
46777
+ oldName = oldName.toLowerCase().replace(/\//g, "#");
46773
46778
  for (const f of obj.getFiles()) {
46774
46779
  // todo, this is not completely correct, ie. if the URI contains the same directory name as the object name
46775
- const newFilename = f.getFilename().replace(oldName.toLowerCase(), newName.toLowerCase());
46780
+ const newFilename = f.getFilename().replace(oldName, newName);
46776
46781
  list.push(vscode_languageserver_types_1.RenameFile.create(f.getFilename(), newFilename));
46777
46782
  }
46778
46783
  return list;
@@ -48777,7 +48782,7 @@ class Registry {
48777
48782
  }
48778
48783
  static abaplintVersion() {
48779
48784
  // magic, see build script "version.sh"
48780
- return "2.102.34";
48785
+ return "2.102.36";
48781
48786
  }
48782
48787
  getDDICReferences() {
48783
48788
  return this.ddicReferences;
@@ -60881,7 +60886,7 @@ class MessageExistsRule {
60881
60886
  const msag = this.reg.getObject("MSAG", ref.messageClass);
60882
60887
  if (msag === undefined) {
60883
60888
  if (new ddic_1.DDIC(this.reg).inErrorNamespace(ref.messageClass) === true) {
60884
- const message = "Message class \"" + ref.token.getStr() + "\" not found";
60889
+ const message = "Message class \"" + ref.messageClass + "\" not found";
60885
60890
  issues.push(issue_1.Issue.atToken(file, ref.token, message, this.getMetadata().key, this.conf.severity));
60886
60891
  }
60887
60892
  continue;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/cli",
3
- "version": "2.102.34",
3
+ "version": "2.102.36",
4
4
  "description": "abaplint - Command Line Interface",
5
5
  "funding": "https://github.com/sponsors/larshp",
6
6
  "bin": {
@@ -38,16 +38,16 @@
38
38
  },
39
39
  "homepage": "https://abaplint.org",
40
40
  "devDependencies": {
41
- "@abaplint/core": "^2.102.34",
42
- "@types/chai": "^4.3.5",
41
+ "@abaplint/core": "^2.102.36",
42
+ "@types/chai": "^4.3.6",
43
43
  "@types/glob": "^7.2.0",
44
44
  "@types/minimist": "^1.2.2",
45
45
  "@types/mocha": "^10.0.1",
46
- "@types/node": "^20.5.7",
46
+ "@types/node": "^20.6.0",
47
47
  "@types/progress": "^2.0.5",
48
48
  "chai": "^4.3.8",
49
49
  "chalk": "^5.3.0",
50
- "eslint": "^8.48.0",
50
+ "eslint": "^8.49.0",
51
51
  "glob": "^7.2.3",
52
52
  "json5": "^2.2.3",
53
53
  "memfs": "^4.2.1",