cincheo / jsweet

A Java to JavaScript transpiler.
http://www.jsweet.org
Other
1.45k stars 159 forks source link

Add Adapters Programmatically #778

Open itdv opened 4 months ago

itdv commented 4 months ago

Hi Is there a way to add adapters programmatically to transpiler instance? It would be vary convenient to have such an option, which would allow to treat the whole transpiler process via dedicated code for specific porject, rather than having to use plguins + configuration file. I do see the transpiler has setAdatpters function, but a) it gets List rather than List<Class> b) it's doesn't seems to be working at all - adding values doesn't seem to have any effect, and looking in jsweet code, I cannot find where getAdapters is used