add locations to type builder for error::complain