How to expand AST fully?

Thanks! But in your example there is still this foo macro, which is not expanded

As I understood the only way to get fully expanded AST is :elixir_module.compile?