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

32 Commits

Author SHA1 Message Date
Kevin Glynn
0940c53833 implement using statements and fix indentation 2010-12-20 22:05:25 +01:00
Kevin Glynn
9732e938bd unsupported: checed/unchecked/default 2010-12-20 10:58:48 +01:00
Kevin Glynn
710d887c7b varargs support 2010-12-20 10:00:43 +01:00
Kevin Glynn
19bf099ae4 fix generic method calls and add unsupported to explicit interface implementations 2010-12-19 16:13:15 +01:00
Kevin Glynn
71512e308f ToString() -> toString() 2010-12-17 16:37:18 +01:00
Kevin Glynn
a9c0e5acc6 translate new T[] {e,e,e} don't emit 'new' modifier, comment 'extern' 2010-12-17 13:48:09 +01:00
Kevin Glynn
22caf78c9d simple array creation, improved comments for fields, fixed precedence of instanceof 2010-12-17 09:00:02 +01:00
Kevin Glynn
401716aaa1 emit constructors 2010-12-15 12:26:21 +01:00
Kevin Glynn
02e3a859ea fix some precedence booboos 2010-12-13 16:27:06 +01:00
Kevin Glynn
4aa87128e7 fix parens on ops and prettified multiple case labels 2010-12-11 12:59:42 +01:00
Kevin Glynn
8355519858 fix for multiple catch clauses, weird: is list() special in ST? 2010-12-11 11:19:53 +01:00
Kevin Glynn
bcae5ab029 more outputting 2010-12-10 20:36:47 +01:00
Kevin Glynn
b3472021d6 Shovel out comments in more places 2010-12-10 18:57:37 +01:00
Kevin Glynn
5a8a1c4974 added common statement types 2010-12-10 18:16:01 +01:00
Kevin Glynn
55363bc038 progress on outputting expressions and if then else 2010-12-09 17:30:11 +01:00
Kevin Glynn
75ffb63350 add precedence table 2010-12-08 13:47:04 +01:00
Kevin Glynn
41c4479473 more output 2010-12-07 15:30:04 +01:00
Kevin Glynn
81c3d13cf2 emit braces for method bodies when appropriate 2010-12-06 19:56:10 +01:00
Kevin Glynn
afef118a11 method headers 2010-12-06 17:24:18 +01:00
Kevin Glynn
4b761a4410 method headers, elide virtual and override keywords 2010-12-06 10:18:23 +01:00
Kevin Glynn
cdecbce4c0 fix broken CollectComments, split verbatim strings on carriage returns 2010-12-04 13:00:16 +01:00
Kevin Glynn
eafac4ff89 convert predefined types, optional package name, verbatim strings, 2010-12-03 20:17:40 +01:00
Kevin Glynn
f3e1ca6e0b no need for SEP now that types are wrapped 2010-11-24 11:29:30 +01:00
Kevin Glynn
3b786355f3 more templates 2010-11-24 07:27:05 +01:00
Kevin Glynn
9f2015ed92 collect comments as we go, and emit collected comments periodically, emit (some of) field declarations 2010-11-20 15:29:39 +01:00
Kevin Glynn
3adfb22882 add type parameter constraints 2010-11-19 16:49:43 +01:00
Kevin Glynn
765e18384e Emit interfaces and structs (as class)
Don't emit all comments again when multiple classes in a file
2010-11-18 14:23:17 +01:00
Kevin Glynn
1ecc21f0c8 Start of support for classes
- Simplified pretty printer code by passing modifier template into definitions.
2010-11-16 17:29:08 +01:00
Kevin Glynn
f9e748242c support for straightforward enums 2010-11-16 13:51:43 +01:00
Kevin Glynn
01c71e3852 Pass information between driver and parsers via public properties. Pass isLast flag to Pretty Print to print all remaining comments. Be sure to process file sin the same order as C# source 2010-11-15 11:47:32 +01:00
Kevin Glynn
4a4a905eb5 Build packages from each top level type in the file. Emit comments :) 2010-11-13 19:11:47 +01:00
Kevin Glynn
16babbd494 Add template file to control Java pretty printing 2010-11-10 19:03:09 +01:00