1525 Commits

Author SHA1 Message Date
Renaud Pawlak
2e7ae54ac2 try to avoid cyclic dependencies when generating file-by-file modules 2020-02-09 13:01:35 +01:00
Renaud Pawlak
246fbb7d19 update to latest core lib 2020-02-09 13:00:22 +01:00
Renaud Pawlak
f00c09a413 added utility method 2020-02-09 12:59:37 +01:00
Renaud Pawlak
6668b64895 moving to next version 2020-02-08 09:00:48 +01:00
Renaud Pawlak
9a557c1ea3 fixed typed arrays indexed access 2020-02-08 08:56:29 +01:00
Renaud Pawlak
beef1b6731 allow variable intializer substitution 2020-02-04 14:36:06 +01:00
Renaud Pawlak
8a3fd1a387 added forgotten arithmetic operator 2020-02-04 10:01:14 +01:00
Renaud Pawlak
06611c39c0 support for headers in bundle mode 2020-02-03 17:30:40 +01:00
Renaud Pawlak
376e5d032b support for intersection type parameters 2020-02-03 17:30:02 +01:00
Renaud Pawlak
7a058343cd support bundle with modules 2020-02-01 12:26:49 +01:00
Renaud Pawlak
5bc46dfb92 fix npe 2020-01-31 10:17:12 +01:00
Renaud Pawlak
b7f4b5c1ca added a substitution method to control expression assignements 2020-01-25 09:12:52 +01:00
Renaud Pawlak
b2bd418d01 do not initialize static fields when we are not in bundle mode 2020-01-24 11:23:02 +01:00
Renaud Pawlak
790852dc62 fix overloading issues for default methods 2020-01-23 08:47:48 +01:00
Renaud Pawlak
d01acde34e added utility method to retrieve a type's upper bound 2020-01-22 23:18:07 +01:00
Renaud Pawlak
8507f3b310 fix overload detection bug with default methods 2020-01-22 15:55:08 +01:00
Renaud Pawlak
647100fc05 add support for static methods with no targets 2020-01-22 08:49:06 +01:00
Renaud Pawlak
617e5f9696 added some utility methods 2020-01-18 21:35:17 +01:00
Renaud Pawlak
f2014a3c6e deal with target redirection when using modules 2020-01-18 11:20:14 +01:00
Renaud Pawlak
80e7f8d3c2 add a safety net to avoid duplicate imports 2020-01-15 16:15:29 +01:00
Renaud Pawlak
a15793f330 do not generate imports when overloads are erased or replaced 2020-01-15 15:55:11 +01:00
Renaud Pawlak
58de82dc7e all full type substitution 2020-01-14 21:55:18 +01:00
Renaud Pawlak
528cdfd63c use elements instead of symbols when possible 2020-01-14 20:03:07 +01:00
Renaud Pawlak
07dcb3592a added new adapter hooks to better hack (unsafe) the code generation 2020-01-11 11:38:24 +01:00
Renaud Pawlak
2dde32b394 added a case of field/method name clash detection + tests 2020-01-10 10:27:47 +01:00
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