@abaplint/cli 2.113.244 → 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 +31 -16
  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
  }
@@ -24204,7 +24205,6 @@ class BasicTypes {
24204
24205
  return undefined;
24205
24206
  }
24206
24207
  resolveLikeName(node, headerLogic = true) {
24207
- var _a;
24208
24208
  if (node === undefined) {
24209
24209
  return undefined;
24210
24210
  }
@@ -24250,7 +24250,12 @@ class BasicTypes {
24250
24250
  this.input.scope.addReference(chain === null || chain === void 0 ? void 0 : chain.getFirstToken(), found, _reference_1.ReferenceType.TypeReference, this.input.filename);
24251
24251
  }
24252
24252
  if (type === undefined) {
24253
- type = (_a = this.input.scope.getDDIC().lookupNoVoid(name)) === null || _a === void 0 ? void 0 : _a.type;
24253
+ const found = this.input.scope.getDDIC().lookupNoVoid(name);
24254
+ if (found !== undefined) {
24255
+ const using = { filename: this.input.filename, token: chain.getFirstToken(), object: found.object };
24256
+ this.input.scope.getDDICReferences().addUsing(this.input.scope.getParentObj(), using);
24257
+ }
24258
+ type = found === null || found === void 0 ? void 0 : found.type;
24254
24259
  }
24255
24260
  if (type === undefined && this.input.scope.isAnyOO() === false && this.input.scope.getDDIC().inErrorNamespace(name) === false) {
24256
24261
  this.input.scope.addReference(chain.getChildren()[0].getFirstToken(), undefined, _reference_1.ReferenceType.VoidType, this.input.filename);
@@ -28948,7 +28953,7 @@ class SQLForAllEntries {
28948
28953
  }
28949
28954
  if (s) {
28950
28955
  const type = source_1.Source.runSyntax(s, input);
28951
- if (type instanceof basic_1.VoidType) {
28956
+ if (type instanceof basic_1.VoidType || type instanceof basic_1.UnknownType) {
28952
28957
  return;
28953
28958
  }
28954
28959
  if (!(type instanceof basic_1.TableType)) {
@@ -31300,14 +31305,21 @@ class Convert {
31300
31305
  for (const s of node.findDirectExpressions(Expressions.Source)) {
31301
31306
  source_1.Source.runSyntax(s, input);
31302
31307
  }
31303
- const timeTarget = node.findExpressionAfterToken("TIME");
31304
- if ((timeTarget === null || timeTarget === void 0 ? void 0 : timeTarget.get()) instanceof Expressions.Target) {
31305
- const inline = timeTarget === null || timeTarget === void 0 ? void 0 : timeTarget.findDirectExpression(Expressions.InlineData);
31306
- if (inline) {
31307
- inline_data_1.InlineData.runSyntax(inline, input, new basic_1.TimeType());
31308
- }
31309
- else {
31310
- 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
+ }
31311
31323
  }
31312
31324
  }
31313
31325
  const dateTarget = node.findExpressionAfterToken("DATE");
@@ -34066,6 +34078,9 @@ class ReadTable {
34066
34078
  input.issues.push((0, _syntax_input_1.syntaxIssue)(input, node.getFirstToken(), message));
34067
34079
  return;
34068
34080
  }
34081
+ else if (sourceType instanceof basic_1.UnknownType) {
34082
+ // do nothing, ok
34083
+ }
34069
34084
  else if (!(sourceType instanceof basic_1.TableType) && !(sourceType instanceof basic_1.VoidType)) {
34070
34085
  const message = "Read table, not a table type";
34071
34086
  input.issues.push((0, _syntax_input_1.syntaxIssue)(input, node.getFirstToken(), message));
@@ -54889,7 +54904,7 @@ class Registry {
54889
54904
  }
54890
54905
  static abaplintVersion() {
54891
54906
  // magic, see build script "version.sh"
54892
- return "2.113.244";
54907
+ return "2.113.246";
54893
54908
  }
54894
54909
  getDDICReferences() {
54895
54910
  return this.ddicReferences;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/cli",
3
- "version": "2.113.244",
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.244",
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",