(CASECLASSDEF(sym.Var) withParams(VAL("name", StringClass))
scala> val tree = (CASECLASSDEF(sym.Var) withParams(PARAM("name", StringClass), PARAM("age", IntClass)): Tree)tree: treehugger.forest.Tree = ClassDef(Modifiers(case, , Map()),Modifiers(, , Map()),Var,List(),List(ValDef(Modifiers(<param>, , Map()),Typed(Ident(name),TypeTree()),EmptyTree), ValDef(Modifiers(<param>, , Map()),Typed(Ident(age),TypeTree()),EmptyTree)),Template(List(),ValDef(Modifiers(private, , Map()),Ident(_),EmptyTree),List()))scala> treeToString(tree)res1: String = case class Var(name: String, age: Int)
--
You received this message because you are subscribed to the Google Groups "treehugger-scala" group.
To unsubscribe from this group and stop receiving emails from it, send an email to treehugger-sca...@googlegroups.com.
To post to this group, send email to treehugg...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/treehugger-scala/1f04ba82-4b50-405b-a0e2-6cc5128de523%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Ah superb. Happy Thanksgiving, grateful for your efforts.
You received this message because you are subscribed to a topic in the Google Groups "treehugger-scala" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/treehugger-scala/0iLPCholPcw/unsubscribe.
To unsubscribe from this group and all its topics, send an email to treehugger-sca...@googlegroups.com.
To post to this group, send email to treehugg...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/treehugger-scala/CA%2BCq6KT%2BPs7HWWey%2BfxN%2B-tqHTAz-%2BXruOESEiZ4U7Dgbiw1nA%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/treehugger-scala/CALCwSSOo4_LptA41NVyE%3DwH-ndN6DFj_gzQSztoy%3DwOfXHjzsQ%40mail.gmail.com.