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

23 Commits

Author SHA1 Message Date
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
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
82a57ca0a0 don't crash if enum is empty 2011-03-16 12:44:44 +01:00
Kevin Glynn
9c627e98ab Put braces around switch -> if-then-else transformation 2011-03-14 17:00:54 +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
d4e7da95ca fix >>= token 2011-03-13 13:46:00 +01:00
Kevin Glynn
9a1febb5a9 (Closes GH-8): In switch statements the default can appear anywhere (doesn't have to be last, who knew?). This was breaking the conversion to if..then..else. Added code to save away the default section separately. 2011-03-13 10:42:34 +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
7295a5df93 (Closes GH-5): If we are in the context of a generic type argument then generate Object Type equivalents, instead of primitive types 2011-03-04 11:29:53 +01:00
Kevin Glynn
b4f8818196 When looking for properties we need to specify read or write because they may appear in different parent classes 2011-03-01 11:00:29 +01:00
Kevin Glynn
895b538ba0 be more careful about collecting the components of a qualified type. Do it via thedottedtext return value instead of relying on passing it via UnknownRepTemplate (that meant we would be looking for qualified type names when we shouldn't be) 2011-02-28 20:30:29 +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
e4600b7885 Support for Generic Types (to be continued ....). 2011-02-28 12:34:49 +01:00
Kevin Glynn
590efcda26 New option: warning-resolve-failures for when we can't find a translation. Off by default because it can be very noisy 2011-02-25 14:07:31 +01:00
Kevin Glynn
b6d57d4bd2 identify typevars in findType. TypeVarRepTemplate derives from ClassRepTemplate so that we don't try to initialise variables of type T 2011-02-18 17:05:00 +01:00
Kevin Glynn
94fa86d57e Retain complete unknown types in final source 2011-02-18 16:25:15 +01:00
Kevin Glynn
adb34dffbe Change to create instantiated generic types. For the moment we probably just have arrays working(ish) 2011-02-18 15:26:30 +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
07cfecff4e error if we can't find class name in the environment 2011-02-14 11:49:55 +01:00
Kevin Glynn
87296d6562 Big Code Reorg 2011-02-12 19:48:16 +01:00