Commit 35218f6
committed
fix(extractor): add case 'class' to walk path and use kind 'method' for static blocks (#1389)
The merge conflict resolution in 8d5ba14 dropped two changes from ca3123f:
1. The 'class' case in walkJavaScriptNode's switch — class expressions like
'return class Child extends Parent { ... }' were never dispatched to
handleClassDecl, so ctx.classes remained empty and no extends relationship
was recorded.
2. handleStaticBlock used kind: 'function' instead of kind: 'method', so the
CHA parents map could not walk up to the parent class for super.method()
resolution. Also update the existing test that asserted kind: 'function'.1 parent c662808 commit 35218f6
2 files changed
Lines changed: 6 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
734 | 734 | | |
735 | 735 | | |
736 | 736 | | |
| 737 | + | |
| 738 | + | |
737 | 739 | | |
738 | 740 | | |
739 | 741 | | |
| |||
874 | 876 | | |
875 | 877 | | |
876 | 878 | | |
877 | | - | |
| 879 | + | |
878 | 880 | | |
879 | 881 | | |
880 | 882 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
108 | | - | |
| 108 | + | |
109 | 109 | | |
110 | 110 | | |
111 | 111 | | |
112 | | - | |
113 | | - | |
| 112 | + | |
| 113 | + | |
114 | 114 | | |
115 | 115 | | |
116 | 116 | | |
| |||
0 commit comments