2 // System.CodeDom.Compiler ICodeGenerator Interface
5 // Miguel de Icaza (miguel@ximian.com)
6 // Daniel Stodden (stodden@in.tum.de)
8 // (C) 2001 Ximian, Inc.
11 namespace System.CodeDom.Compiler
16 public interface ICodeGenerator
21 string CreateEscapedIdentifier( string value );
23 string CreateValidIdentifier( string value );
25 void GenerateCodeFromCompileUnit( CodeCompileUnit compileUnit,
27 CodeGeneratorOptions options );
29 void GenerateCodeFromExpression( CodeExpression expression,
31 CodeGeneratorOptions options );
33 void GenerateCodeFromNamespace( CodeNamespace ns,
35 CodeGeneratorOptions options );
37 void GenerateCodeFromStatement( CodeStatement statement,
39 CodeGeneratorOptions options );
41 void GenerateCodeFromType( CodeTypeDeclaration typeDeclaration,
43 CodeGeneratorOptions options );
45 string GetTypeOutput( CodeTypeReference type );
47 bool IsValidIdentifier( string value );
49 bool Supports( GeneratorSupport supports );
51 void ValidateIdentifier( string value );