Wiki

Ticket #18 (new task)

Opened 10 years ago

Last modified 8 years ago

CodeDom Support

Reported by: Chuck Owned by:
Priority: major Milestone:
Component: Cobra IDE: Miscellaneous Version: 0.8.0
Keywords: Cc: gauthier.segay@…

Description

Implement CodeDom support.

Change History

  Changed 10 years ago by Chuck

  • type changed from defect to task

follow-up: ↓ 3   Changed 9 years ago by gauthier

  • cc gauthier.segay@… added

I would like to help with this, but I got

error: COBRA INTERNAL ERROR / NullReferenceException / Object reference not set to an instance of an object.
Compilation failed - 1 error, 0 warnings

when instanciating Compiler class

class Program
	def main is shared
		cobra = Compiler()

in reply to: ↑ 2   Changed 9 years ago by gauthier

well working on CobraCodeGenerator?, using MSDN SDK sample to drive my coding right now:  http://msdn.microsoft.com/en-us/library/h82xde1t.aspx

will also write unit tests as soon as I grasp the CodeDom stuffs

all of this will take some time since I'm new to CodeDom

  Changed 9 years ago by Chuck

Sounds like you have a start. Thanks for helping out.

  Changed 9 years ago by gauthier

Implementation is ongoing, now driven by asp.net code generator.

I've got to workaround design issue of the abstract CodeGenerator? class that avoid unit testable code by delegating protected method calls to public methods (can make them internal, visible to tests).

Once I have usefull code base I will resume unit test writting as well as publishing the implementation for everyone to review.

  Changed 8 years ago by gauthier

added my initial code to googlecode:

 http://code.google.com/p/cobra-codedom/

I don't have much time to spend on it right now, but with some help from others contribution I think the work could be done quickly.

Note: See TracTickets for help on using tickets.