@abaplint/cli 2.120.102 → 2.120.103

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 +14 -11
  2. package/package.json +2 -2
package/build/cli.js CHANGED
@@ -28178,16 +28178,19 @@ class SortedKeyWrite {
28178
28178
  if (this.procedure === undefined) {
28179
28179
  return;
28180
28180
  }
28181
- // any assignment of a field symbol or reference ends its binding
28182
- for (const fs of node.findAllExpressions(Expressions.FSTarget)) {
28183
- this.unbind(fs.findFirstExpression(Expressions.TargetFieldSymbol), input.scope);
28184
- }
28185
- if (node.get() instanceof Statements.Unassign) {
28186
- this.unbind(node.findDirectExpression(Expressions.TargetFieldSymbol), input.scope);
28187
- }
28188
- for (const target of node.findAllExpressions(Expressions.Target)) {
28189
- if (target.getChildren().length === 1) {
28190
- this.unbind(target.findDirectExpression(Expressions.TargetField), input.scope);
28181
+ // any assignment of a field symbol or reference ends its binding,
28182
+ // skipped when nothing is bound, this runs for every statement
28183
+ if (this.bindings.size > 0) {
28184
+ for (const fs of node.findAllExpressions(Expressions.FSTarget)) {
28185
+ this.unbind(fs.findFirstExpression(Expressions.TargetFieldSymbol), input.scope);
28186
+ }
28187
+ if (node.get() instanceof Statements.Unassign) {
28188
+ this.unbind(node.findDirectExpression(Expressions.TargetFieldSymbol), input.scope);
28189
+ }
28190
+ for (const target of node.findAllExpressions(Expressions.Target)) {
28191
+ if (target.getChildren().length === 1) {
28192
+ this.unbind(target.findDirectExpression(Expressions.TargetField), input.scope);
28193
+ }
28191
28194
  }
28192
28195
  }
28193
28196
  const s = node.get();
@@ -73598,7 +73601,7 @@ class Registry {
73598
73601
  }
73599
73602
  static abaplintVersion() {
73600
73603
  // magic, see build script "version.js"
73601
- return "2.120.102";
73604
+ return "2.120.103";
73602
73605
  }
73603
73606
  getDDICReferences() {
73604
73607
  return this.ddicReferences;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/cli",
3
- "version": "2.120.102",
3
+ "version": "2.120.103",
4
4
  "description": "abaplint - Command Line Interface",
5
5
  "funding": "https://github.com/sponsors/larshp",
6
6
  "bin": {
@@ -39,7 +39,7 @@
39
39
  },
40
40
  "homepage": "https://abaplint.org",
41
41
  "devDependencies": {
42
- "@abaplint/core": "^2.120.102",
42
+ "@abaplint/core": "^2.120.103",
43
43
  "@types/chai": "^4.3.20",
44
44
  "@types/minimist": "^1.2.5",
45
45
  "@types/mocha": "^10.0.10",