@abaplint/core 2.102.10 → 2.102.11

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.
@@ -417,6 +417,7 @@ class TypeUtils {
417
417
  return false;
418
418
  }
419
419
  else if (target instanceof basic_1.IntegerType
420
+ || target instanceof basic_1.CharacterType
420
421
  || target instanceof basic_1.StringType) {
421
422
  if (source instanceof basic_1.TableType && source.isWithHeader() === false) {
422
423
  return false;
@@ -65,7 +65,7 @@ class Registry {
65
65
  }
66
66
  static abaplintVersion() {
67
67
  // magic, see build script "version.sh"
68
- return "2.102.10";
68
+ return "2.102.11";
69
69
  }
70
70
  getDDICReferences() {
71
71
  return this.ddicReferences;
@@ -792,7 +792,7 @@ ${indentation}`);
792
792
  if (tt === undefined) {
793
793
  return undefined;
794
794
  }
795
- const uniqueName = this.uniqueName(high.getFirstToken().getStart(), lowFile.getFilename(), highSyntax);
795
+ const uniqueName = this.uniqueName(high.getFirstToken().getStart(), lowFile.getFilename(), highSyntax, "ty_");
796
796
  const code = `TYPES ${uniqueName} ${tt.concatTokens()}.\n`;
797
797
  const fix1 = edit_helper_1.EditHelper.insertAt(lowFile, high.getStart(), code);
798
798
  const fix2 = edit_helper_1.EditHelper.replaceRange(lowFile, tt.getFirstToken().getStart(), tt.getLastToken().getEnd(), "TYPE " + uniqueName);
@@ -2537,15 +2537,15 @@ ${indentation} output = ${uniqueName}.\n`;
2537
2537
  }
2538
2538
  return undefined;
2539
2539
  }
2540
- uniqueName(position, filename, highSyntax) {
2540
+ uniqueName(position, filename, highSyntax, prefix = "") {
2541
2541
  const spag = highSyntax.spaghetti.lookupPosition(position, filename);
2542
2542
  if (spag === undefined) {
2543
- const name = "temprr" + this.counter;
2543
+ const name = prefix + "temprr" + this.counter;
2544
2544
  this.counter++;
2545
2545
  return name;
2546
2546
  }
2547
2547
  while (true) {
2548
- const name = "temp" + this.counter;
2548
+ const name = prefix + "temp" + this.counter;
2549
2549
  const exists = this.existsRecursive(spag, name);
2550
2550
  this.counter++;
2551
2551
  if (exists === false) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/core",
3
- "version": "2.102.10",
3
+ "version": "2.102.11",
4
4
  "description": "abaplint - Core API",
5
5
  "main": "build/src/index.js",
6
6
  "typings": "build/abaplint.d.ts",
@@ -63,7 +63,7 @@
63
63
  "typescript": "^5.1.6"
64
64
  },
65
65
  "dependencies": {
66
- "fast-xml-parser": "^4.2.6",
66
+ "fast-xml-parser": "^4.2.7",
67
67
  "json5": "^2.2.3",
68
68
  "vscode-languageserver-types": "^3.17.3"
69
69
  }