@abaplint/core 2.93.31 → 2.93.32

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.
@@ -4,13 +4,19 @@ exports.GetReference = void 0;
4
4
  const Expressions = require("../../2_statements/expressions");
5
5
  const source_1 = require("../expressions/source");
6
6
  const target_1 = require("../expressions/target");
7
+ const inline_data_1 = require("../expressions/inline_data");
8
+ const basic_1 = require("../../types/basic");
7
9
  class GetReference {
8
10
  runSyntax(node, scope, filename) {
9
- for (const s of node.findDirectExpressions(Expressions.Source)) {
10
- new source_1.Source().runSyntax(s, scope, filename);
11
+ const s = node.findDirectExpression(Expressions.Source);
12
+ const type = new source_1.Source().runSyntax(s, scope, filename);
13
+ const target = node.findDirectExpression(Expressions.Target);
14
+ const inline = target === null || target === void 0 ? void 0 : target.findDirectExpression(Expressions.InlineData);
15
+ if (inline) {
16
+ new inline_data_1.InlineData().runSyntax(inline, scope, filename, type ? new basic_1.DataReference(type) : undefined);
11
17
  }
12
- for (const t of node.findDirectExpressions(Expressions.Target)) {
13
- new target_1.Target().runSyntax(t, scope, filename);
18
+ else if (target) {
19
+ new target_1.Target().runSyntax(target, scope, filename);
14
20
  }
15
21
  }
16
22
  }
@@ -63,7 +63,7 @@ class Registry {
63
63
  }
64
64
  static abaplintVersion() {
65
65
  // magic, see build script "version.sh"
66
- return "2.93.31";
66
+ return "2.93.32";
67
67
  }
68
68
  getDDICReferences() {
69
69
  return this.references;
@@ -1228,11 +1228,11 @@ CONSTANTS: BEGIN OF ${structureName},\n`;
1228
1228
  if (index === undefined) {
1229
1229
  return undefined;
1230
1230
  }
1231
- let uniqueName = this.uniqueName(low.getFirstToken().getStart(), lowFile.getFilename(), highSyntax);
1231
+ let uniqueName = this.uniqueName(high.getFirstToken().getStart(), lowFile.getFilename(), highSyntax);
1232
1232
  uniqueName = `<${uniqueName}>`;
1233
1233
  const tName = target.concatTokens().split("[")[0];
1234
1234
  const condition = this.tableCondition(tableExpression);
1235
- const tabixBackup = this.uniqueName(low.getFirstToken().getStart(), lowFile.getFilename(), highSyntax);
1235
+ const tabixBackup = this.uniqueName(high.getFirstToken().getStart(), lowFile.getFilename(), highSyntax);
1236
1236
  const indentation = " ".repeat(high.getFirstToken().getStart().getCol() - 1);
1237
1237
  // restore tabix before exeption
1238
1238
  const code = `FIELD-SYMBOLS ${uniqueName} LIKE LINE OF ${tName}.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/core",
3
- "version": "2.93.31",
3
+ "version": "2.93.32",
4
4
  "description": "abaplint - Core API",
5
5
  "main": "build/src/index.js",
6
6
  "typings": "build/abaplint.d.ts",
@@ -48,7 +48,7 @@
48
48
  "devDependencies": {
49
49
  "@microsoft/api-extractor": "^7.31.2",
50
50
  "@types/chai": "^4.3.3",
51
- "@types/mocha": "^9.1.1",
51
+ "@types/mocha": "^10.0.0",
52
52
  "@types/node": "^18.7.23",
53
53
  "chai": "^4.3.6",
54
54
  "eslint": "^8.24.0",