tylasu
tylasu copied to clipboard
See the work done on Kolasu https://github.com/Strumenta/kolasu/pull/292
Kolasu does have a `Node.replaceWith` method to replace a node, but Tylasu does not.
Wrapping the JavaParser nodes in Kolasu, and use them in Tylasu when running on GraalVM --- Reusing features of JavaParser like - Lexical preservation - Symbol resolution
I.e. Tylasu nodes can preserve comments and whitespace.
For the future: we could throw an exception of our own, and provide the Chai integration as a separate module, so that users may write e.g. `expect(someNode).to.equalAST(someOtherNode)`. Here's an example...
In transformers, when a reference to a missing property is met, undefined is returned. It would be useful to have a warning, in order to, e.g., catch typos. ``` const...
```typescript class SomeNode extends Node { @Mapped("doesntExist") someProperty: Node; } ``` The above doesn't report any error or warning.