I would like to replace ALL occurences of specific Term.Name instances in the AST. Something like:
tree match {
case t @ Term.Name(n) if (n == "bla") => Term.Apply(Term.Select(t, Term.Name("read")), List())
}
However, to achieve this, I will have to check for all different types of statements etc. and check inside these statements for the term. Is there any easier way with scalameta to replace all occurrences of a specific term?