mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-17 11:21:39 -10:00
* CodeCompiler.cs: Nearly completely implemented * CodeDomProvider.cs: Added missing Attribute, restyled according to style guidelines * CodeGenerator.cs: Fixed visibilies, added missing members, implemented members, stubbed out missing member, restyled according to style guidelines * CodeParser.cs: Added and implemented (ok no real implementation needed ;) * CompilerErrorCollection.cs: Removed unneeded MonoTODOs, restyled according to style guidelines * CompilerParameters.cs: Fixed wrong properties, Added Initializers, restyled according to style guidelines * CompilerResults.cs: Added Evidence property, added initial values * Executor.cs: Added and partially implemented (should probably be used by CodeCompiler) * CompilerOptions.cs: Deleted this file (such a class does not exist) svn path=/trunk/mcs/; revision=15992
69 lines
1.1 KiB
C#
69 lines
1.1 KiB
C#
//
|
|
// System.CodeDom.Compiler.CodeDomProvider.cs
|
|
//
|
|
// Author:
|
|
// Daniel Stodden ([email protected])
|
|
//
|
|
// (C) 2002 Ximian, Inc.
|
|
//
|
|
|
|
using System.ComponentModel;
|
|
using System.IO;
|
|
|
|
namespace System.CodeDom.Compiler
|
|
{
|
|
[ToolboxItem (""), DesignerCategory ("Component")]
|
|
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;
|
|
}
|
|
|
|
public virtual TypeConverter GetConverter (Type type)
|
|
{
|
|
return TypeDescriptor.GetConverter (type);
|
|
}
|
|
|
|
}
|
|
}
|