@abaplint/core 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.
@@ -25,7 +25,12 @@ class ReduceBody {
25
25
  scope.push(_scope_type_1.ScopeType.Let, "LET", node.getFirstToken().getStart(), filename);
26
26
  scoped = true;
27
27
  }
28
- const found = new inline_field_definition_1.InlineFieldDefinition().runSyntax(i, scope, filename, targetType);
28
+ let foundType = targetType;
29
+ const source = i.findDirectExpression(Expressions.Source);
30
+ if (source) {
31
+ foundType = new source_1.Source().runSyntax(source, scope, filename, targetType);
32
+ }
33
+ const found = new inline_field_definition_1.InlineFieldDefinition().runSyntax(i, scope, filename, foundType);
29
34
  if (found && first === undefined) {
30
35
  first = found;
31
36
  }
@@ -17,7 +17,7 @@ class StringTemplate {
17
17
  }
18
18
  else if ((typeUtils.isCharLike(type) === false && typeUtils.isHexLike(type) === false)
19
19
  || type instanceof basic_1.StructureType) {
20
- throw new Error("Not character like, " + type.constructor.name);
20
+ throw new Error("String template, not character like, " + type.constructor.name);
21
21
  }
22
22
  const format = templateSource.findDirectExpression(Expressions.StringTemplateFormatting);
23
23
  const formatConcat = format === null || format === void 0 ? void 0 : format.concatTokens();
@@ -9,10 +9,17 @@ class AbstractFile {
9
9
  return this.filename;
10
10
  }
11
11
  baseName() {
12
- const first = this.getFilename().split("\\");
13
- const base1 = first[first.length - 1];
14
- const base2 = base1.split("/");
15
- return base2[base2.length - 1];
12
+ let name = this.getFilename();
13
+ let index = name.lastIndexOf("\\");
14
+ if (index) {
15
+ index = index + 1;
16
+ }
17
+ name = name.substring(index);
18
+ index = name.lastIndexOf("/");
19
+ if (index) {
20
+ index = index + 1;
21
+ }
22
+ return name.substring(index);
16
23
  }
17
24
  getObjectType() {
18
25
  var _a;
@@ -65,7 +65,7 @@ class Registry {
65
65
  }
66
66
  static abaplintVersion() {
67
67
  // magic, see build script "version.sh"
68
- return "2.102.66";
68
+ return "2.102.67";
69
69
  }
70
70
  getDDICReferences() {
71
71
  return this.ddicReferences;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/core",
3
- "version": "2.102.66",
3
+ "version": "2.102.67",
4
4
  "description": "abaplint - Core API",
5
5
  "main": "build/src/index.js",
6
6
  "typings": "build/abaplint.d.ts",