[Mono-list] Javascript and Mono

Jeroen Janssen japj@xs4all.nl
Tue, 07 Jan 2003 08:41:03 +0100


Miguel de Icaza wrote:

>>If we have CodeProvider classes, can we use these for the compiler? (in 
>>other words, the compiler would just be a 'commandline wrapper' around 
>>the CodeProvider class).
>>    
>>
>
>This is a common mistake (I fell for this too when doing mcs).  
>
>The CodeProvider is only used to generate *source code*, not to generate
>or compile code.  You have to write a Reflection.Emit backend.
>  
>

Ok. looks to me like janet's JGenCSharp.cs could then also have been 
written with the CodeProvider classes
(since it generates textual 'csharp' output).

Any idea where the CodeProvider generally is used for? (example: IDE 
code generation wizards?)
---
Jeroen