1550 Commits

Author SHA1 Message Date
Renaud Pawlak
e107ee9857 take into account @Name when detecting clashes 2020-01-09 15:23:31 +01:00
Renaud Pawlak
f8e24b2aee import only explicitly used types 2020-01-07 08:31:56 +01:00
Renaud Pawlak
ea4ae75583 set timezone 2020-01-04 11:52:16 +01:00
Renaud Pawlak
5c239c573e change date test... should add a test for ISO date format 2020-01-04 10:43:25 +01:00
Renaud Pawlak
b0167305fd fixed some issues with varargs and overloads (partial) 2020-01-04 10:33:58 +01:00
Renaud Pawlak
c9306d8a69 fixed some issues with varargs and overloads (partial) 2020-01-04 10:16:52 +01:00
Renaud Pawlak
bcb835dbdd add support for direct imports even in module mode 2020-01-03 08:15:54 +01:00
Renaud Pawlak
ef42a5ab20 adapter delegation fix 2020-01-02 20:41:19 +01:00
Renaud Pawlak
c281a33a3c loosen module adaptation for mapped types 2019-12-31 15:11:06 +01:00
Renaud Pawlak
be41f3b4b5 fix adapter chaining 2019-12-31 14:19:36 +01:00
Louis Grignon
7aa397f0b1 Merge branch 'develop' of https://github.com/cincheo/jsweet into develop 2019-10-26 14:12:00 +02:00
Louis Grignon
69d26a5fe8 add Dates unit test 2019-10-26 14:11:52 +02:00
Louis Grignon
3228a4a267
Merge pull request #551 from iffyio/feature/es6-collections
Add support for transpiling collections to ES6
2019-10-26 11:08:20 +02:00
ifeanyi
24aff665c6 Add support for transpiling collections to ES6
This commit adds an Adapter that transpiles sets using ES6 Set
implementation.
The goal of the adapter is to use a standard API for the transpiled
collections in order to abstract implementation details of collections
as well as enable
inter-operability between collections just as in Java.
For example in Java most collections can be initialized with any
arbitrary collection and never need to know how that collection is
implemented.

Having the transpiled code work only via the API at collection
boundaries enables this.
However this means that collections transpiled by this adapter are not
compatible with those transpiled by other adapters - this should be less
of an issue once the adapter has support to handle all collection types.

Related #548
Fixes #549
2019-10-09 19:48:39 +02:00
lgrignon
f6eb3f65a3 next snapshot version 2019-10-06 20:21:01 +02:00
lgrignon
024acb93b9 2.3.5 release 2019-10-06 20:16:45 +02:00
lgrignon
76e45a0013 Merge branch 'develop' of https://github.com/cincheo/jsweet into develop 2019-10-06 20:11:58 +02:00
lgrignon
0276dccacb fix some transpilation issues for J4TS 2019-10-06 20:11:40 +02:00
Louis Grignon
8d383b75ad
Merge pull request #550 from iffyio/bugfix/number-constructors
Add support for Number constructors with char arguments
2019-10-06 20:06:25 +02:00
ifeanyi
0d236e3c32 Add support for Number constructors with char arguments
* Also add missing support for `Character.valueOf`

Fixes #509
2019-10-06 19:21:30 +02:00
Louis Grignon
171ca663bd
Merge pull request #546 from iffyio/bugfix/collections-variable-map-constructors
Support Map initialization via non-Map arguments
2019-10-05 22:21:05 +02:00
ifeanyi
11c00b0a57 Support Map initialization via non-Map arguments
This patch ignores any arguments that isn't of Map type during
the invocation of a Map collection. Based on the supported
data-structures, these non-Map arguments can either be of type
int (capacity, loadFactor) or Comparator. The use case for the
latter is not currently supported while the former have no equivalent
in javascript.

Fixes #508
2019-10-05 19:18:46 +02:00
lgrignon
fb6f9b0e59 fix #544 extending Java Map, print this in transformation instead of invalid super 2019-10-05 11:44:48 +02:00
lgrignon
8a68a70555 #542 unit test for boxing issue 2019-10-05 10:18:58 +02:00
Louis Grignon
9c3104a3f3 fix #540 overload in Globals 2019-09-22 19:11:50 +02:00
Louis Grignon
728fffa464 #541 unit test to show working case 2019-09-22 18:22:40 +02:00
Louis Grignon
7fd8496dc3 add unit test for #539 2019-09-22 16:56:35 +02:00
lgrignon
6ab243193a next snapshot version 2019-09-09 00:57:39 +02:00
lgrignon
ab95a89fce release 2.3.4 2.3.4 2019-09-09 00:56:27 +02:00
lgrignon
8d48e0a410 fix NPE in global npm package lookup 2019-09-09 00:50:54 +02:00
lgrignon
a7bc751ec6 fix NPE in global npm package lookup 2019-09-09 00:41:33 +02:00
lgrignon
5727fc9e34 next snapshot version 2019-09-09 00:32:19 +02:00
lgrignon
539b85a9eb 2.3.3 release 2.3.3 2019-09-09 00:31:22 +02:00
lgrignon
74adc70cd3 attempt to fix tsc retrieval 2019-08-29 13:35:28 +02:00
lgrignon
826e3bb2f0 next snapshot version 2019-08-29 12:55:06 +02:00
lgrignon
0ec73ccdf2 fix tsserver lookup for unix + release 2.3.2 2019-08-29 12:52:47 +02:00
lgrignon
20fac4f76d next snapshot version 2019-08-25 15:29:09 +02:00
lgrignon
611fd7d890 fix release 2.3.1: no snapshot 2.3.1 2019-08-25 15:27:50 +02:00
lgrignon
d3b3c3a306 next snapshot version 2019-08-25 15:18:58 +02:00
lgrignon
6393c4119c replace static calls even if target is not an interface (instance select of static field can't work in TypeScript) 2019-08-25 15:16:19 +02:00
lgrignon
01bd04bc3d Merge branch 'develop' of https://github.com/cincheo/jsweet into develop 2019-07-24 23:12:20 +02:00
lgrignon
ff3718113d add babel before running phantomjs 2019-07-24 23:12:01 +02:00
lgrignon
55e6983f56 ImageData up to date constructor 2019-07-18 20:38:45 +02:00
Louis Grignon
72e091b253
Merge pull request #531 from jmstark/Issue_#530
header missing for default method accessing superclass enum #530
2019-07-02 08:23:49 +02:00
lgrignon
794f897049 fix #532 candies repository URL 2019-07-02 08:09:27 +02:00
Josef Stark
2c6bd6b887 Merge branch 'upstream_develop' into Issue_#530 2019-06-26 19:17:07 +02:00
lgrignon
96be831f40 2.3.1 snapshot 2019-06-23 12:02:36 +02:00
lgrignon
90caa06096 2.3.0 release 2.3.0 2019-06-23 11:14:24 +02:00
Josef Stark
c84c7ee1d4 Add missing headers for when a class inherits a default method that
accesses a field from another class.

This commit attempts to fix #530
Works so far but might not be clean or work for all cases
2019-06-20 15:42:26 +02:00
Louis Grignon
de0931843a ImageData.data is a UInt8Array to better match API 2019-06-09 23:15:50 +02:00