enumDefinitionToSpec function
Generates a Spec
of a single enum definition.
Implementation
Spec enumDefinitionToSpec(EnumDefinition definition) =>
CodeExpression(Code('''enum ${definition.name.namePrintable} {
${definition.values.removeDuplicatedBy((i) => i).map(_enumValueToSpec).join()}
}'''));