Extracting all the information from the ast