@abaplint/cli 2.102.66 → 2.102.67

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 +19 -7
  2. package/package.json +2 -2
package/build/cli.js CHANGED
@@ -25682,7 +25682,12 @@ class ReduceBody {
25682
25682
  scope.push(_scope_type_1.ScopeType.Let, "LET", node.getFirstToken().getStart(), filename);
25683
25683
  scoped = true;
25684
25684
  }
25685
- const found = new inline_field_definition_1.InlineFieldDefinition().runSyntax(i, scope, filename, targetType);
25685
+ let foundType = targetType;
25686
+ const source = i.findDirectExpression(Expressions.Source);
25687
+ if (source) {
25688
+ foundType = new source_1.Source().runSyntax(source, scope, filename, targetType);
25689
+ }
25690
+ const found = new inline_field_definition_1.InlineFieldDefinition().runSyntax(i, scope, filename, foundType);
25686
25691
  if (found && first === undefined) {
25687
25692
  first = found;
25688
25693
  }
@@ -26571,7 +26576,7 @@ class StringTemplate {
26571
26576
  }
26572
26577
  else if ((typeUtils.isCharLike(type) === false && typeUtils.isHexLike(type) === false)
26573
26578
  || type instanceof basic_1.StructureType) {
26574
- throw new Error("Not character like, " + type.constructor.name);
26579
+ throw new Error("String template, not character like, " + type.constructor.name);
26575
26580
  }
26576
26581
  const format = templateSource.findDirectExpression(Expressions.StringTemplateFormatting);
26577
26582
  const formatConcat = format === null || format === void 0 ? void 0 : format.concatTokens();
@@ -40146,10 +40151,17 @@ class AbstractFile {
40146
40151
  return this.filename;
40147
40152
  }
40148
40153
  baseName() {
40149
- const first = this.getFilename().split("\\");
40150
- const base1 = first[first.length - 1];
40151
- const base2 = base1.split("/");
40152
- return base2[base2.length - 1];
40154
+ let name = this.getFilename();
40155
+ let index = name.lastIndexOf("\\");
40156
+ if (index) {
40157
+ index = index + 1;
40158
+ }
40159
+ name = name.substring(index);
40160
+ index = name.lastIndexOf("/");
40161
+ if (index) {
40162
+ index = index + 1;
40163
+ }
40164
+ return name.substring(index);
40153
40165
  }
40154
40166
  getObjectType() {
40155
40167
  var _a;
@@ -50156,7 +50168,7 @@ class Registry {
50156
50168
  }
50157
50169
  static abaplintVersion() {
50158
50170
  // magic, see build script "version.sh"
50159
- return "2.102.66";
50171
+ return "2.102.67";
50160
50172
  }
50161
50173
  getDDICReferences() {
50162
50174
  return this.ddicReferences;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/cli",
3
- "version": "2.102.66",
3
+ "version": "2.102.67",
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.102.66",
41
+ "@abaplint/core": "^2.102.67",
42
42
  "@types/chai": "^4.3.9",
43
43
  "@types/glob": "^7.2.0",
44
44
  "@types/minimist": "^1.2.4",