@abaplint/cli 2.113.245 → 2.113.246

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 +21 -13
  2. package/package.json +2 -2
package/build/cli.js CHANGED
@@ -11831,17 +11831,18 @@ class Convert {
11831
11831
  const intoTime = (0, combi_1.seq)("TIME", expressions_1.Target);
11832
11832
  const intoDate = (0, combi_1.seq)("DATE", expressions_1.Target);
11833
11833
  const into = (0, combi_1.seq)("INTO", (0, combi_1.per)(intoTime, intoDate));
11834
- const daylight = (0, combi_1.seq)("DAYLIGHT SAVING TIME", expressions_1.Source);
11834
+ const daylightSource = (0, combi_1.seq)("DAYLIGHT SAVING TIME", expressions_1.Source);
11835
+ const daylightTarget = (0, combi_1.seq)("DAYLIGHT SAVING TIME", expressions_1.Target);
11835
11836
  const zone = (0, combi_1.seq)("TIME ZONE", expressions_1.Source);
11836
- const time = (0, combi_1.seq)("TIME STAMP", expressions_1.Source, (0, combi_1.per)(zone, into, daylight));
11837
+ const time = (0, combi_1.seq)("TIME STAMP", expressions_1.Source, (0, combi_1.per)(zone, into, daylightTarget));
11837
11838
  const dat = (0, combi_1.seq)("DATE", expressions_1.Source);
11838
11839
  const tim = (0, combi_1.seq)("TIME", expressions_1.Source);
11839
11840
  const stamp = (0, combi_1.seq)("INTO TIME STAMP", expressions_1.Target);
11840
11841
  const intoutc = (0, combi_1.ver)(version_1.Version.v754, (0, combi_1.seq)("INTO UTCLONG", expressions_1.Target));
11841
11842
  const invert = (0, combi_1.seq)("INTO INVERTED-DATE", expressions_1.Target);
11842
- const date = (0, combi_1.seq)((0, combi_1.per)(dat, tim), (0, combi_1.per)(daylight, stamp, zone, invert, intoutc));
11843
+ const date = (0, combi_1.seq)((0, combi_1.per)(dat, tim), (0, combi_1.per)(daylightSource, stamp, zone, invert, intoutc));
11843
11844
  const inv = (0, combi_1.seq)("INVERTED-DATE", expressions_1.Source, "INTO DATE", expressions_1.Target);
11844
- const utclong = (0, combi_1.ver)(version_1.Version.v754, (0, combi_1.seq)("UTCLONG", expressions_1.Source, (0, combi_1.per)(zone, into, daylight)));
11845
+ const utclong = (0, combi_1.ver)(version_1.Version.v754, (0, combi_1.seq)("UTCLONG", expressions_1.Source, (0, combi_1.per)(zone, into, daylightSource)));
11845
11846
  return (0, combi_1.seq)("CONVERT", (0, combi_1.alt)(time, date, inv, utclong));
11846
11847
  }
11847
11848
  }
@@ -31304,14 +31305,21 @@ class Convert {
31304
31305
  for (const s of node.findDirectExpressions(Expressions.Source)) {
31305
31306
  source_1.Source.runSyntax(s, input);
31306
31307
  }
31307
- const timeTarget = node.findExpressionAfterToken("TIME");
31308
- if ((timeTarget === null || timeTarget === void 0 ? void 0 : timeTarget.get()) instanceof Expressions.Target) {
31309
- const inline = timeTarget === null || timeTarget === void 0 ? void 0 : timeTarget.findDirectExpression(Expressions.InlineData);
31310
- if (inline) {
31311
- inline_data_1.InlineData.runSyntax(inline, input, new basic_1.TimeType());
31312
- }
31313
- else {
31314
- target_1.Target.runSyntax(timeTarget, input);
31308
+ const timeTargets = node.findExpressionsAfterToken("TIME");
31309
+ for (const timeTarget of timeTargets) {
31310
+ const concat = node.concatTokens().toUpperCase();
31311
+ if ((timeTarget === null || timeTarget === void 0 ? void 0 : timeTarget.get()) instanceof Expressions.Target) {
31312
+ const inline = timeTarget === null || timeTarget === void 0 ? void 0 : timeTarget.findDirectExpression(Expressions.InlineData);
31313
+ if (inline) {
31314
+ let targetType = new basic_1.TimeType();
31315
+ if (concat.includes("DAYLIGHT SAVING TIME " + inline.concatTokens().toUpperCase())) {
31316
+ targetType = new basic_1.CharacterType(1);
31317
+ }
31318
+ inline_data_1.InlineData.runSyntax(inline, input, targetType);
31319
+ }
31320
+ else {
31321
+ target_1.Target.runSyntax(timeTarget, input);
31322
+ }
31315
31323
  }
31316
31324
  }
31317
31325
  const dateTarget = node.findExpressionAfterToken("DATE");
@@ -54896,7 +54904,7 @@ class Registry {
54896
54904
  }
54897
54905
  static abaplintVersion() {
54898
54906
  // magic, see build script "version.sh"
54899
- return "2.113.245";
54907
+ return "2.113.246";
54900
54908
  }
54901
54909
  getDDICReferences() {
54902
54910
  return this.ddicReferences;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/cli",
3
- "version": "2.113.245",
3
+ "version": "2.113.246",
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.113.245",
41
+ "@abaplint/core": "^2.113.246",
42
42
  "@types/chai": "^4.3.20",
43
43
  "@types/minimist": "^1.2.5",
44
44
  "@types/mocha": "^10.0.10",