jsweet
jsweet copied to clipboard
A Java to JavaScript transpiler.
Indentation in comments is lost in transpilation. JavaDocs often contain indented HTML or they can have code samples where the indentation is preferable to preserve. ## To reproduce: Transpile the...
I would like to do the following as stated in the FAQ(http://www.jsweet.org/faq/). ------------------ Case one — compile the library with JSweet: if the library is open source or if you...
Given ```java package org.jsweet; import static def.dom.Globals.*; public class HelloWorld { public static void main(String[] args) { /* Hello */ alert("Hi there!"); } } ``` The "Hello" comment is dropped...
The TypeScript handbook gives [this example](https://www.typescriptlang.org/docs/handbook/unions-and-intersections.html), which also works with interfaces as such: ```typescript interface NetworkLoadingState { state: "loading"; } interface NetworkFailedState { state: "failed"; code: number; } ``` To...
We are getting the following errors. With transpiler: 2.3.7, jsweet.core.version: 602. We are using the URL definition in the JSweet j4ts GIT Repo. It has openStream function defined on the...
We are getting the following error. We downloaded the j4ts-awt-swing maven dependencies, compiled them with jsweet.transpiler.version: 2.3.6-SNAPSHOT and jsweet.core.version: 6.0.3. We include this version in our local maven repo. We...
Hi! Creating this issue as a result of the [discussion here](https://github.com/cincheo/jsweet/pull/546#issuecomment-538680937) - about having knowledge of an expression's implementation type at least during methodInvocation substitution. I bring it up since...
The following code doesn't compile: ```java package quickstart; public class QuickStart { public static void main(String[] args) { class Foo { } Foo f = new Foo(); } } ```...
Hi! I have a usecase that involves accounting for untyped access in a source file. I figured extending the transpiler by overriding `PrinterAdapter` might work but it seems JSweetTranspiler has...
Hello! I'm trying to transpile [lambda](https://github.com/palatable/lambda) using jsweet, but the build processing is exploding with over a hundred type errors. I'm doing some fairly advanced type acrobatics for javac in...