File tree Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -97,7 +97,9 @@ class AssignNode extends TempNode {
97
97
98
98
const { targetNode, sourceNode } = this ;
99
99
100
- const targetProperties = builder . getNodeProperties ( targetNode ) ;
100
+ const scope = targetNode . getScope ( ) ;
101
+
102
+ const targetProperties = builder . getNodeProperties ( scope ) ;
101
103
targetProperties . assign = true ;
102
104
103
105
const properties = builder . getNodeProperties ( this ) ;
Original file line number Diff line number Diff line change @@ -100,6 +100,17 @@ class SplitNode extends Node {
100
100
101
101
}
102
102
103
+ /**
104
+ * Returns the scope of the node.
105
+ *
106
+ * @return {Node } The scope of the node.
107
+ */
108
+ getScope ( ) {
109
+
110
+ return this . node . getScope ( ) ;
111
+
112
+ }
113
+
103
114
generate ( builder , output ) {
104
115
105
116
const node = this . node ;
You can’t perform that action at this time.
0 commit comments