[Mono-bugs] [Bug 356657] New: [PATCH] CodeGenerator: Replace ugly if-else chains by visitor pattern
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Mon Jan 28 08:35:22 EST 2008
https://bugzilla.novell.com/show_bug.cgi?id=356657
Summary: [PATCH] CodeGenerator: Replace ugly if-else chains by
visitor pattern
Product: Mono: Class Libraries
Version: SVN
Platform: Other
OS/Version: Other
Status: NEW
Severity: Enhancement
Priority: P5 - None
Component: System
AssignedTo: mono-bugs at lists.ximian.com
ReportedBy: juraj at hotfeet.ch
QAContact: mono-bugs at lists.ximian.com
Found By: ---
Created an attachment (id=191985)
--> (https://bugzilla.novell.com/attachment.cgi?id=191985)
proposed patch
I've posted this patch to the mailing list multiple times and got no echo
whatsoever. Maybe a bug report is the way to go...
Attached you'll find patches for CodeGenerator.cs and quite a few
System.CodeDom classes. 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 to Robert Jordan, for sketching out how to apply the
Visitor pattern to the CodeGenerator/CodeDom classes!
The patch is a bit long only because it contains a lot of boiler plate code.
ChangeLog entries are included, all unit tests pass.
Please review.
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
More information about the mono-bugs
mailing list