@abaplint/cli 2.113.150 → 2.113.152

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 +42 -17
  2. package/package.json +8 -8
package/build/cli.js CHANGED
@@ -20892,6 +20892,12 @@ class BuiltInMethod extends _identifier_1.Identifier {
20892
20892
  getAll() {
20893
20893
  throw new Error("BuiltInMethod->getAll, Method not implemented");
20894
20894
  }
20895
+ getEventName() {
20896
+ return undefined;
20897
+ }
20898
+ getEventClass() {
20899
+ return undefined;
20900
+ }
20895
20901
  getImporting() {
20896
20902
  const ret = [];
20897
20903
  for (const i in this.method.mandatory) {
@@ -34086,6 +34092,7 @@ const target_1 = __webpack_require__(/*! ../expressions/target */ "./node_module
34086
34092
  const dynamic_1 = __webpack_require__(/*! ../expressions/dynamic */ "./node_modules/@abaplint/core/build/src/abap/5_syntax/expressions/dynamic.js");
34087
34093
  const basic_1 = __webpack_require__(/*! ../../types/basic */ "./node_modules/@abaplint/core/build/src/abap/types/basic/index.js");
34088
34094
  const _syntax_input_1 = __webpack_require__(/*! ../_syntax_input */ "./node_modules/@abaplint/core/build/src/abap/5_syntax/_syntax_input.js");
34095
+ const component_chain_1 = __webpack_require__(/*! ../expressions/component_chain */ "./node_modules/@abaplint/core/build/src/abap/5_syntax/expressions/component_chain.js");
34089
34096
  class Sort {
34090
34097
  runSyntax(node, input) {
34091
34098
  var _a, _b;
@@ -34106,23 +34113,24 @@ class Sort {
34106
34113
  && !(rowType instanceof basic_1.UnknownType)
34107
34114
  && !(rowType instanceof basic_1.AnyType)) {
34108
34115
  for (const component of node.findAllExpressions(Expressions.ComponentChain)) {
34116
+ component_chain_1.ComponentChain.runSyntax(rowType, component, input);
34117
+ /*
34109
34118
  if (component.getChildren().length > 1) {
34110
- continue;
34119
+ continue;
34111
34120
  }
34112
34121
  const cname = component.concatTokens().toUpperCase();
34113
34122
  if (cname === "TABLE_LINE") {
34114
- continue;
34115
- }
34116
- else if (!(rowType instanceof basic_1.StructureType)) {
34117
- const message = "SORT, table row is not structured";
34118
- input.issues.push((0, _syntax_input_1.syntaxIssue)(input, tnode.getFirstToken(), message));
34119
- return;
34120
- }
34121
- else if (rowType.getComponentByName(cname) === undefined) {
34122
- const message = `Field ${cname} does not exist in table row structure`;
34123
- input.issues.push((0, _syntax_input_1.syntaxIssue)(input, node.getFirstToken(), message));
34124
- return;
34123
+ continue;
34124
+ } else if (!(rowType instanceof StructureType)) {
34125
+ const message = "SORT, table row is not structured";
34126
+ input.issues.push(syntaxIssue(input, tnode.getFirstToken(), message));
34127
+ return;
34128
+ } else if (rowType.getComponentByName(cname) === undefined) {
34129
+ const message = `Field ${cname} does not exist in table row structure`;
34130
+ input.issues.push(syntaxIssue(input, node.getFirstToken(), message));
34131
+ return;
34125
34132
  }
34133
+ */
34126
34134
  }
34127
34135
  }
34128
34136
  }
@@ -39839,10 +39847,14 @@ class EventDefinition extends _identifier_1.Identifier {
39839
39847
  super(found.getFirstToken(), input.filename);
39840
39848
  this.parameters = [];
39841
39849
  this.parse(node, input);
39850
+ this.is_static = node.getFirstToken().getStr().toUpperCase() === "CLASS";
39842
39851
  }
39843
39852
  getParameters() {
39844
39853
  return this.parameters;
39845
39854
  }
39855
+ isStatic() {
39856
+ return this.is_static;
39857
+ }
39846
39858
  ///////////////
39847
39859
  parse(node, input) {
39848
39860
  for (const e of node.findAllExpressions(expressions_1.MethodParam)) {
@@ -40262,7 +40274,7 @@ const _reference_1 = __webpack_require__(/*! ../5_syntax/_reference */ "./node_m
40262
40274
  class MethodDefinition extends _identifier_1.Identifier {
40263
40275
  // todo: final flag
40264
40276
  constructor(node, visibility, input) {
40265
- var _a, _b;
40277
+ var _a, _b, _c, _d;
40266
40278
  if (!(node.get() instanceof statements_1.MethodDef)) {
40267
40279
  throw new Error("MethodDefinition, expected MethodDef as part of input node");
40268
40280
  }
@@ -40284,8 +40296,11 @@ class MethodDefinition extends _identifier_1.Identifier {
40284
40296
  }
40285
40297
  }
40286
40298
  this.eventHandler = false;
40287
- if (node.findDirectExpression(Expressions.EventHandler)) {
40299
+ const handler = node.findDirectExpression(Expressions.EventHandler);
40300
+ if (handler) {
40288
40301
  this.eventHandler = true;
40302
+ this.eventName = (_a = handler.findDirectExpression(Expressions.EventName)) === null || _a === void 0 ? void 0 : _a.concatTokens().toUpperCase();
40303
+ this.eventClass = (_b = handler.findDirectExpression(Expressions.ClassName)) === null || _b === void 0 ? void 0 : _b.concatTokens().toUpperCase();
40289
40304
  }
40290
40305
  this.abstract = false;
40291
40306
  if (node.findDirectExpression(Expressions.Abstract)) {
@@ -40297,7 +40312,7 @@ class MethodDefinition extends _identifier_1.Identifier {
40297
40312
  this.static = true;
40298
40313
  }
40299
40314
  this.raising = [];
40300
- for (const r of ((_a = node.findDirectExpression(Expressions.MethodDefRaising)) === null || _a === void 0 ? void 0 : _a.findAllExpressions(Expressions.ClassName)) || []) {
40315
+ for (const r of ((_c = node.findDirectExpression(Expressions.MethodDefRaising)) === null || _c === void 0 ? void 0 : _c.findAllExpressions(Expressions.ClassName)) || []) {
40301
40316
  const token = r.getFirstToken();
40302
40317
  const name = token.getStr();
40303
40318
  this.raising.push(name);
@@ -40313,7 +40328,7 @@ class MethodDefinition extends _identifier_1.Identifier {
40313
40328
  }
40314
40329
  }
40315
40330
  this.exceptions = [];
40316
- for (const r of ((_b = node.findDirectExpression(Expressions.MethodDefExceptions)) === null || _b === void 0 ? void 0 : _b.findAllExpressions(Expressions.NamespaceSimpleName)) || []) {
40331
+ for (const r of ((_d = node.findDirectExpression(Expressions.MethodDefExceptions)) === null || _d === void 0 ? void 0 : _d.findAllExpressions(Expressions.NamespaceSimpleName)) || []) {
40317
40332
  const token = r.getFirstToken();
40318
40333
  const name = token.getStr();
40319
40334
  this.exceptions.push(name);
@@ -40339,6 +40354,12 @@ class MethodDefinition extends _identifier_1.Identifier {
40339
40354
  isEventHandler() {
40340
40355
  return this.eventHandler;
40341
40356
  }
40357
+ getEventName() {
40358
+ return this.eventName;
40359
+ }
40360
+ getEventClass() {
40361
+ return this.eventClass;
40362
+ }
40342
40363
  getParameters() {
40343
40364
  return this.parameters;
40344
40365
  }
@@ -54677,7 +54698,7 @@ class Registry {
54677
54698
  }
54678
54699
  static abaplintVersion() {
54679
54700
  // magic, see build script "version.sh"
54680
- return "2.113.150";
54701
+ return "2.113.152";
54681
54702
  }
54682
54703
  getDDICReferences() {
54683
54704
  return this.ddicReferences;
@@ -79330,6 +79351,10 @@ function _supportsColor(haveStream, {streamIsTTY, sniffFlags = true} = {}) {
79330
79351
  return 3;
79331
79352
  }
79332
79353
 
79354
+ if (env.TERM === 'xterm-ghostty') {
79355
+ return 3;
79356
+ }
79357
+
79333
79358
  if ('TERM_PROGRAM' in env) {
79334
79359
  const version = Number.parseInt((env.TERM_PROGRAM_VERSION || '').split('.')[0], 10);
79335
79360
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/cli",
3
- "version": "2.113.150",
3
+ "version": "2.113.152",
4
4
  "description": "abaplint - Command Line Interface",
5
5
  "funding": "https://github.com/sponsors/larshp",
6
6
  "bin": {
@@ -38,24 +38,24 @@
38
38
  },
39
39
  "homepage": "https://abaplint.org",
40
40
  "devDependencies": {
41
- "@abaplint/core": "^2.113.150",
41
+ "@abaplint/core": "^2.113.152",
42
42
  "@types/chai": "^4.3.20",
43
43
  "@types/minimist": "^1.2.5",
44
44
  "@types/mocha": "^10.0.10",
45
- "@types/node": "^24.1.0",
45
+ "@types/node": "^24.2.0",
46
46
  "@types/progress": "^2.0.7",
47
47
  "chai": "^4.5.0",
48
48
  "p-limit": "^3.1.0",
49
- "chalk": "^5.4.1",
50
- "eslint": "^9.31.0",
49
+ "chalk": "^5.5.0",
50
+ "eslint": "^9.32.0",
51
51
  "glob": "^11.0.3",
52
52
  "json5": "^2.2.3",
53
- "memfs": "^4.17.2",
53
+ "memfs": "^4.36.0",
54
54
  "minimist": "^1.2.8",
55
55
  "mocha": "^11.7.1",
56
56
  "progress": "^2.0.3",
57
- "typescript": "^5.8.3",
58
- "webpack": "^5.100.2",
57
+ "typescript": "^5.9.2",
58
+ "webpack": "^5.101.0",
59
59
  "webpack-cli": "^6.0.1",
60
60
  "xml-js": "^1.6.11"
61
61
  }