(reason: string)
| 235 | */ |
| 236 | export function proposeParameterizedHelper(members: FunctionUnit[], helperName = 'extractedHelper'): ParamProposal { |
| 237 | const decline = (reason: string): ParamProposal => ({ ok: false, reason, helperName, params: [], sketch: '', calls: [] }); |
| 238 | if (members.length < 2) return decline('need at least two functions'); |
| 239 | |
| 240 | // Neutralize each function's own name, and strip comments BEFORE aligning: two bodies that |
no outgoing calls
no test coverage detected