Take into account destrucuring when generating declarations.