Description
AssemblyScript fork requires constant maintenance and periodic fires in our system. Interestingly, the only purpose of the fork is to be able to inject the code into our system by wrapping methods into JSON serialization and deserialization code.
Luckily, AssemblyScript supports transforms https://docs.assemblyscript.org/details/peculiarities#transforms which can alter AssemblyScript before and after parsing on AST level. Upon reading the small bits of documentation I do not see the reason why it cannot be used to achieve our goal without forking the compiler. (For instance, in Rust we are using procedural macros to generate the very same JSON serialization/deserialization wrapping code, and procedural macros work on AST level).
We should either:
- Implement transforms that inject our code and delete the fork;
- Find an example of the code that we want to inject that cannot be injected with transforms.