udoprog / genco

A whitespace-aware quasiquoter for beautiful code generation.
Apache License 2.0
182 stars 12 forks source link

There is no Array type in enum Java, how can I generate array type. #4

Closed sidneywang closed 4 years ago

sidneywang commented 5 years ago

pub enum Java<'el> { /// Primitive type. Primitive { /// The boxed variant of the primitive type. boxed: &'static str, /// The primitive-primitive type. primitive: &'static str, }, /// A class, with or without arguments, imported from somewhere. Class(Type<'el>), /// A local name with no specific qualification. Local { /// Name of class. name: Cons<'el>, }, /// Optional type. Optional(Optional<'el>), }