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

42 Commits

Author SHA1 Message Date
Kevin Glynn
826bf6b515 grrr, wasn't properly copying the invoker method causing painful to debug symptoms :( 2011-11-13 21:43:37 +01:00
Kevin Glynn
b75004cd20 Can make a fresh copy by calling Instantiate(null) 2011-10-13 15:58:39 +02:00
Kevin Glynn
a3b3e67d76 make has_boxed_rep explicit in translation templates for primitive types, "guessing" wasn't working out 2011-10-12 10:30:57 +02:00
Kevin Glynn
985368b2e5 Handle any 'params' parameter 2011-10-10 09:34:22 +02:00
Kevin Glynn
eb760267f9 add HasBoxedRep for types that need different translations when they are in a boxed context 2011-10-09 19:25:51 +02:00
Kevin Glynn
dc2f6c6201 type references in templates are now TypeRepRefs rather than straight strings 2011-09-25 10:25:24 +02:00
Kevin Glynn
946bd4741a Include explicit BoxedJava field in translation templates for primitives 2011-09-21 14:34:50 +02:00
Kevin Glynn
3ad0b16e4b Changes necessary to ensure that mono and windows both serialize templates identically 2011-09-07 11:12:05 +02:00
Kevin Glynn
1001d5151f support variants in translation templates 2011-09-06 10:03:36 +02:00
Kevin Glynn
6acf9f9241 make sure casts are to EXACTLY the right type, we don't want to lose information 2011-09-06 10:03:00 +02:00
Kevin Glynn
eb6e71c6e8 handle method renaming in Template Extracter, add Clone -> clone 2011-09-02 14:21:55 +02:00
Kevin Glynn
78a6cfc4b5 Support 'params' arguments to methods, constructors, indexers (variable length arguments) 2011-08-25 18:01:17 +02:00
Kevin Glynn
e4a6dd5759 do not try to validate with a schema 2011-08-16 16:07:49 +02:00
Kevin Glynn
0ed1e625d8 Change method names to follow Java naming conventions 2011-08-16 15:01:37 +02:00
Kevin Glynn
b0bc6dca4d Add skeleton support for template schemas, but don't enable it. Can't make a schema with arbitrary ordering of type elements :( 2011-07-29 12:02:12 +02:00
Kevin Glynn
ac903f3c1d fix extraction from/of partial types and methods 2011-06-01 14:12:03 +02:00
Kevin Glynn
f2ddedd5eb better error message when we can't read trasnlation template 2011-05-31 16:58:20 +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
84a767f445 big delegates commit. Autogenerated code for delegate support is pretty much done now 2011-05-19 16:37:45 +02:00
Kevin Glynn
4c9deebfe1 add a javaInvoke template for applying a delegate value 2011-05-09 15:57:12 +02:00
Kevin Glynn
9d6b510a59 support ref and out parameters 2011-04-30 09:29:06 +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
a611047b13 rename Equals -> equals, GetHashCode -> hashCode 2011-04-18 18:03:32 +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
01a5d58bd1 Fix up InstantiatedTypes during substituion pass, not as side effect of mkTypeMap 2011-03-04 18:10:13 +01:00
Kevin Glynn
a39ab27081 Don't cache FormattedTypeName. We have at least two representations using this routine. Move to callers if necessary 2011-03-04 18:08:30 +01:00
Kevin Glynn
d20d2c689e do not freak out if we get an args of null 2011-03-04 12:51:39 +01:00
Kevin Glynn
a272b8105d Don't return null - return UnknownRepType 2011-03-02 21:42:19 +01:00
Kevin Glynn
8faedcd10a comment out broken IsA definition, rely on working version in base. Be explicit that typevars can ac like Object. 2011-03-02 19:36:48 +01:00
Kevin Glynn
52e51613cc improved BuildType, should work for generic types now 2011-03-02 19:35:29 +01:00
Kevin Glynn
df2798a3a1 replace SurroundingTypeName by SurroundingType, so that components have access to all the features of their type, in particular the type parameters. Allows for better mkJava code 2011-03-02 19:34:32 +01:00
Kevin Glynn
792836217a for pretty printing we use <> around type arguments, but otherwise we use *[..]* 2011-03-02 19:31:41 +01:00
Kevin Glynn
e8b59d4fdb simplify SubstituteInType, just try all strings that match [\w|\.]+ 2011-03-02 19:29:07 +01:00
Kevin Glynn
8e788fbb46 Make Iterable translation work in generic types 2011-03-01 11:42:09 +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
e4600b7885 Support for Generic Types (to be continued ....). 2011-02-28 12:34:49 +01:00
Kevin Glynn
f1db436236 fix up indentation, its not perfect but its close and consistent 2011-02-21 16:40:42 +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
0b380e063d Add TypeVarRepTemplates, keep track of type var instantiations 2011-02-18 15:24:41 +01:00
Kevin Glynn
87296d6562 Big Code Reorg 2011-02-12 19:48:16 +01:00