@abaplint/core 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.
@@ -98,16 +98,19 @@ class SortedKeyWrite {
98
98
  if (this.procedure === undefined) {
99
99
  return;
100
100
  }
101
- // any assignment of a field symbol or reference ends its binding
102
- for (const fs of node.findAllExpressions(Expressions.FSTarget)) {
103
- this.unbind(fs.findFirstExpression(Expressions.TargetFieldSymbol), input.scope);
104
- }
105
- if (node.get() instanceof Statements.Unassign) {
106
- this.unbind(node.findDirectExpression(Expressions.TargetFieldSymbol), input.scope);
107
- }
108
- for (const target of node.findAllExpressions(Expressions.Target)) {
109
- if (target.getChildren().length === 1) {
110
- this.unbind(target.findDirectExpression(Expressions.TargetField), input.scope);
101
+ // any assignment of a field symbol or reference ends its binding,
102
+ // skipped when nothing is bound, this runs for every statement
103
+ if (this.bindings.size > 0) {
104
+ for (const fs of node.findAllExpressions(Expressions.FSTarget)) {
105
+ this.unbind(fs.findFirstExpression(Expressions.TargetFieldSymbol), input.scope);
106
+ }
107
+ if (node.get() instanceof Statements.Unassign) {
108
+ this.unbind(node.findDirectExpression(Expressions.TargetFieldSymbol), input.scope);
109
+ }
110
+ for (const target of node.findAllExpressions(Expressions.Target)) {
111
+ if (target.getChildren().length === 1) {
112
+ this.unbind(target.findDirectExpression(Expressions.TargetField), input.scope);
113
+ }
111
114
  }
112
115
  }
113
116
  const s = node.get();
@@ -75,7 +75,7 @@ class Registry {
75
75
  }
76
76
  static abaplintVersion() {
77
77
  // magic, see build script "version.js"
78
- return "2.120.102";
78
+ return "2.120.103";
79
79
  }
80
80
  getDDICReferences() {
81
81
  return this.ddicReferences;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/core",
3
- "version": "2.120.102",
3
+ "version": "2.120.103",
4
4
  "description": "abaplint - Core API",
5
5
  "main": "build/src/index.js",
6
6
  "typings": "build/abaplint.d.ts",