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

259 Commits

Author SHA1 Message Date
Kevin Glynn
788db4523d translate operators when args are string or datetime 2011-02-04 15:37:11 +01:00
Kevin Glynn
f13ac6a7d5 give a type to real literals 2011-02-04 12:21:32 +01:00
Kevin Glynn
62659c1def If a class inherits from System.Attribute then convert to annotation 2011-02-04 11:58:50 +01:00
Kevin Glynn
1eefd61854 simplify rules by pushing atts and modifiers down into type descriptions 2011-02-04 10:05:07 +01:00
Kevin Glynn
c2633e58d5 collect uses later so that we include the type - needed for nested entities 2011-02-04 08:51:16 +01:00
Kevin Glynn
d35eab4be3 decimal -> double 2011-02-04 08:50:41 +01:00
Kevin Glynn
dd23453b72 support for <exp>[ff] <op>= <rhs> 2011-02-04 06:21:58 +01:00
Kevin Glynn
839a67bf19 support for Prop <op>= exp 2011-02-03 17:34:54 +01:00
Kevin Glynn
283d0d4d7a Cast Objects to boxed types, not unboxed types 2011-02-02 16:53:27 +01:00
Kevin Glynn
b091f2a08b Add IsUnboxedType for cases where we know that the expression / type is unboxed. Unused for now 2011-02-02 16:52:35 +01:00
Kevin Glynn
6add10d734 Add IsExplicitNull. If a type is attched to an explicit null then it has any type you like ... 2011-02-01 22:36:08 +01:00
Kevin Glynn
45bc3d78de cope with untranslatable replacements 2011-02-01 22:35:13 +01:00
Kevin Glynn
fb4d2e0ae8 java wrapper tamplates can now include a precedence in marker names so that parenthesis will be added if required, e.g. %{this:16}. says that the context of has a precedence of 16, see table in JavaPrettyPrint.g 2011-01-31 20:46:29 +01:00
Kevin Glynn
6fde5f3c7c add an accessor for parent, though we don't use it, to avoid a warning message 2011-01-31 20:45:08 +01:00
Kevin Glynn
1aeca0f563 process comments before returning: escape \u, because this is a java error even in comments 2011-01-31 16:27:30 +01:00
Kevin Glynn
8fc09afe75 return type from new 'type'[] {...} 2011-01-29 14:27:32 +01:00
Kevin Glynn
a55b7d48e1 add embedded enums 2011-01-29 09:27:04 +01:00
Kevin Glynn
d5bad8bc11 treat failures to resolve as unknowntypes (and then they become eligible to be treated as system.Object) 2011-01-28 18:22:36 +01:00
Kevin Glynn
0d8f99a118 remove lonely break statements 2011-01-28 08:10:28 +01:00
Kevin Glynn
d0c882dd7b finish release document 2011-01-27 18:04:46 +01:00
Kevin Glynn
2b2fc571c6 add file describing release process 2011-01-27 16:57:00 +01:00
Kevin Glynn
26b8a021c2 Make a fresh copy of typereps before instantiating their type variables 2011-01-27 14:11:40 +01:00
Kevin Glynn
8ab08fe52b strip unnecessary extra braces around foreach block, add missing semi 2011-01-26 13:18:30 +01:00
Kevin Glynn
98cf331db2 Add source project for cs2j testing 2011-01-26 11:47:54 +01:00
Kevin Glynn
1fe7bceade add support for iterables 2011-01-26 11:47:15 +01:00
Kevin Glynn
43323f46ea resolve indexers 2011-01-25 18:26:47 +01:00
Kevin Glynn
da43225127 remove indexers, they are compiled into methods 2011-01-25 14:58:44 +01:00
Kevin Glynn
6310e5bfde build arrays 2011-01-25 12:22:03 +01:00
Kevin Glynn
4edac33a13 fix converion if array types to string 2011-01-25 12:21:46 +01:00
Kevin Glynn
8aaa64d8bd add variable args to symbol table 2011-01-25 12:21:10 +01:00
Kevin Glynn
9436713f94 some support for generics, length works for arraya now 2011-01-24 20:19:00 +01:00
Kevin Glynn
c536686bf6 support explicit casts 2011-01-23 17:13:59 +01:00
Kevin Glynn
d27c25c2c8 fix the type of true and false 2011-01-21 19:41:20 +01:00
Kevin Glynn
54acb6c050 whoops, fix for parameterless constructors 2011-01-21 19:05:56 +01:00
Kevin Glynn
b95326690d translate qualified type names 2011-01-21 18:23:11 +01:00
Kevin Glynn
cf3d57a3bd generate cast methods, implement TYPEOF_expr_TYPE 2011-01-21 16:34:23 +01:00
Kevin Glynn
4c882a08e2 Convert some switch statements to if-then-else 2011-01-20 14:34:08 +01:00
Kevin Glynn
7d6a95b347 Merge branch 'master' of github.com:twiglet/cs2j 2011-01-18 17:06:40 +01:00
Kevin Glynn
fd0bee8e58 ok, finally believe that we won't be needing TypeRep's :) 2011-01-18 14:39:36 +01:00
Kevin Glynn
95753d6591 get rid of annoying warning 2011-01-18 14:38:38 +01:00
Kevin Glynn
0bc9a9022c strip off prefix from fully qualified case labels, Java doesn't like them 2011-01-18 10:57:56 +01:00
Kevin Glynn
d760e8528f carry through dotNetType on postinc/dec expressions 2011-01-18 07:40:26 +01:00
Kevin Glynn
66094e129b fix resolve for enums 2011-01-17 18:24:26 +01:00
Kevin Glynn
98b1a8bda5 die CS2JNet. namespace, until I work out when we want you 2011-01-17 15:40:20 +01:00
Kevin Glynn
3655ee59b9 resolve for object creation 2011-01-17 15:32:26 +01:00
Kevin Glynn
7b8e66413f retire parentIsSetter 2011-01-17 13:50:13 +01:00
Kevin Glynn
245ca22844 wrap javawrapper's arguments so that we know how to treat them. make sure literal types ripple up 2011-01-17 12:33:39 +01:00
Kevin Glynn
f9dde00431 if no source drectory given then exit quietly 2011-01-17 04:20:05 -06:00
Kevin Glynn
a879b884fd resolve method names 2011-01-16 23:44:14 +01:00
Kevin Glynn
59a578f82f some method resolution 2011-01-14 19:36:09 +01:00