mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-17 11:21:39 -10:00
- System.CodeDom: lotsa corrections - System.CodeDom.Compiler: CodeGenerator about 80% complete - Microsoft.CSharp: CSharpCodegenerator intro svn path=/trunk/mcs/; revision=4980
70 lines
1.1 KiB
C#
70 lines
1.1 KiB
C#
//
|
|
// System.CodeDom.Compiler CodeDomProvider Class implementation
|
|
//
|
|
// Author:
|
|
// Daniel Stodden ([email protected])
|
|
//
|
|
// (C) 2002 Ximian, Inc.
|
|
//
|
|
|
|
using System.ComponentModel;
|
|
using System.IO;
|
|
|
|
namespace System.CodeDom.Compiler
|
|
{
|
|
public abstract class CodeDomProvider
|
|
: Component
|
|
{
|
|
//
|
|
// Constructors
|
|
//
|
|
protected CodeDomProvider()
|
|
{
|
|
}
|
|
|
|
//
|
|
// Properties
|
|
//
|
|
public virtual string FileExtension {
|
|
get {
|
|
return String.Empty;
|
|
}
|
|
}
|
|
|
|
public virtual LanguageOptions LanguageOptions {
|
|
get {
|
|
return LanguageOptions.None;
|
|
}
|
|
}
|
|
|
|
//
|
|
// Methods
|
|
//
|
|
public abstract ICodeCompiler CreateCompiler();
|
|
|
|
public abstract ICodeGenerator CreateGenerator();
|
|
|
|
public virtual ICodeGenerator CreateGenerator( string fileName )
|
|
{
|
|
return CreateGenerator();
|
|
}
|
|
|
|
public virtual ICodeGenerator CreateGenerator( TextWriter output )
|
|
{
|
|
return CreateGenerator();
|
|
}
|
|
|
|
public virtual ICodeParser CreateParser()
|
|
{
|
|
return null;
|
|
}
|
|
|
|
[MonoTODO]
|
|
public virtual TypeConverter GetConverter( Type type )
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
|
|
}
|
|
}
|