@abaplint/core 2.97.11 → 2.97.13

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.
@@ -17,7 +17,7 @@ class Message {
17
17
  const mwith = (0, combi_1.seq)("WITH", s, (0, combi_1.opt)(sourc));
18
18
  const foo = (0, combi_1.seq)(expressions_1.MessageSource, (0, combi_1.opt)(options), (0, combi_1.opt)(mwith));
19
19
  const text = (0, combi_1.seq)(s, type, (0, combi_1.optPrio)(like), (0, combi_1.optPrio)(raising));
20
- const cloud = (0, combi_1.seq)(expressions_1.MessageSource, (0, combi_1.opt)((0, combi_1.seq)("WITH", expressions_1.Source, (0, combi_1.opt)(expressions_1.Source), (0, combi_1.opt)(expressions_1.Source), (0, combi_1.opt)(expressions_1.Source))), into);
20
+ const cloud = (0, combi_1.seq)(expressions_1.MessageSource, (0, combi_1.opt)((0, combi_1.seq)("WITH", expressions_1.Source, (0, combi_1.opt)(expressions_1.Source), (0, combi_1.opt)(expressions_1.Source), (0, combi_1.opt)(expressions_1.Source))), (0, combi_1.altPrio)(into, raising));
21
21
  const ret = (0, combi_1.seq)("MESSAGE", (0, combi_1.altPrio)((0, combi_1.verNot)(version_1.Version.Cloud, foo), (0, combi_1.verNot)(version_1.Version.Cloud, text), (0, combi_1.ver)(version_1.Version.Cloud, cloud)));
22
22
  return ret;
23
23
  }
@@ -254,7 +254,31 @@ class TypeUtils {
254
254
  return true;
255
255
  }
256
256
  else if (source instanceof basic_1.TableType) {
257
- return this.isAssignableStrict(source.getRowType(), target.getRowType());
257
+ const targetRowType = target.getRowType();
258
+ const sourceRowType = source.getRowType();
259
+ if (targetRowType instanceof basic_1.VoidType || targetRowType instanceof basic_1.AnyType || targetRowType instanceof basic_1.UnknownType) {
260
+ return true;
261
+ }
262
+ else if (sourceRowType instanceof basic_1.VoidType || sourceRowType instanceof basic_1.AnyType || sourceRowType instanceof basic_1.UnknownType) {
263
+ return true;
264
+ }
265
+ if (targetRowType instanceof basic_1.StructureType && this.structureContainsString(targetRowType)) {
266
+ if (!(sourceRowType instanceof basic_1.StructureType)) {
267
+ return false;
268
+ }
269
+ else if (!(this.structureContainsString(sourceRowType))) {
270
+ return false;
271
+ }
272
+ }
273
+ if (sourceRowType instanceof basic_1.StructureType && this.structureContainsString(sourceRowType)) {
274
+ if (!(targetRowType instanceof basic_1.StructureType)) {
275
+ return false;
276
+ }
277
+ else if (!(this.structureContainsString(targetRowType))) {
278
+ return false;
279
+ }
280
+ }
281
+ return true;
258
282
  }
259
283
  return false;
260
284
  }
@@ -17,7 +17,7 @@ class CallFunction {
17
17
  }
18
18
  else if (scope.getVersion() === version_1.Version.Cloud
19
19
  && node.findDirectExpression(Expressions.Destination) === undefined) {
20
- const functionName = name === null || name === void 0 ? void 0 : name.concatTokens().replace(/'/, "");
20
+ const functionName = name === null || name === void 0 ? void 0 : name.concatTokens().replace(/'/g, "");
21
21
  if (scope.findFunctionModule(functionName) === undefined) {
22
22
  throw new Error(`Function module "${functionName}" not found/released`);
23
23
  }
@@ -63,7 +63,7 @@ class Registry {
63
63
  }
64
64
  static abaplintVersion() {
65
65
  // magic, see build script "version.sh"
66
- return "2.97.11";
66
+ return "2.97.13";
67
67
  }
68
68
  getDDICReferences() {
69
69
  return this.references;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/core",
3
- "version": "2.97.11",
3
+ "version": "2.97.13",
4
4
  "description": "abaplint - Core API",
5
5
  "main": "build/src/index.js",
6
6
  "typings": "build/abaplint.d.ts",