Essentially to get introduced to compiler plugins ...
# compiler
r
Essentially to get introduced to compiler plugins you have to read the compiler sources, set debug points and log all extensions you can possibly subscribe to to see in which order they get executed as they analyze your module and compile it