Commit ce6f406
fix(intellij-plugin): drop removed JSBlockStatement.getStatements() call
RoziePropsModel.directEntries() read `element.statements` on a
JSBlockStatement — the Kotlin accessor for JSBlockStatement.getStatements(),
which is @deprecated in IntelliJ 2024.2 and REMOVED in 2025.3. The plugin
verifier (SC-5 binary-compatibility gate) failed against IU-253 with an
unresolved-method / NoSuchMethodError problem.
Replace it with PsiTreeUtil.getChildrenOfTypeAsList(element,
JSLabeledStatement) — a stable API present in both 2024.2 and 2025.3 that
yields the same direct labeled-statement children the call site filtered
for. compileKotlin green.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 4ebb9d5 commit ce6f406
1 file changed
Lines changed: 6 additions & 1 deletion
Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
100 | | - | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
101 | 106 | | |
102 | 107 | | |
103 | 108 | | |
| |||
0 commit comments