scalameta / scalagen

WIP - Scalameta powered code generation
Apache License 2.0
40 stars 5 forks source link

Unify Generator Runners #13

Closed DavidDudson closed 6 years ago

DavidDudson commented 6 years ago

My original thoughts were to keep extensions seperate from manipulations as they allow for parallel expansion of Tree's. In actual fact, the gain from this is going to be marginal, and we should focus our efforts on parallelizing across files, rather then within files.

I wish to use a single runner for all Generators. However, I still like the idea of knowing files defintions were only extended and not mutated. Thus perhaps we should add a flag or 2.

Note: All generators now would work on the basis of foldLeft or foldRight.

Multiple expansion would inject it's output into the outer. This is not the case currently in extension macro lan, as both get given the input Defn.

DavidDudson commented 6 years ago

This is now complete