[Mono-dev] [PATCH] CodeGenerator/CodeDom classes

Juraj Skripsky js at hotfeet.ch
Wed Jan 9 16:59:48 EST 2008


Hello,

Attached you'll find patches for CodeGenerator.cs and quite a few
System.CodeDom classes. Also included is a new file ICodeDomVisitor.cs
which belongs into System/System.CodeDom. ChangeLog entries are
included.

These patches replace those (ugly ones) I posted on Jan 6th. They
implement the Visitor pattern for the CodeGenerator (traverser) and the
classes in System.CodeDom (nodes to be visited)*. The result is much
nicer and faster code.

*) Thanks again Robert Jordan, for sketching out how to apply the
Visitor pattern to the CodeGenerator/CodeDom classes!

All unit tests pass.
Please review.

- Juraj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: CodeDom.patch
Type: text/x-patch
Size: 23691 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20080109/386e8359/attachment.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: CodeGen.patch
Type: text/x-patch
Size: 18328 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20080109/386e8359/attachment-0001.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ICodeDomVisitor.cs
Type: text/x-csharp
Size: 3373 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20080109/386e8359/attachment-0002.bin 


More information about the Mono-devel-list mailing list