We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f544753 commit 0f94999Copy full SHA for 0f94999
1 file changed
packages/babel-traverse/src/path/index.js
@@ -161,6 +161,13 @@ export default class NodePath {
161
return !!this.listKey;
162
}
163
164
+ set inList(inList) {
165
+ if (!inList) {
166
+ this.listKey = null;
167
+ }
168
+ // ignore inList = true as it should depend on `listKey`
169
170
+
171
get parentKey() {
172
return this.listKey || this.key;
173
0 commit comments