Add a record type for some of the elements of the abstract syntax tree