@abaplint/cli 2.113.84 → 2.113.86

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 -16
  2. package/package.json +6 -6
package/build/cli.js CHANGED
@@ -10201,7 +10201,7 @@ class Assign {
10201
10201
  const decimals = (0, combi_1.seq)("DECIMALS", expressions_1.Source);
10202
10202
  const casting = (0, combi_1.seq)("CASTING", (0, combi_1.opt)((0, combi_1.alt)(like, handle, (0, combi_1.per)(type, decimals))));
10203
10203
  const obsoleteType = (0, combi_1.seq)("TYPE", expressions_1.Source, (0, combi_1.optPrio)(decimals));
10204
- const ret = (0, combi_1.seq)("ASSIGN", (0, combi_1.opt)((0, combi_1.seq)(expressions_1.Target, "INCREMENT")), expressions_1.AssignSource, "TO", expressions_1.FSTarget, (0, combi_1.opt)((0, combi_1.altPrio)(casting, obsoleteType)), (0, combi_1.opt)(range), (0, combi_1.opt)((0, combi_1.ver)(version_1.Version.v757, "ELSE UNASSIGN")));
10204
+ const ret = (0, combi_1.seq)("ASSIGN", (0, combi_1.opt)((0, combi_1.seq)(expressions_1.Target, "INCREMENT")), expressions_1.AssignSource, "TO", expressions_1.FSTarget, (0, combi_1.opt)((0, combi_1.altPrio)(casting, obsoleteType, decimals)), (0, combi_1.opt)(range), (0, combi_1.opt)((0, combi_1.ver)(version_1.Version.v757, "ELSE UNASSIGN")));
10205
10205
  return ret;
10206
10206
  }
10207
10207
  }
@@ -10681,7 +10681,7 @@ const version_1 = __webpack_require__(/*! ../../../version */ "./node_modules/@a
10681
10681
  class CallOLE {
10682
10682
  getMatcher() {
10683
10683
  const rc = (0, combi_1.seq)("=", expressions_1.Target);
10684
- const ret = (0, combi_1.seq)("CALL METHOD OF", expressions_1.Source, expressions_1.Source, (0, combi_1.opt)(rc), (0, combi_1.opt)("NO FLUSH"), (0, combi_1.opt)("QUEUEONLY"), (0, combi_1.opt)(expressions_1.OLEExporting));
10684
+ const ret = (0, combi_1.seq)("CALL METHOD OF", expressions_1.Source, expressions_1.Source, (0, combi_1.opt)(rc), (0, combi_1.opt)("NO FLUSH"), (0, combi_1.opt)("QUEUE-ONLY"), (0, combi_1.opt)(expressions_1.OLEExporting));
10685
10685
  return (0, combi_1.verNot)(version_1.Version.Cloud, ret);
10686
10686
  }
10687
10687
  }
@@ -13105,9 +13105,12 @@ exports.Field = void 0;
13105
13105
  const combi_1 = __webpack_require__(/*! ../combi */ "./node_modules/@abaplint/core/build/src/abap/2_statements/combi.js");
13106
13106
  const expressions_1 = __webpack_require__(/*! ../expressions */ "./node_modules/@abaplint/core/build/src/abap/2_statements/expressions/index.js");
13107
13107
  const version_1 = __webpack_require__(/*! ../../../version */ "./node_modules/@abaplint/core/build/src/version.js");
13108
+ const tokens_1 = __webpack_require__(/*! ../../1_lexer/tokens */ "./node_modules/@abaplint/core/build/src/abap/1_lexer/tokens/index.js");
13108
13109
  class Field {
13109
13110
  getMatcher() {
13110
- const ret = (0, combi_1.seq)("FIELD", expressions_1.FieldChain, (0, combi_1.opt)((0, combi_1.seq)("MODULE", expressions_1.FormName, (0, combi_1.opt)((0, combi_1.alt)("ON INPUT", "ON REQUEST")))));
13111
+ const module = (0, combi_1.seq)("MODULE", expressions_1.FormName, (0, combi_1.opt)((0, combi_1.alt)("ON INPUT", "ON REQUEST")));
13112
+ const values = (0, combi_1.seq)("VALUES", (0, combi_1.tok)(tokens_1.WParenLeft), "BETWEEN", expressions_1.Constant, "AND", expressions_1.Constant, (0, combi_1.tok)(tokens_1.ParenRightW));
13113
+ const ret = (0, combi_1.seq)("FIELD", expressions_1.FieldChain, (0, combi_1.opt)((0, combi_1.alt)(module, values)));
13111
13114
  return (0, combi_1.verNot)(version_1.Version.Cloud, ret);
13112
13115
  }
13113
13116
  }
@@ -13750,7 +13753,7 @@ const expressions_1 = __webpack_require__(/*! ../expressions */ "./node_modules/
13750
13753
  const version_1 = __webpack_require__(/*! ../../../version */ "./node_modules/@abaplint/core/build/src/version.js");
13751
13754
  class GetProperty {
13752
13755
  getMatcher() {
13753
- const ret = (0, combi_1.seq)("GET PROPERTY OF", expressions_1.FieldSub, expressions_1.Source, "=", expressions_1.Source, (0, combi_1.opt)("NO FLUSH"), (0, combi_1.opt)("QUEUEONLY"), (0, combi_1.opt)(expressions_1.OLEExporting));
13756
+ const ret = (0, combi_1.seq)("GET PROPERTY OF", expressions_1.FieldSub, expressions_1.Source, "=", expressions_1.Source, (0, combi_1.opt)("NO FLUSH"), (0, combi_1.opt)("QUEUE-ONLY"), (0, combi_1.opt)(expressions_1.OLEExporting));
13754
13757
  return (0, combi_1.verNot)(version_1.Version.Cloud, ret);
13755
13758
  }
13756
13759
  }
@@ -15030,7 +15033,7 @@ class ModifyLine {
15030
15033
  getMatcher() {
15031
15034
  const onOff = (0, combi_1.alt)("ON", "OFF");
15032
15035
  const eq = (0, combi_1.seq)("=", expressions_1.Source);
15033
- const form = (0, combi_1.seq)((0, combi_1.alt)("INVERSE", "INPUT", "COLOR"), (0, combi_1.alt)(eq, onOff));
15036
+ const form = (0, combi_1.seq)((0, combi_1.alt)("INVERSE", "INPUT", "COLOR", "HOTSPOT"), (0, combi_1.alt)(eq, onOff));
15034
15037
  const from = (0, combi_1.seq)("FROM", expressions_1.Source);
15035
15038
  const value = (0, combi_1.seq)("FIELD VALUE", (0, combi_1.plus)((0, combi_1.seq)(expressions_1.Source, (0, combi_1.optPrio)(from))));
15036
15039
  const format = (0, combi_1.seq)("FIELD FORMAT", expressions_1.Source, (0, combi_1.opt)(form));
@@ -15091,7 +15094,7 @@ const version_1 = __webpack_require__(/*! ../../../version */ "./node_modules/@a
15091
15094
  class Module {
15092
15095
  getMatcher() {
15093
15096
  const sw = (0, combi_1.seq)("SWITCH", expressions_1.NamespaceSimpleName);
15094
- const ret = (0, combi_1.seq)("MODULE", expressions_1.FormName, (0, combi_1.opt)((0, combi_1.alt)("INPUT", "OUTPUT", "ON CHAIN-REQUEST", "ON CHAIN-INPUT", sw)));
15097
+ const ret = (0, combi_1.seq)("MODULE", expressions_1.FormName, (0, combi_1.opt)((0, combi_1.alt)("INPUT", "OUTPUT", "ON CHAIN-REQUEST", "ON CHAIN-INPUT", "AT EXIT-COMMAND", sw)));
15095
15098
  return (0, combi_1.verNot)(version_1.Version.Cloud, ret);
15096
15099
  }
15097
15100
  }
@@ -16375,7 +16378,8 @@ class ScrollList {
16375
16378
  const line = (0, combi_1.seq)("LINE", expressions_1.Source);
16376
16379
  const column = (0, combi_1.seq)("TO COLUMN", expressions_1.Source);
16377
16380
  const to = (0, combi_1.seq)("TO", (0, combi_1.alt)("FIRST PAGE", "LAST PAGE", (0, combi_1.seq)("PAGE", expressions_1.Source)));
16378
- const ret = (0, combi_1.seq)("SCROLL LIST", (0, combi_1.per)(index, (0, combi_1.alt)(to, "BACKWARD", "FORWARD"), (0, combi_1.seq)((0, combi_1.alt)("LEFT", "RIGHT"), (0, combi_1.opt)((0, combi_1.seq)("BY", expressions_1.Source, "PLACES"))), column, line));
16381
+ const pages = (0, combi_1.seq)(expressions_1.Source, "PAGES");
16382
+ const ret = (0, combi_1.seq)("SCROLL LIST", (0, combi_1.per)(index, (0, combi_1.seq)((0, combi_1.alt)(to, "BACKWARD", "FORWARD"), (0, combi_1.opt)(pages)), (0, combi_1.seq)((0, combi_1.alt)("LEFT", "RIGHT"), (0, combi_1.opt)((0, combi_1.seq)("BY", expressions_1.Source, "PLACES"))), column, line));
16379
16383
  return (0, combi_1.verNot)(version_1.Version.Cloud, ret);
16380
16384
  }
16381
16385
  }
@@ -32004,12 +32008,11 @@ class Loop {
32004
32008
  const message = "No source type determined";
32005
32009
  input.issues.push((0, _syntax_input_1.syntaxIssue)(input, node.getFirstToken(), message));
32006
32010
  }
32007
- return;
32008
32011
  }
32009
32012
  else if (sourceType instanceof basic_1.UnknownType) {
32010
32013
  const message = "Loop, not a table type, " + sourceType.getError();
32011
32014
  input.issues.push((0, _syntax_input_1.syntaxIssue)(input, node.getFirstToken(), message));
32012
- return;
32015
+ sourceType = new basic_1.VoidType("Loop, not a table type");
32013
32016
  }
32014
32017
  else if (sourceType instanceof basic_1.TableType
32015
32018
  && target === undefined
@@ -32017,7 +32020,6 @@ class Loop {
32017
32020
  && node.getChildren().length === 4) {
32018
32021
  const message = "Loop, no header line";
32019
32022
  input.issues.push((0, _syntax_input_1.syntaxIssue)(input, node.getFirstToken(), message));
32020
- return;
32021
32023
  }
32022
32024
  else if (!(sourceType instanceof basic_1.TableType)
32023
32025
  && !(sourceType instanceof basic_1.AnyType)
@@ -32026,14 +32028,12 @@ class Loop {
32026
32028
  && concat.startsWith("LOOP AT GROUP ") === false) {
32027
32029
  const message = "Loop, not a table type";
32028
32030
  input.issues.push((0, _syntax_input_1.syntaxIssue)(input, node.getFirstToken(), message));
32029
- return;
32030
32031
  }
32031
32032
  else if (loopTarget === undefined
32032
32033
  && sourceType instanceof basic_1.TableType
32033
32034
  && sourceType.isWithHeader() === false) {
32034
32035
  const message = "Loop, no header";
32035
32036
  input.issues.push((0, _syntax_input_1.syntaxIssue)(input, node.getFirstToken(), message));
32036
- return;
32037
32037
  }
32038
32038
  const targetConcat = loopTarget === null || loopTarget === void 0 ? void 0 : loopTarget.concatTokens().toUpperCase();
32039
32039
  if (sourceType instanceof basic_1.TableType) {
@@ -45533,7 +45533,10 @@ class ABAPObject extends _abstract_object_1.AbstractObject {
45533
45533
  }
45534
45534
  // uri fallback,
45535
45535
  for (const file of this.getABAPFiles()) {
45536
- if (file.getFilename().endsWith(".abap")) {
45536
+ if (file.getFilename().includes(".prog.screen_")) {
45537
+ continue;
45538
+ }
45539
+ else if (file.getFilename().endsWith(".abap")) {
45537
45540
  return file;
45538
45541
  }
45539
45542
  }
@@ -53315,6 +53318,7 @@ class Indent {
53315
53318
  || type instanceof Statements.EndModule
53316
53319
  || type instanceof Statements.EndSelect
53317
53320
  || type instanceof Statements.EndMethod
53321
+ || type instanceof Statements.EndChain
53318
53322
  || type instanceof Statements.EndAt
53319
53323
  || type instanceof Statements.Else
53320
53324
  || type instanceof Statements.EndExec
@@ -53423,6 +53427,7 @@ class Indent {
53423
53427
  || type instanceof Statements.Else
53424
53428
  || type instanceof Statements.ElseIf
53425
53429
  || type instanceof Statements.MethodImplementation
53430
+ || type instanceof Statements.Chain
53426
53431
  || type instanceof Statements.TestInjection
53427
53432
  || type instanceof Statements.TestSeam
53428
53433
  || (this.options.selectionScreenBlockIndentation === true
@@ -53628,7 +53633,7 @@ class Registry {
53628
53633
  }
53629
53634
  static abaplintVersion() {
53630
53635
  // magic, see build script "version.sh"
53631
- return "2.113.84";
53636
+ return "2.113.86";
53632
53637
  }
53633
53638
  getDDICReferences() {
53634
53639
  return this.ddicReferences;
@@ -88948,11 +88953,11 @@ function _supportsColor(haveStream, {streamIsTTY, sniffFlags = true} = {}) {
88948
88953
  }
88949
88954
 
88950
88955
  if ('CI' in env) {
88951
- if ('GITHUB_ACTIONS' in env || 'GITEA_ACTIONS' in env) {
88956
+ if (['GITHUB_ACTIONS', 'GITEA_ACTIONS', 'CIRCLECI'].some(key => key in env)) {
88952
88957
  return 3;
88953
88958
  }
88954
88959
 
88955
- if (['TRAVIS', 'CIRCLECI', 'APPVEYOR', 'GITLAB_CI', 'BUILDKITE', 'DRONE'].some(sign => sign in env) || env.CI_NAME === 'codeship') {
88960
+ if (['TRAVIS', 'APPVEYOR', 'GITLAB_CI', 'BUILDKITE', 'DRONE'].some(sign => sign in env) || env.CI_NAME === 'codeship') {
88956
88961
  return 1;
88957
88962
  }
88958
88963
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/cli",
3
- "version": "2.113.84",
3
+ "version": "2.113.86",
4
4
  "description": "abaplint - Command Line Interface",
5
5
  "funding": "https://github.com/sponsors/larshp",
6
6
  "bin": {
@@ -38,25 +38,25 @@
38
38
  },
39
39
  "homepage": "https://abaplint.org",
40
40
  "devDependencies": {
41
- "@abaplint/core": "^2.113.84",
41
+ "@abaplint/core": "^2.113.86",
42
42
  "@types/chai": "^4.3.20",
43
43
  "@types/glob": "^8.1.0",
44
44
  "@types/minimist": "^1.2.5",
45
45
  "@types/mocha": "^10.0.10",
46
- "@types/node": "^22.10.2",
46
+ "@types/node": "^22.10.5",
47
47
  "@types/progress": "^2.0.7",
48
48
  "chai": "^4.5.0",
49
- "chalk": "^5.3.0",
49
+ "chalk": "^5.4.1",
50
50
  "eslint": "^9.17.0",
51
51
  "glob": "^7.2.3",
52
52
  "json5": "^2.2.3",
53
- "memfs": "^4.15.0",
53
+ "memfs": "^4.15.3",
54
54
  "minimist": "^1.2.8",
55
55
  "mocha": "^11.0.1",
56
56
  "progress": "^2.0.3",
57
57
  "typescript": "^5.7.2",
58
58
  "webpack": "^5.97.1",
59
- "webpack-cli": "^5.1.4",
59
+ "webpack-cli": "^6.0.1",
60
60
  "xml-js": "^1.6.11"
61
61
  },
62
62
  "dependencies": {}