Hi all! I needed to use CodeDom functionality of Mono but it was broken (or not compatible with MS) in some places, so I fixed it.
My changes (all in System.dll):
* Microsoft.CSharp/CSharpCodeGenerator.cs:
- fixed support for method references where target
object is null
- fixed CodeThrowExceptionStatement
- disabled member access modifiers for private method
implementations
- disabled generation of empty method body for interface
declarations
- disabled generation of empty property accessor bodies
in interface declarations
- added support for indexers (properties named "Item")
- added support for chained constructor arguments and
base constructor arguments
* System.CodeDom/CodeTypeDeclaration.cs:
- TypeAttributes of CodeTypeDeclaration now defaults to
TypeAttributes.Public (same as MS implementation)
Can anybody please review my patch (made against fresh anoncvs) and commit
it to CVS? ChangeLog included.
It was tested on my quite complicated CodeDom tree and now it produces
output that compiles without problems.
Jarek
codedom.diff
Description: Binary data
