mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-18 03:51:19 -10:00
- System.CodeDom: lotsa corrections - System.CodeDom.Compiler: CodeGenerator about 80% complete - Microsoft.CSharp: CSharpCodegenerator intro svn path=/trunk/mcs/; revision=4980
54 lines
1.2 KiB
C#
Executable File
54 lines
1.2 KiB
C#
Executable File
//
|
|
// System.CodeDom.Compiler ICodeGenerator Interface
|
|
//
|
|
// Author:
|
|
// Miguel de Icaza ([email protected])
|
|
// Daniel Stodden ([email protected])
|
|
//
|
|
// (C) 2001 Ximian, Inc.
|
|
//
|
|
|
|
namespace System.CodeDom.Compiler
|
|
{
|
|
using System.CodeDom;
|
|
using System.IO;
|
|
|
|
public interface ICodeGenerator
|
|
{
|
|
//
|
|
// Methods
|
|
//
|
|
string CreateEscapedIdentifier( string value );
|
|
|
|
string CreateValidIdentifier( string value );
|
|
|
|
void GenerateCodeFromCompileUnit( CodeCompileUnit compileUnit,
|
|
TextWriter output,
|
|
CodeGeneratorOptions options );
|
|
|
|
void GenerateCodeFromExpression( CodeExpression expression,
|
|
TextWriter output,
|
|
CodeGeneratorOptions options );
|
|
|
|
void GenerateCodeFromNamespace( CodeNamespace ns,
|
|
TextWriter output,
|
|
CodeGeneratorOptions options );
|
|
|
|
void GenerateCodeFromStatement( CodeStatement statement,
|
|
TextWriter output,
|
|
CodeGeneratorOptions options );
|
|
|
|
void GenerateCodeFromType( CodeTypeDeclaration typeDeclaration,
|
|
TextWriter output,
|
|
CodeGeneratorOptions options );
|
|
|
|
string GetTypeOutput( CodeTypeReference type );
|
|
|
|
bool IsValidIdentifier( string value );
|
|
|
|
bool Supports( GeneratorSupport supports );
|
|
|
|
void ValidateIdentifier( string value );
|
|
}
|
|
}
|