Commit 3f301e7
Remove dead isCallable() guard for closure/arrow function callback types
Scope::getType() on a Closure or ArrowFunction AST node always returns a
ClosureType, which is always callable. The isCallable()->yes() check was
therefore always true, making the else branch (FuncCall fallback) dead code
for these node types. This also eliminates an unkillable mutation testing
mutant (yes() vs !no()).
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 9b37858 commit 3f301e7
1 file changed
Lines changed: 1 addition & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
175 | 175 | | |
176 | 176 | | |
177 | 177 | | |
178 | | - | |
179 | | - | |
180 | | - | |
181 | | - | |
| 178 | + | |
182 | 179 | | |
183 | 180 | | |
184 | 181 | | |
| |||
0 commit comments