Injecting ?? fallback for response.data across a real API client. Not just simple replacement — the engine understands optional chains, operator precedence, and existing nullish coalescing.
You have a property that can be undefined at runtime. You need to add ?? fallback to every access site. Sounds simple? Here's why it's not:
Naive replacement breaks the chain. The engine wraps the target and preserves the tail.
?? has lower precedence than >. Without parens, the fallback captures the wrong operand.
The engine detects existing nullish coalescing and classifies it as ambiguous.
Stop adding ?? fallback by hand. Let the engine find every access site and inject the correct guard.