Where can I learn about constructing AST's for Scala macros?
问题 Where I can learn how to construct the AST's that Scala's macros generate? The Scaladoc isn't as helpful as I'd like. For example: abstract def Apply(sym: Universe.Symbol, args: Universe.Tree*): Universe.Tree A factory method for Apply nodes. But how do I figure out what an Apply node is? Where can I find a list of the node types in AST's, and how they fit together? 回答1: There isn't a lot of documentation for the internals of the compiler available, but the things that are available should be