scala.tools.nsc.typechecker.MethodSynthesis
Function argument takes the newly created method symbol of the same type as name in clazz, and returns the tree to be added to the template.
name