Kevin Glynn
47607a041e
add option -experimental-unsigned-to-bigger-signed
2011-09-06 15:04:03 +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
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
0ed1e625d8
Change method names to follow Java naming conventions
2011-08-16 15:01:37 +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
317aa189f2
-translator-blanket-throw=false stops adding "throws Exception" to methods and constructors
2011-07-14 19:01:20 +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
e99f0edee7
keep modifiers for internal property vars, just make them private
2011-05-23 12:22:57 +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
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
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
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
7e85ac4a83
fix support for IDisposable.close(), it was broken in SE/Logic :(
2011-05-02 15:35:12 +02:00
Kevin Glynn
0bbd8402db
rename Equals -> equals, GetHashCode -> hashCode (part II)
2011-04-18 19:26:33 +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
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
83480a5b0e
yield was causing an ambiguity. Make translation more solid
2011-03-22 16:57:40 +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
f96c756dca
Allow method calls on "new [] {...}" expressions
2011-03-17 13:57:27 +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
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
Kevin Glynn
40d260d2a0
Print warning if we have two classes with different numbers of generic arguments (we only spot this if they come from the same file)
2011-03-14 17:01:40 +01:00
Kevin Glynn
f92d26412d
NEW -> NEW, NEW_ARRAY, NEW_DELEGATE, NEW_ANON_OBJECT
...
replace var and dynamic by imaginary nodes TYPE_VAR and TYPE_DYNAMIC
2011-03-14 17:00:08 +01:00
Kevin Glynn
2b87e38000
allow type parameters on method declarations in interfaces
2011-03-13 15:18:48 +01:00
Kevin Glynn
85e2e6a663
do not generate dummy enums if the size would be greater than 500
2011-03-13 13:01:57 +01:00
Kevin Glynn
1c7101207d
collecting stars was broken
2011-03-13 10:40:03 +01:00
Kevin Glynn
cd739b9ab7
distinguish new array with a special token. fix broken new object[0].GetEnumerator() type expressions
2011-03-11 15:50:32 +01:00
Kevin Glynn
9c6356c773
fixes needed to stop seg faults on monodevelop
2011-03-11 11:13:27 +01:00
Kevin Glynn
61c7200264
transform events in interface declarations
2011-03-09 08:40:30 +01:00
Kevin Glynn
922f535dcc
generate static constructors in the NetMaker phase, mainly to stop a failed resolve error from the introduced exception constructors which are Java
2011-02-28 20:29:00 +01:00
Kevin Glynn
c0cfaf00c0
Avoid generating some unused dummyCatchVars
2011-02-28 11:25:00 +01:00
Kevin Glynn
85b5e57e3c
move mkGenericTypeAlias and NSPrefix into CommonWalker and start using them consistently
2011-02-17 11:15:47 +01:00
Kevin Glynn
87296d6562
Big Code Reorg
2011-02-12 19:48:16 +01:00