index: update to "abstract-syntax" v2 API