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

423 Commits

Author SHA1 Message Date
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
b3de6b13a0 deal better with classes in no namespace 2011-06-14 09:35:13 +02:00
Kevin Glynn
6cdea283b1 add tests 2011-06-14 09:34:39 +02:00
Kevin Glynn
f6eafa40b0 remove ref to old file 2011-06-10 14:12:35 +02:00
Kevin Glynn
2d24b572eb Add Test Projects 2011-06-10 14:05:32 +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
24ea1b1fc3 remove some unused debug 2011-06-07 17:08:02 +02:00
Kevin Glynn
ac903f3c1d fix extraction from/of partial types and methods 2011-06-01 14:12:03 +02:00
Kevin Glynn
f2ddedd5eb better error message when we can't read trasnlation template 2011-05-31 16:58:20 +02:00
Kevin Glynn
a49a462f45 support && and || in preprocessor expressions 2011-05-31 16:56:31 +02:00
Kevin Glynn
6a17ffbacc Merge branch 'master' of github.com:twiglet/cs2j 2011-05-31 09:21:54 +02:00
Kevin Glynn
9d45e3adef TemplateExtractor should merge partial definitions 2011-05-31 09:17:50 +02:00
Kevin Glynn
b9c34a168e provide blank default for exe.extension 2011-05-26 04:30:44 -05:00
Kevin Glynn
55445b7bd4 allow to add an extension to exes 2011-05-26 03:44:43 -05:00
Kevin Glynn
aa091be77d add releasefromhere target for master releases 2011-05-26 02:20:27 -05:00
Kevin Glynn
abea0d86a1 array_initializers can't be assignments, surely? (spec says they can be, so how to distinguish array initializer form object initializer?) 2011-05-24 15:36:30 +02:00
Kevin Glynn
07e883ca67 vars in foreach statements 2011-05-24 12:18:16 +02:00
Kevin Glynn
3858580335 allow to pass in build target, buildcs2j by default 2011-05-24 12:16:08 +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
63cbb54855 handle null delegates 2011-05-20 14:00:45 +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
4c9deebfe1 add a javaInvoke template for applying a delegate value 2011-05-09 15:57:12 +02:00
Kevin Glynn
7803381f66 type params on interfaces 2011-05-09 15:56:26 +02:00
Kevin Glynn
752f86e065 Ordinarily cast expressions have only unary_expressions as target, but 'as' expansion can provide full expressions 2011-05-06 12:35:07 +02:00
Kevin Glynn
6b3c19f823 fix up jump statements that call methods with ref / out params so that these param's values don't get lost. 2011-05-06 10:44:48 +02:00
Kevin Glynn
ab6882062d -> in this branch 2011-05-05 16:53:06 +02:00
Kevin Glynn
980e721888 - i++ should return new value (this is broken for properties :( )
- if ref / out params are updated from another ref or out param then need to use setValue()
- pre and post statements need to be added around statements (e.g. local_variable_declaration doesn't use embedded_statement)
- jump statements need special treatment (still a bit broken)
2011-05-05 16:15:22 +02:00
Kevin Glynn
fdc89af56b correct translation for Property++ 2011-05-03 15:46:47 +02:00
Kevin Glynn
7e85ac4a83 fix support for IDisposable.close(), it was broken in SE/Logic :( 2011-05-02 15:35:12 +02:00
Kevin Glynn
0a7af29e58 support for ref/out params in calls in if-then-else conditional expression 2011-05-02 12:54:18 +02:00
Kevin Glynn
1c0fa6586b Sets are IEnumerable, fix AddToImports to be satisifed with that 2011-05-02 12:53:30 +02:00
Kevin Glynn
9d6b510a59 support ref and out parameters 2011-04-30 09:29:06 +02:00
Kevin Glynn
82e2dcf770 move imports into CommonWalker so that we can add to imports from JavaMaker too (currently not needed) 2011-04-30 09:28:15 +02:00
Kevin Glynn
2aa89a54d9 to build openmetaverse library 2011-04-27 13:06:38 +02:00