@abaplint/transpiler-cli 2.13.58 → 2.13.59

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/bundle.js +10 -2
  2. package/package.json +3 -3
package/build/bundle.js CHANGED
@@ -28083,6 +28083,9 @@ class TypeUtils {
28083
28083
  && (target instanceof basic_1.XStringType || target instanceof basic_1.XSequenceType)) {
28084
28084
  return false;
28085
28085
  }
28086
+ if (calculated && source instanceof basic_1.IntegerType && target instanceof basic_1.DateType) {
28087
+ return false;
28088
+ }
28086
28089
  if (target instanceof basic_1.NumericType
28087
28090
  && (source instanceof basic_1.CharacterType || source instanceof basic_1.StringType)
28088
28091
  && ((_a = source.getAbstractTypeData()) === null || _a === void 0 ? void 0 : _a.derivedFromConstant) === true) {
@@ -42852,7 +42855,7 @@ class MethodImplementation {
42852
42855
  return;
42853
42856
  }
42854
42857
  const start = node.getFirstToken().getStart();
42855
- if ((methodDefinition === null || methodDefinition === void 0 ? void 0 : methodDefinition.isStatic()) === false) {
42858
+ if ((methodDefinition === null || methodDefinition === void 0 ? void 0 : methodDefinition.isStatic()) === false || methodDefinition === undefined) {
42856
42859
  input.scope.push(_scope_type_1.ScopeType.MethodInstance, methodName, start, input.filename);
42857
42860
  input.scope.addList(classDefinition.getAttributes().getInstance());
42858
42861
  }
@@ -70116,7 +70119,7 @@ class Registry {
70116
70119
  }
70117
70120
  static abaplintVersion() {
70118
70121
  // magic, see build script "version.js"
70119
- return "2.120.22";
70122
+ return "2.120.23";
70120
70123
  }
70121
70124
  getDDICReferences() {
70122
70125
  return this.ddicReferences;
@@ -111469,8 +111472,13 @@ class CreateObjectTranspiler {
111469
111472
  const cx = traversal.lookupClassOrInterface("CX_SY_CREATE_OBJECT_ERROR", node.getFirstToken());
111470
111473
  if (dynamic) {
111471
111474
  const id = unique_identifier_1.UniqueIdentifier.get();
111475
+ const internalName = unique_identifier_1.UniqueIdentifier.get();
111472
111476
  ret += `let ${id} = abap.Classes["${traversal.buildPrefix()}"+${name}.trimEnd()];\n`;
111473
111477
  ret += `if (${id} === undefined) { ${id} = abap.Classes[${name}.trimEnd()]; }\n`;
111478
+ ret += `if (${id} === undefined && abap.Classes['KERNEL_INTERNAL_NAME'] !== undefined) {\n`;
111479
+ ret += ` const ${internalName} = await abap.Classes['KERNEL_INTERNAL_NAME'].rtti_to_internal({iv_rtti: ${name}});\n`;
111480
+ ret += ` ${id} = abap.Classes[${internalName}.get().trimEnd()];\n`;
111481
+ ret += `}\n`;
111474
111482
  ret += `if (${id} === undefined) { throw new ${cx}; }\n`;
111475
111483
  clas = id;
111476
111484
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/transpiler-cli",
3
- "version": "2.13.58",
3
+ "version": "2.13.59",
4
4
  "description": "Transpiler - Command Line Interface",
5
5
  "funding": "https://github.com/sponsors/larshp",
6
6
  "bin": {
@@ -27,8 +27,8 @@
27
27
  "author": "abaplint",
28
28
  "license": "MIT",
29
29
  "devDependencies": {
30
- "@abaplint/core": "^2.120.22",
31
- "@abaplint/transpiler": "^2.13.58",
30
+ "@abaplint/core": "^2.120.23",
31
+ "@abaplint/transpiler": "^2.13.59",
32
32
  "@types/glob": "^8.1.0",
33
33
  "@types/node": "^24.13.3",
34
34
  "@types/progress": "^2.0.7",