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

547 Commits

Author SHA1 Message Date
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
Kevin Glynn
65bd4c53b7 Translations can have a warning that is emitted at translation time 2011-04-27 13:05:49 +02:00
Kevin Glynn
aa4266bccc make unimplemented message a comment 2011-04-27 13:05:11 +02:00
Kevin Glynn
878dcf69de Don't lowercase excludes filenames, we are case-sensitive everywhere else 2011-04-27 13:04:42 +02:00
Kevin Glynn
0529896ca2 type argument to instanceof cannot be primitive. Arrays are not primitive 2011-04-19 10:23:11 +02:00
Kevin Glynn
0bbd8402db rename Equals -> equals, GetHashCode -> hashCode (part II) 2011-04-18 19:26:33 +02:00
Kevin Glynn
a611047b13 rename Equals -> equals, GetHashCode -> hashCode 2011-04-18 18:03:32 +02:00
Kevin Glynn
03cfff361a missed index increment 2011-04-18 18:02:57 +02:00
Kevin Glynn
696453dbac missed csproj change 2011-04-13 11:46:36 +02:00
Kevin Glynn
e33b58e258 member banes of the form Interface.member are translated as Interface___member 2011-04-13 11:46:12 +02:00
Kevin Glynn
dafcee91d6 Use parseString to generate (java) Collection methods when translating a type that implements ICollection 2011-04-13 11:45:38 +02:00
Kevin Glynn
18fb3d4063 Add parseString and IsJavaish so that we can parse arbitrary snippets of Java(ish) code and weave them into the output 2011-04-13 11:44:29 +02:00
Kevin Glynn
6a40909662 inner classes are declared static because (as I understand it) that is what .Net inner classes / structs really are. 2011-04-06 16:28:01 +02:00
Kevin Glynn
83fcfd0882 Add --experimental-transforms for undercooked implementations and add boxing of primitive types (see noise added to ScormEngine for aesthetic problems) 2011-04-06 16:27:15 +02:00
Kevin Glynn
158e22b44f add mkNonGeneric scope so that we can remove generic arguments from a type if we want to (these aren't carried at runtime, so instanceof has to just check against the base type) 2011-04-06 10:56:18 +02:00
Kevin Glynn
f6e9216b39 keep a patch to make trial version from master 2011-03-27 15:22:47 +02:00
Kevin Glynn
6689f78028 If we notice that we are calling a method on an expression with primitive type, then cast it to the equivalent boxed type first 2011-03-27 09:37:01 +02:00
Kevin Glynn
724119b99b Include local copy of source to antlr3-ant task so that we can modify conversiontimeout parameter 2011-03-26 17:33:31 +01:00
Kevin Glynn
299911f77b Make sure we are using internal java templates, must try to keep up to date .... 2011-03-25 18:21:51 +01:00
Kevin Glynn
8d607c2f47 mkit (and new mkit.bat) now use the ant script to rebuild app 2011-03-25 13:33:35 +01:00
Kevin Glynn
464f69e2f7 Remove conversiontimeout attribute, which is ignored by antlr3-ant task 2011-03-25 13:32:50 +01:00
Kevin Glynn
0a4758a9dd Update contact address 2011-03-25 13:32:07 +01:00
Kevin Glynn
983f0623b1 Revert "Enable Trial" 2011-03-24 12:54:36 +01:00
Kevin Glynn
a41b6ad0d8 fix spelling 2011-03-23 16:33:09 +01:00
Kevin Glynn
94f1edde7d add dist target 2011-03-23 16:31:34 +01:00
Kevin Glynn
31f037b987 updated user doc 2011-03-23 16:25:40 +01:00
Kevin Glynn
42d851a739 more sensible version number 2011-03-23 15:53:01 +01:00