No, I don't think it can be done. The information on the name of the reference is lost when converted into the AST.