Unfortunately not, because the execution function wrapping alters the scoping for the declaration extraction process.