mirror of
https://github.com/swc-project/swc.git
synced 2024-12-19 19:52:21 +03:00
14 lines
497 B
JavaScript
14 lines
497 B
JavaScript
export function Nj(a) {
|
|
a: for (; ;) {
|
|
for (; null === a.sibling;) {
|
|
if (null === a.return || Mj(a.return)) return null;
|
|
a = a.return;
|
|
}
|
|
for (a.sibling.return = a.return, a = a.sibling; 5 !== a.tag && 6 !== a.tag && 18 !== a.tag;) {
|
|
if (2 & a.flags) continue a;
|
|
if (null === a.child || 4 === a.tag) continue a;
|
|
a.child.return = a, a = a.child;
|
|
}
|
|
if (!(2 & a.flags)) return a.stateNode;
|
|
}
|
|
} |