Skip to content

Instantly share code, notes, and snippets.

View mbloms's full-sized avatar

Mikael Blomstrand mbloms

View GitHub Profile
@mbloms
mbloms / gist:1aab9ac35b955bdc57a60a93c15d1c0b
Created April 2, 2018 16:00 — forked from dragos/gist:1794246
A Scala compiler plugin that creates a new class in a different (fresh) package
package scala.plugin
import scala.tools.nsc
import nsc.Global
import nsc.Phase
import nsc.plugins.Plugin
import nsc.plugins.PluginComponent
import nsc.transform.{ Transform, TypingTransformers }
import nsc.symtab.Flags
import scala.tools.nsc.transform.TypingTransformers