Pass list of statements to find declared variable names
Add var statements for declarations in a module