@abaplint/core 2.115.11 → 2.115.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.
@@ -2870,8 +2870,10 @@ declare class FunctionModuleDefinition {
2870
2870
  private name;
2871
2871
  private description;
2872
2872
  private parameters;
2873
+ private moduleType;
2873
2874
  constructor(data: any);
2874
2875
  getParameters(): readonly IFunctionModuleParameter[];
2876
+ getModuleType(): FunctionModuleType | undefined;
2875
2877
  getDescription(): string | undefined;
2876
2878
  getName(): string;
2877
2879
  private parse;
@@ -2884,6 +2886,12 @@ declare enum FunctionModuleParameterDirection {
2884
2886
  tables = "tables"
2885
2887
  }
2886
2888
 
2889
+ declare enum FunctionModuleType {
2890
+ regular = "regular",
2891
+ remote = "remoteEnabled",
2892
+ update = "update"
2893
+ }
2894
+
2887
2895
  declare class FunctionName extends Expression {
2888
2896
  getRunnable(): IStatementRunnable;
2889
2897
  }
@@ -7401,6 +7409,7 @@ declare namespace Types {
7401
7409
  FormDefinition_2 as FormDefinition,
7402
7410
  FunctionModuleParameterDirection,
7403
7411
  IFunctionModuleParameter,
7412
+ FunctionModuleType,
7404
7413
  FunctionModuleDefinition,
7405
7414
  InterfaceDefinition,
7406
7415
  MethodDefinition,
@@ -108,13 +108,14 @@ class StatementParser {
108
108
  lazyUnknown(wa) {
109
109
  const result = [];
110
110
  for (let statement of wa.statements) {
111
- // dont use CALL METHOD, when executing lazy, it easily gives a Move for the last statment if lazy logic is evaluated
111
+ // dont use CALL METHOD, when executing lazy, it easily gives a Move for the last statement if lazy logic is evaluated
112
112
  if (statement.get() instanceof _statement_1.Unknown) {
113
113
  const concat = statement.concatTokens().toUpperCase();
114
114
  if (concat.startsWith("CALL METHOD ") === false
115
115
  && concat.startsWith("RAISE EXCEPTION TYPE ") === false
116
116
  && concat.startsWith("READ TABLE ") === false
117
117
  && concat.startsWith("LOOP AT ") === false
118
+ && concat.startsWith("SELECT SINGLE ") === false
118
119
  && concat.startsWith("CALL FUNCTION ") === false) {
119
120
  for (const { first, second } of this.buildSplits(statement.getTokens())) {
120
121
  if (second.length === 1) {
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.FunctionModuleDefinition = exports.FunctionModuleParameterDirection = void 0;
3
+ exports.FunctionModuleDefinition = exports.FunctionModuleType = exports.FunctionModuleParameterDirection = void 0;
4
4
  const xml_utils_1 = require("../../xml_utils");
5
5
  var FunctionModuleParameterDirection;
6
6
  (function (FunctionModuleParameterDirection) {
@@ -9,6 +9,12 @@ var FunctionModuleParameterDirection;
9
9
  FunctionModuleParameterDirection["changing"] = "changing";
10
10
  FunctionModuleParameterDirection["tables"] = "tables";
11
11
  })(FunctionModuleParameterDirection || (exports.FunctionModuleParameterDirection = FunctionModuleParameterDirection = {}));
12
+ var FunctionModuleType;
13
+ (function (FunctionModuleType) {
14
+ FunctionModuleType["regular"] = "regular";
15
+ FunctionModuleType["remote"] = "remoteEnabled";
16
+ FunctionModuleType["update"] = "update";
17
+ })(FunctionModuleType || (exports.FunctionModuleType = FunctionModuleType = {}));
12
18
  class FunctionModuleDefinition {
13
19
  constructor(data) {
14
20
  this.parse(data);
@@ -16,6 +22,9 @@ class FunctionModuleDefinition {
16
22
  getParameters() {
17
23
  return this.parameters;
18
24
  }
25
+ getModuleType() {
26
+ return this.moduleType;
27
+ }
19
28
  getDescription() {
20
29
  return this.description;
21
30
  }
@@ -30,6 +39,13 @@ class FunctionModuleDefinition {
30
39
  this.name = data.FUNCNAME;
31
40
  this.description = data.SHORT_TEXT;
32
41
  this.parameters = [];
42
+ this.moduleType = FunctionModuleType.regular;
43
+ if (data.REMOTE_CALL === "R") {
44
+ this.moduleType = FunctionModuleType.remote;
45
+ }
46
+ else if (data.UPDATE_TASK !== undefined) {
47
+ this.moduleType = FunctionModuleType.update;
48
+ }
33
49
  if (data.IMPORT) {
34
50
  for (const param of (0, xml_utils_1.xmlToArray)(data.IMPORT.RSIMP)) {
35
51
  if (param.PARAMETER === undefined) {
@@ -74,7 +74,7 @@ class Registry {
74
74
  }
75
75
  static abaplintVersion() {
76
76
  // magic, see build script "version.sh"
77
- return "2.115.11";
77
+ return "2.115.13";
78
78
  }
79
79
  getDDICReferences() {
80
80
  return this.ddicReferences;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/core",
3
- "version": "2.115.11",
3
+ "version": "2.115.13",
4
4
  "description": "abaplint - Core API",
5
5
  "main": "build/src/index.js",
6
6
  "typings": "build/abaplint.d.ts",