1
0
mirror of https://github.com/twiglet/cs2j.git synced 2025-01-18 13:15:17 +01:00

109 Commits

Author SHA1 Message Date
Kevin Glynn
3c5ec9fcb6 Move additional code fragments into new base classes for JavaMaker and NetMaker 2011-10-09 19:24:45 +02:00
Kevin Glynn
3ef1333259 pass delegate definition into method construction so that we can force arguments to be boxed if needed 2011-09-25 10:26:19 +02:00
Kevin Glynn
dc2f6c6201 type references in templates are now TypeRepRefs rather than straight strings 2011-09-25 10:25:24 +02:00
Kevin Glynn
d1144d51db fix up modifiers. Missing access modifier or explicit internal map to public 2011-09-21 14:38:18 +02:00
Kevin Glynn
946bd4741a Include explicit BoxedJava field in translation templates for primitives 2011-09-21 14:34:50 +02:00
Kevin Glynn
c0c2fe6a1a argument_list argument to JAVAWRAPPERARGUMENTLIST is optional 2011-09-11 17:14:59 +02:00
Kevin Glynn
bc0b63bf12 Do not crash if modifier list is empty 2011-09-08 11:00:42 +02:00
Kevin Glynn
68b1c5d3de S stands for signed ..... 2011-09-07 12:24:19 +02:00
Kevin Glynn
47607a041e add option -experimental-unsigned-to-bigger-signed 2011-09-06 15:04:03 +02:00
Kevin Glynn
8fef1242e9 use built in void type 2011-09-06 10:05:02 +02:00
Kevin Glynn
542cc43895 Add support for alternate translations. So when looking for A.B.C.D.E, we will first look in A.B.C.D.<alt>.E we need this to provide alternate translations for Java method renaming 2011-09-03 10:10:30 +02:00
Kevin Glynn
eb6e71c6e8 handle method renaming in Template Extracter, add Clone -> clone 2011-09-02 14:21:55 +02:00
Kevin Glynn
c07516f1d3 Support for PensError.Error.GET_MESSAGE etc. 2011-09-02 10:41:30 +02:00
Kevin Glynn
4e95c2b446 Translate method names in interfaces if using JavaNaming Convention 2011-09-02 10:40:50 +02:00
Kevin Glynn
fb717e5dcb special treatment for clone() 2011-09-02 10:40:07 +02:00
Kevin Glynn
78a6cfc4b5 Support 'params' arguments to methods, constructors, indexers (variable length arguments) 2011-08-25 18:01:17 +02:00
Kevin Glynn
6544471683 Java bytes are signed, so it is plain Byte that we don't have a good translation for 2011-08-16 15:19:01 +02:00
Kevin Glynn
0ed1e625d8 Change method names to follow Java naming conventions 2011-08-16 15:01:37 +02:00
Kevin Glynn
64db7fd578 Send in a dummy placeholder for __arglist parameter 2011-08-11 19:29:07 +02:00
Kevin Glynn
215f8fdd1a Only set hasTyArgs if we actually had tyArgs! 2011-08-09 12:35:23 +02:00
Kevin Glynn
8c7965f04c generate javadoc from XML Documentation Comments 2011-07-26 10:07:11 +02:00
Kevin Glynn
d928e3c7bf before invoking delegates in a Multi instance make a copy of the invocation list and invoke from that in case they manipulate the original delegate 2011-07-18 20:34:45 +02:00
Kevin Glynn
1b2222254a Make sure we process type sin delegate arguments correctly 2011-07-15 17:18:54 +02:00
Kevin Glynn
317aa189f2 -translator-blanket-throw=false stops adding "throws Exception" to methods and constructors 2011-07-14 19:01:20 +02:00
Kevin Glynn
7104c56382 add missing space for goto statement 2011-07-12 15:29:29 +02:00
Kevin Glynn
831dfab86b comment out unused code 2011-07-12 15:28:55 +02:00
Kevin Glynn
d4c5b20e97 support for -experimental-enums-numericconsts and -experimental-unsigned-translatesigned 2011-06-14 09:38:13 +02:00
Kevin Glynn
2363e9da5e abstract properties 2011-06-14 09:36:49 +02:00
Kevin Glynn
d855f757ae Support for Partial Types.
Reworked earlier attempt that tried to collect them after JavaMaker phase. Realised it is better to go all the way through to generating strings because we need the original token stream to do that and partial types can be splity across different files.

Its actually simpler this way.
2011-06-10 13:27:40 +02:00
Kevin Glynn
0b8e05d0a6 implement top level partial types 2011-06-07 17:11:29 +02:00
Kevin Glynn
ac903f3c1d fix extraction from/of partial types and methods 2011-06-01 14:12:03 +02:00
Kevin Glynn
9d45e3adef TemplateExtractor should merge partial definitions 2011-05-31 09:17:50 +02:00
Kevin Glynn
07e883ca67 vars in foreach statements 2011-05-24 12:18:16 +02:00
Kevin Glynn
10261f6406 in var x = exp; If we know the type of exp then use it for x 2011-05-23 12:23:59 +02:00
Kevin Glynn
e99f0edee7 keep modifiers for internal property vars, just make them private 2011-05-23 12:22:57 +02:00
Kevin Glynn
ec95442ac2 support ref params in lambda expressions, and support short cut assignment operators for ref params 2011-05-22 18:40:10 +02:00
Kevin Glynn
f9e6716aaa more fixes to get monodevelop to pass without seg fault 2011-05-22 13:35:32 +02:00
Kevin Glynn
ac2417a6c6 various so that we can chomp through monodevelop. mostly it seems to be workarounds for antlr :( 2011-05-20 19:54:47 +02:00
Kevin Glynn
c457c5c6f8 fixes after stress test against libomv 2011-05-20 15:34:16 +02:00
Kevin Glynn
f49d562c9c treat normal events like fields (their delegate type is sufficient for the translation). Still need to address add/remove blocks 2011-05-20 13:40:32 +02:00
Kevin Glynn
05c15f501a support for += and -= for delegates 2011-05-20 13:08:11 +02:00
Kevin Glynn
53e2c3b8c7 support for adding / subtracting delegates 2011-05-20 09:20:54 +02:00
Kevin Glynn
9e9bba2f40 pass type contexts a bit more widely 2011-05-19 22:31:08 +02:00
Kevin Glynn
d71a5f83f2 lambda body: expression -> statement by adding return 2011-05-19 22:30:17 +02:00
Kevin Glynn
ea85f4a396 little bits so that ScormEngine translation doesn't regress 2011-05-19 18:28:20 +02:00
Kevin Glynn
e39fc12be4 Make delegate classes / interfaces static if they are inner 2011-05-19 17:31:14 +02:00
Kevin Glynn
1967cfb048 fix up inherits for MultiDelegateClass case when type params are involved 2011-05-19 17:17:42 +02:00
Kevin Glynn
84a767f445 big delegates commit. Autogenerated code for delegate support is pretty much done now 2011-05-19 16:37:45 +02:00
Kevin Glynn
76bb9265ca delegates are rewritten to interfaces 2011-05-09 15:59:06 +02:00
Kevin Glynn
7803381f66 type params on interfaces 2011-05-09 15:56:26 +02:00