Welcome to mirror list, hosted at ThFree Co, Russian Federation.

ICodeGenerator.cs « System.CodeDom.Compiler « System « class « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: a853048d20dd4ee8a63e918b44b549c5e3a256cf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
//
// System.CodeDom.Compiler ICodeGenerator Interface
//
// Author:
//   Miguel de Icaza (miguel@ximian.com)
//   Daniel Stodden (stodden@in.tum.de)
//
// (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 );
	}
}