ModuleLevelBuilder. Source code transformation support

Answered

Hi!

I want to support source code transformation by intellij. What I mean. For example, I have a source code file `Main.java`. During building process, before compiling original file, modified version is generated. Subsequent steps of building process should use modified file, not the original one.

I implemented ModuleLevelBuilder, which takes original files, performs all needed ast transformations and flush modified files to `target` subdirectory. But I can not understand, is there any way to mark original file as no longer needed and that modified version should be used instead?

1 comment
Comment actions Permalink

Sorry for delay.

Could you please explain what your transformation does and what

> mark original file as no longer needed and that modified version should be used instead

means exactly? no longer needed in what context? delete/hide the file? modified version should be used instead = in what context/use-cases?

0

Please sign in to leave a comment.