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

426 Commits

Author SHA1 Message Date
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
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
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
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
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
42d851a739 more sensible version number 2011-03-23 15:53:01 +01:00
Kevin Glynn
d270148bba Hmmmm, added \n as newline separator, windows was generating more than 120 lines. probably due to line endings in comments 2011-03-23 09:50:48 -05:00
Kevin Glynn
ed14c2b1a1 Forgot to populate xml document. while I'm there use same code as signer to get signature 2011-03-23 09:18:17 -05:00
Kevin Glynn
ab2daebcbf specify tx files via csdir 2011-03-23 14:53:25 +01:00
Kevin Glynn
83480a5b0e yield was causing an ambiguity. Make translation more solid 2011-03-22 16:57:40 +01:00
Kevin Glynn
468f099417 Enable Trial 2011-03-22 09:12:00 +01:00
Kevin Glynn
2cf5701edb track if we are in a statement list context. If so, don't generate ugly braces around using and switch translations 2011-03-22 08:28:45 +01:00
Kevin Glynn
75dee12b3f Support limiting number of lines output 2011-03-21 17:00:24 +01:00
Kevin Glynn
96aedea537 mogrify key a bit 2011-03-21 12:12:10 +01:00
Kevin Glynn
257b7fc186 Add code to count unsigned translation files 2011-03-21 10:27:35 +01:00
Kevin Glynn
b12fce2bff move a copy of output templates into the executable so that we don;t have to distribute them 2011-03-18 18:40:24 +01:00
Kevin Glynn
905dde4b39 move resources out of src folder 2011-03-18 17:37:59 +01:00
Kevin Glynn
72e5b1b15f Add pub/private keys for signing translation files 2011-03-18 17:32:41 +01:00
Kevin Glynn
5c65b350b7 Add a utility to generate a rsa key pair and a utility to use the private key to sign xml files 2011-03-18 17:28:55 +01:00
Kevin Glynn
f96c756dca Allow method calls on "new [] {...}" expressions 2011-03-17 13:57:27 +01:00
Kevin Glynn
69643b72ee whoops, can't count 2011-03-17 12:18:44 +01:00
Kevin Glynn
2f08d9c236 Add non-breaking space to Whitespace lexer rules 2011-03-17 12:18:32 +01:00
Kevin Glynn
4fdcf95d6a Support interface prefix on indexer declarations (not that we actually support these atm ....) 2011-03-17 09:48:56 +01:00
Kevin Glynn
d3872ee2b7 pass yield statements through as [unsupported] comments 2011-03-16 14:48:56 +01:00
Kevin Glynn
7e74699021 conditional expressions have full expressions (e.g. assignments) as arguments 2011-03-16 12:44:52 +01:00
Kevin Glynn
82a57ca0a0 don't crash if enum is empty 2011-03-16 12:44:44 +01:00
Kevin Glynn
893cc08278 Just pick out the rewritten elements from interface_indexer translation 2011-03-16 12:38:30 +01:00
Kevin Glynn
58d0405edc strip U characters from integer literal suffixes 2011-03-15 10:48:46 +01:00
Kevin Glynn
7ca153b7bc There are no commas between multiple where clauses in a type parameter constraint 2011-03-15 10:48:23 +01:00
Kevin Glynn
50bee76c4d Do not transform block if we are in backtracking mode 2011-03-14 17:02:42 +01:00