@abaplint/cli 2.113.233 → 2.113.234

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 +17 -4
  2. package/package.json +2 -2
package/build/cli.js CHANGED
@@ -26519,11 +26519,19 @@ class InlineData {
26519
26519
  if (type instanceof basic_1.CSequenceType || type instanceof basic_1.CLikeType) {
26520
26520
  type = basic_1.StringType.get();
26521
26521
  }
26522
+ else if (type instanceof basic_1.XSequenceType) {
26523
+ type = basic_1.StringType.get();
26524
+ }
26522
26525
  else if (type instanceof basic_1.CGenericType) {
26523
26526
  const message = "InlineData, generic type C cannot be used for inferred type";
26524
26527
  input.issues.push((0, _syntax_input_1.syntaxIssue)(input, node.getFirstToken(), message));
26525
26528
  return;
26526
26529
  }
26530
+ if (type.isGeneric()) {
26531
+ const message = "DATA definition cannot be generic, " + type.constructor.name;
26532
+ input.issues.push((0, _syntax_input_1.syntaxIssue)(input, node.getFirstToken(), message));
26533
+ type = basic_1.VoidType.get(_syntax_input_1.CheckSyntaxKey);
26534
+ }
26527
26535
  const identifier = new _typed_identifier_1.TypedIdentifier(token, input.filename, type, ["inline" /* IdentifierMeta.InlineDefinition */]);
26528
26536
  input.scope.addIdentifier(identifier);
26529
26537
  input.scope.addReference(token, identifier, _reference_1.ReferenceType.DataWriteReference, input.filename);
@@ -28459,15 +28467,20 @@ class Source {
28459
28467
  const s = Source.runSyntax(node.findDirectExpression(Expressions.Source), input);
28460
28468
  /*
28461
28469
  console.dir(node.concatTokens());
28462
- console.dir(targetType);
28463
- console.dir(foundType);
28464
28470
  console.dir(s);
28471
+ console.dir(foundType);
28472
+ console.dir(targetType);
28465
28473
  */
28466
28474
  if (foundType && foundType.isGeneric() && s) {
28467
28475
  foundType = new basic_1.DataReference(s);
28468
28476
  }
28469
28477
  else if (foundType === undefined && s) {
28470
- foundType = new basic_1.DataReference(s);
28478
+ if (s instanceof basic_1.AnyType) {
28479
+ foundType = new basic_1.DataReference(basic_1.VoidType.get("REF-ANY"));
28480
+ }
28481
+ else {
28482
+ foundType = new basic_1.DataReference(s);
28483
+ }
28471
28484
  }
28472
28485
  else if (foundType && targetType === undefined) {
28473
28486
  foundType = new basic_1.DataReference(foundType);
@@ -54771,7 +54784,7 @@ class Registry {
54771
54784
  }
54772
54785
  static abaplintVersion() {
54773
54786
  // magic, see build script "version.sh"
54774
- return "2.113.233";
54787
+ return "2.113.234";
54775
54788
  }
54776
54789
  getDDICReferences() {
54777
54790
  return this.ddicReferences;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/cli",
3
- "version": "2.113.233",
3
+ "version": "2.113.234",
4
4
  "description": "abaplint - Command Line Interface",
5
5
  "funding": "https://github.com/sponsors/larshp",
6
6
  "bin": {
@@ -38,7 +38,7 @@
38
38
  },
39
39
  "homepage": "https://abaplint.org",
40
40
  "devDependencies": {
41
- "@abaplint/core": "^2.113.233",
41
+ "@abaplint/core": "^2.113.234",
42
42
  "@types/chai": "^4.3.20",
43
43
  "@types/minimist": "^1.2.5",
44
44
  "@types/mocha": "^10.0.10",