add ast for methods/fields besides statements