@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
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
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();
|
package/build/src/registry.js
CHANGED