string Render(EnumType enumType) { Symbols.MapTypeToPackage("myEnumFqn", enumType.Assembly); Symbols.MapNamespace(enumType.QualifiedNamespace, "MyNamespace"); Symbols.MapTypeName("myEnumFqn", "MyEnum", JsonModel.Spec.TypeKind.Enum); EnumGenerator generator = new EnumGenerator(enumType.Assembly, enumType, Symbols, Namespaces); SyntaxTree syntaxTree = generator.CreateSyntaxTree(); return(syntaxTree.ToString()); }