Parser.parse takes a typeDefinition, so we can do stuff like check if indexes exist