allVarNames - find all variable/field declarations in a block/class; TODO: abstract methods