@abaplint/cli 2.113.70 → 2.113.71

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 +41 -5
  2. package/package.json +4 -4
package/build/cli.js CHANGED
@@ -9864,8 +9864,12 @@ class StatementParser {
9864
9864
  else {
9865
9865
  wa.statements[i] = new nodes_1.StatementNode(new _statement_1.NativeSQL()).setChildren(this.tokensToNodes(statement.getTokens()));
9866
9866
  if (statement.concatTokens().toUpperCase().endsWith("ENDMETHOD.")) {
9867
- // yea, this is not completely correct
9868
- wa.statements[i] = new nodes_1.StatementNode(new Statements.EndMethod()).setChildren(this.tokensToNodes(statement.getTokens()));
9867
+ const tokens = statement.getTokens();
9868
+ const startTokens = this.tokensToNodes(tokens.slice(tokens.length - 2, tokens.length));
9869
+ const endTokens = this.tokensToNodes(tokens.slice(0, tokens.length - 2));
9870
+ wa.statements[i] = new nodes_1.StatementNode(new _statement_1.NativeSQL()).setChildren(endTokens);
9871
+ const item = new nodes_1.StatementNode(new Statements.EndMethod()).setChildren(startTokens);
9872
+ wa.statements.splice(i + 1, 0, item);
9869
9873
  sql = false;
9870
9874
  }
9871
9875
  }
@@ -25835,6 +25839,7 @@ const component_compare_1 = __webpack_require__(/*! ./component_compare */ "./no
25835
25839
  const inline_data_1 = __webpack_require__(/*! ./inline_data */ "./node_modules/@abaplint/core/build/src/abap/5_syntax/expressions/inline_data.js");
25836
25840
  const fstarget_1 = __webpack_require__(/*! ./fstarget */ "./node_modules/@abaplint/core/build/src/abap/5_syntax/expressions/fstarget.js");
25837
25841
  const target_1 = __webpack_require__(/*! ./target */ "./node_modules/@abaplint/core/build/src/abap/5_syntax/expressions/target.js");
25842
+ const source_1 = __webpack_require__(/*! ./source */ "./node_modules/@abaplint/core/build/src/abap/5_syntax/expressions/source.js");
25838
25843
  class LoopGroupBy {
25839
25844
  runSyntax(node, input) {
25840
25845
  for (const t of node.findAllExpressions(Expressions.Target)) {
@@ -25849,6 +25854,9 @@ class LoopGroupBy {
25849
25854
  for (const t of node.findAllExpressions(Expressions.FSTarget)) {
25850
25855
  new fstarget_1.FSTarget().runSyntax(t, input, new basic_1.VoidType("todoGroupBy"));
25851
25856
  }
25857
+ for (const t of node.findDirectExpressions(Expressions.Source)) {
25858
+ new source_1.Source().runSyntax(t, input, new basic_1.VoidType("todoGroupBy"));
25859
+ }
25852
25860
  for (const c of node.findDirectExpressions(Expressions.LoopGroupByComponent)) {
25853
25861
  for (const t of c.findDirectExpressions(Expressions.ComponentCompareSingle)) {
25854
25862
  new component_compare_1.ComponentCompare().runSyntax(t, input);
@@ -30521,6 +30529,30 @@ exports.DeleteInternal = DeleteInternal;
30521
30529
 
30522
30530
  /***/ }),
30523
30531
 
30532
+ /***/ "./node_modules/@abaplint/core/build/src/abap/5_syntax/statements/delete_memory.js":
30533
+ /*!*****************************************************************************************!*\
30534
+ !*** ./node_modules/@abaplint/core/build/src/abap/5_syntax/statements/delete_memory.js ***!
30535
+ \*****************************************************************************************/
30536
+ /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
30537
+
30538
+ "use strict";
30539
+
30540
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
30541
+ exports.DeleteMemory = void 0;
30542
+ const Expressions = __webpack_require__(/*! ../../2_statements/expressions */ "./node_modules/@abaplint/core/build/src/abap/2_statements/expressions/index.js");
30543
+ const source_1 = __webpack_require__(/*! ../expressions/source */ "./node_modules/@abaplint/core/build/src/abap/5_syntax/expressions/source.js");
30544
+ class DeleteMemory {
30545
+ runSyntax(node, input) {
30546
+ for (const s of node.findDirectExpressions(Expressions.Source)) {
30547
+ new source_1.Source().runSyntax(s, input);
30548
+ }
30549
+ }
30550
+ }
30551
+ exports.DeleteMemory = DeleteMemory;
30552
+ //# sourceMappingURL=delete_memory.js.map
30553
+
30554
+ /***/ }),
30555
+
30524
30556
  /***/ "./node_modules/@abaplint/core/build/src/abap/5_syntax/statements/delete_report.js":
30525
30557
  /*!*****************************************************************************************!*\
30526
30558
  !*** ./node_modules/@abaplint/core/build/src/abap/5_syntax/statements/delete_report.js ***!
@@ -34637,6 +34669,7 @@ const statics_1 = __webpack_require__(/*! ./structures/statics */ "./node_module
34637
34669
  const constants_1 = __webpack_require__(/*! ./structures/constants */ "./node_modules/@abaplint/core/build/src/abap/5_syntax/structures/constants.js");
34638
34670
  const class_definition_1 = __webpack_require__(/*! ../types/class_definition */ "./node_modules/@abaplint/core/build/src/abap/types/class_definition.js");
34639
34671
  const interface_definition_1 = __webpack_require__(/*! ../types/interface_definition */ "./node_modules/@abaplint/core/build/src/abap/types/interface_definition.js");
34672
+ const delete_memory_1 = __webpack_require__(/*! ./statements/delete_memory */ "./node_modules/@abaplint/core/build/src/abap/5_syntax/statements/delete_memory.js");
34640
34673
  const perform_1 = __webpack_require__(/*! ./statements/perform */ "./node_modules/@abaplint/core/build/src/abap/5_syntax/statements/perform.js");
34641
34674
  const type_1 = __webpack_require__(/*! ./statements/type */ "./node_modules/@abaplint/core/build/src/abap/5_syntax/statements/type.js");
34642
34675
  const constant_1 = __webpack_require__(/*! ./statements/constant */ "./node_modules/@abaplint/core/build/src/abap/5_syntax/statements/constant.js");
@@ -34891,6 +34924,7 @@ if (Object.keys(map).length === 0) {
34891
34924
  addToMap(new modify_internal_1.ModifyInternal());
34892
34925
  addToMap(new read_textpool_1.ReadTextpool());
34893
34926
  addToMap(new editor_call_1.EditorCall());
34927
+ addToMap(new delete_memory_1.DeleteMemory());
34894
34928
  }
34895
34929
  // -----------------------------------
34896
34930
  class SyntaxLogic {
@@ -53250,7 +53284,7 @@ class Registry {
53250
53284
  }
53251
53285
  static abaplintVersion() {
53252
53286
  // magic, see build script "version.sh"
53253
- return "2.113.70";
53287
+ return "2.113.71";
53254
53288
  }
53255
53289
  getDDICReferences() {
53256
53290
  return this.ddicReferences;
@@ -64053,7 +64087,7 @@ class InStatementIndentation extends _abap_rule_1.ABAPRule {
64053
64087
  title: "In-statement indentation",
64054
64088
  shortDescription: "Checks alignment within statements which span multiple lines.",
64055
64089
  extendedInformation: `Lines following the first line should be indented once (2 spaces).
64056
-
64090
+
64057
64091
  For block declaration statements, lines after the first should be indented an additional time (default: +2 spaces)
64058
64092
  to distinguish them better from code within the block.`,
64059
64093
  badExample: `IF 1 = 1
@@ -64091,7 +64125,9 @@ ENDIF.`,
64091
64125
  }
64092
64126
  }
64093
64127
  for (const s of file.getStatements()) {
64094
- if (s.get() instanceof _statement_1.Comment || s.get() instanceof _statement_1.Unknown) {
64128
+ if (s.get() instanceof _statement_1.Comment
64129
+ || s.get() instanceof _statement_1.Unknown
64130
+ || s.get() instanceof _statement_1.NativeSQL) {
64095
64131
  continue;
64096
64132
  }
64097
64133
  const tokens = s.getTokens();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/cli",
3
- "version": "2.113.70",
3
+ "version": "2.113.71",
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.70",
41
+ "@abaplint/core": "^2.113.71",
42
42
  "@types/chai": "^4.3.20",
43
43
  "@types/glob": "^8.1.0",
44
44
  "@types/minimist": "^1.2.5",
@@ -50,9 +50,9 @@
50
50
  "eslint": "^9.15.0",
51
51
  "glob": "^7.2.3",
52
52
  "json5": "^2.2.3",
53
- "memfs": "^4.14.0",
53
+ "memfs": "^4.14.1",
54
54
  "minimist": "^1.2.8",
55
- "mocha": "^10.8.2",
55
+ "mocha": "^11.0.1",
56
56
  "progress": "^2.0.3",
57
57
  "typescript": "^5.7.2",
58
58
  "webpack": "^5.96.1",