[Mono-list] PATCH: Various fixes to C# CodeDom provider

Jaroslaw Kowalski jaak@zd.com.pl
Sat, 16 Aug 2003 00:49:22 +0200


Ooops,

Obviously I've made my ChangeLog entry to the wrong file. I suppose my
comments should go to

mcs/class/System/Microsoft.CSharp/ChangeLog instead of
mcs/class/System/ChangeLog.

Jarek

----- Original Message ----- 
From: "Jaroslaw Kowalski" <jaak@zd.com.pl>
To: <mono-list@ximian.com>
Sent: Saturday, August 16, 2003 12:39 AM
Subject: [Mono-list] PATCH: Various fixes to C# CodeDom provider


>
> 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
>