Moving @ast analysis into source class