getting all vars with types and declarations