63 Commits

Author SHA1 Message Date
Renaud Pawlak
46e5dcf9cb fix #240 + update tests 2017-04-11 07:40:33 +02:00
Renaud Pawlak
821ad80c26 fix #132
- fix "newClass" issue
- use class simple name when possible
- add a test
2017-04-11 06:47:13 +02:00
Renaud Pawlak
71b8e898d1 various small extension-related enhancements + bug fix
- fix conditional and assignment bug
- adapter API cleaning
- allow the definition of type mapping that erase the type parameters
- basic native support for Java readers/inputstreams/locales (+test)
- fix overload issue with some native types
2017-04-10 11:09:38 +02:00
Renaud Pawlak
efd865787e support for maps with object keys 2017-04-05 16:18:00 +02:00
Renaud Pawlak
d5a59847dd apply substitution on field initialization 2017-04-05 11:51:36 +02:00
Renaud Pawlak
0c74dba470 add a test for the debug mode 2017-04-04 18:07:24 +02:00
Pap Lőrinc
c291ba12b6 Fixed parsing of empty S.*.println 2017-03-31 11:35:37 +03:00
Renaud Pawlak
52e3430675 better support for functional types 2017-03-30 15:51:13 +02:00
Renaud Pawlak
df50b2aec6 improved functional types support 2017-03-30 11:19:05 +02:00
Renaud Pawlak
9175b8a5a8 improved java model support + more native support 2017-03-24 10:50:13 +01:00
Renaud Pawlak
7a3505613b adapt test for @Replace (and test around replacement) 2017-03-18 07:52:01 +01:00
Renaud Pawlak
77d384751c support for @Replace (with markers) 2017-03-17 13:56:49 +01:00
Renaud Pawlak
2ebb0b2f35 better public API for adapters (and extended elements) 2017-03-15 09:15:54 +01:00
Renaud Pawlak
f6d236c7bc native support for Map.entrySet 2017-03-10 17:54:01 +01:00
Renaud Pawlak
66c9df1c4d more built-in support for Java APIs 2017-03-10 16:22:54 +01:00
Renaud Pawlak
1d6c6cc4a9 add native support for java.lang.Stack 2017-03-10 12:02:08 +01:00
Renaud Pawlak
071b35e390 adapt class/constructor comments to conform to JSDoc 2017-02-23 14:29:50 +01:00
Renaud Pawlak
e991a3fe97 add an option to set a header file 2017-02-23 11:32:45 +01:00
Renaud Pawlak
41a5a8f033 do not delegate jsdoc adaptation 2017-02-22 11:53:36 +01:00
Renaud Pawlak
f560af79d8 added includes/excludes filters for command-line launcher + test 2017-02-21 11:30:46 +01:00
Renaud Pawlak
6238b6f97a revert over-engineered/typed API + test + change adapter life cycle 2017-02-21 09:25:45 +01:00
Renaud Pawlak
3294131670 fix issue #220 (+test) 2017-02-20 13:48:14 +01:00
Renaud Pawlak
b6588b37e7 fix #221 2017-02-20 13:12:40 +01:00
Renaud Pawlak
f51bd15cae Add support for annotation adapters
- annotation adapters can be used to change the way the Java AST is
annotated in a chainable and composable way
- add a simple extension using annotations (issue #219)
- add a test
2017-02-20 12:32:06 +01:00
Louis Grignon
283fc93d26 add #222 test 2017-02-12 15:22:40 +01:00
Renaud Pawlak
4ceffd4172 fix regression + test for $super 2017-02-09 09:49:12 +01:00
lgrignon
5e0c9aa680 method with special characters 2017-02-09 08:27:38 +01:00
lgrignon
fc85e93a88 method names with invalid chars 2017-02-08 19:23:53 +01:00
Renaud Pawlak
b0f2a047a4 fixed special characters in field names 2017-02-07 13:53:19 +01:00
Renaud Pawlak
e2eff87bac better support for cloning and field initialization
- clone behaves much like Java clone
- fields are initialized with Java-like default values (null, 0) instead
of undefined
2017-02-07 12:11:34 +01:00
Renaud Pawlak
8feea10338 add an instanceof test for superclasses 2017-02-07 09:06:58 +01:00
lgrignon
cbc5fe7339 fixed forbidden chars in @Name 2017-02-05 15:30:25 +01:00
lgrignon
8041fba8b2 integrated PR https://github.com/cincheo/jsweet/pull/217 fixing https://github.com/cincheo/jsweet/issues/216 2017-02-04 17:36:45 +01:00
Renaud Pawlak
ec44c6e9a1 small adjustments 2017-02-03 18:25:03 +01:00
Renaud Pawlak
028bc72312 MAJOR: fixed various complex issues with overloading and Java APIs
- more extensive support of overloading (including distinction when
possible between types that were not distinguishable so far -- for
instance double, float, and int, or String and char)
- better support of Java APIs (arrays, collections)
2017-02-02 18:57:10 +01:00
Renaud Pawlak
9d34ac3962 support for toArray(targetArray) 2017-02-01 17:34:01 +01:00
Renaud Pawlak
6c0ab0dd56 initialize array of numbers with 0 to conform to Java semantics 2017-02-01 16:13:48 +01:00
Renaud Pawlak
9052940c18 support more overload cases 2017-02-01 15:33:05 +01:00
Renaud Pawlak
984d905632 better support for array overloading 2017-01-31 22:22:35 +01:00
Renaud Pawlak
f60d839f6a better jsdoc support 2017-01-28 11:08:55 +01:00
Renaud Pawlak
1fddf0e68f first support for JSDoc 2017-01-27 15:20:37 +01:00
Renaud Pawlak
c789f3af14 fix cast issue for type variables 2017-01-25 09:02:19 +01:00
Renaud Pawlak
5b1cf57841 add more code generation tuning
- allow adapting case statements
- add an annotation to substitute a Java method body with plain raw
TypeScript
2017-01-25 05:22:10 +01:00
Renaud Pawlak
ca7126d02e more native support
- Arrays.deepEquals
- Some TimeZone basic functions
- Number.xxxValue() to go to primitive type
- fixed bug in casting to longs
- Number.compare(n1,n2)
2017-01-22 20:47:34 +01:00
Renaud Pawlak
f98745ac24 fix problems with @Erased 2017-01-22 11:33:07 +01:00
Renaud Pawlak
c80fb0ce63 more extensive support for enums and inner classes
- abstract methods and anonymous classes are not allowed in enums (see
the test)
- now you have basic support for local classes declared in methods (wip)
- recursive structure support improved (with some code cleaning)
2017-01-20 20:56:37 +01:00
Renaud Pawlak
0a35b6ed5c basic built-in support for calendars 2017-01-20 12:22:44 +01:00
Renaud Pawlak
deb7bb9188 more built-in support 2017-01-19 18:10:54 +01:00
Renaud Pawlak
f7f8e037bf default basic support for WeakHashMap 2017-01-19 16:19:27 +01:00
Renaud Pawlak
0b29505ed3 default basic support for java.text.Collator 2017-01-19 16:14:31 +01:00