@abaplint/runtime 2.13.6 → 2.13.8

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.
@@ -19,10 +19,25 @@ function assign(input) {
19
19
  const split = input.dynamicName.split(/->|-/);
20
20
  split.shift();
21
21
  for (const s of split) {
22
- if (s === "*") {
22
+ const upperS = s.toUpperCase().trimEnd();
23
+ if (upperS === "*") {
23
24
  // @ts-ignore
24
25
  input.dynamicSource = input.dynamicSource.dereference();
25
26
  }
27
+ else if (upperS === "TABLE_LINE" && input.dynamicSource instanceof types_1.DataReference) {
28
+ // @ts-ignore
29
+ input.dynamicSource = input.dynamicSource.getPointer();
30
+ if (input.dynamicSource instanceof types_1.Table) {
31
+ const options = input.dynamicSource.getOptions();
32
+ if (options?.withHeader === true) {
33
+ // @ts-ignore
34
+ input.dynamicSource = input.dynamicSource.getHeader();
35
+ }
36
+ else {
37
+ input.dynamicSource = undefined;
38
+ }
39
+ }
40
+ }
26
41
  else {
27
42
  // @ts-ignore
28
43
  const source = input.dynamicSource.get();
@@ -30,6 +45,7 @@ function assign(input) {
30
45
  abap.builtin.sy.get().subrc.set(4);
31
46
  return;
32
47
  }
48
+ // @ts-ignore
33
49
  input.dynamicSource = source[s.toLowerCase().replace(/[~\\/]/g, "$")];
34
50
  }
35
51
  }
@@ -149,6 +149,9 @@ function createData(target, options) {
149
149
  case "UTCLONG":
150
150
  target.assign(new types_1.UTCLong());
151
151
  break;
152
+ case "DECFLOAT34":
153
+ target.assign(new types_1.DecFloat34());
154
+ break;
152
155
  default:
153
156
  if (abap.DDIC[options.typeName.trimEnd()]) {
154
157
  target.assign(abap.DDIC[options.typeName.trimEnd()].type().clone());
@@ -27,7 +27,11 @@ function find(input, options) {
27
27
  s = s.replace(/\|/g, "\\|");
28
28
  s = s.replace(/\*/g, "\\*");
29
29
  s = s.replace(/\+/g, "\\+");
30
- s = new RegExp(s, "g");
30
+ let flags = "g";
31
+ if (options.ignoringCase === true) {
32
+ flags += "i";
33
+ }
34
+ s = new RegExp(s, flags);
31
35
  }
32
36
  else if (options.regex || options.pcre) {
33
37
  s = abap_regex_1.ABAPRegExp.getRegex({ all: true, ...options });
@@ -7,7 +7,8 @@ import { Structure } from "./structure";
7
7
  import { Float } from "./float";
8
8
  import { Hex } from "./hex";
9
9
  import { Integer8 } from "./integer8";
10
- type PointerType = INumeric | Table | ICharacter | ABAPObject | Integer8 | undefined | Structure | Float;
10
+ import { DecFloat34 } from "./decfloat34";
11
+ type PointerType = INumeric | Table | ICharacter | ABAPObject | Integer8 | undefined | Structure | Float | DecFloat34;
11
12
  export declare class DataReference {
12
13
  private pointer;
13
14
  private readonly type;
@@ -22,7 +23,7 @@ export declare class DataReference {
22
23
  get(): any;
23
24
  array(): any;
24
25
  getArrayLength(): any;
25
- set(value: any): void | Table | Structure | ABAPObject | Float | Integer8 | this;
26
+ set(value: any): void | Table | Structure | ABAPObject | Float | Integer8 | this | DecFloat34;
26
27
  getOffset(input: {
27
28
  offset?: number | INumeric | Hex;
28
29
  length?: number | INumeric | Hex;
@@ -18,7 +18,7 @@ export declare class FieldSymbol {
18
18
  unassign(): void;
19
19
  isAssigned(): boolean;
20
20
  getPointer(): any;
21
- dereference(): INumeric | Table | ICharacter | Structure | ABAPObject | Float | import("./integer8").Integer8 | undefined;
21
+ dereference(): INumeric | Table | ICharacter | Structure | ABAPObject | Float | import("./integer8").Integer8 | import("./decfloat34").DecFloat34 | undefined;
22
22
  clear(): void | Structure | undefined;
23
23
  get(): any;
24
24
  appendInitial(): import("./table").TableRowType | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/runtime",
3
- "version": "2.13.6",
3
+ "version": "2.13.8",
4
4
  "description": "Transpiler - Runtime",
5
5
  "main": "build/src/index.js",
6
6
  "typings": "build/src/index.d.ts",