public interface ICodeGenerator
|
Implementations of this interface are commonly used in conjunction with the ICodeCompiler implementation for the same language, which can compile
CreateEscapedIdentifier | Creates an escaped identifier for the specified value. |
CreateValidIdentifier | Creates a valid identifier for the specified value. |
GenerateCodeFromCompileUnit | Generates code for the specified Code Document Object Model (CodeDOM) compilation unit and outputs it to the specified text writer using the specified options. |
GenerateCodeFromExpression | Generates code for the specified Code Document Object Model (CodeDOM) expression and outputs it to the specified text writer. |
GenerateCodeFromNamespace | Generates code for the specified Code Document Object Model (CodeDOM) namespace and outputs it to the specified text writer using the specified options. |
GenerateCodeFromStatement | Generates code for the specified Code Document Object Model (CodeDOM) statement and outputs it to the specified text writer using the specified options. |
GenerateCodeFromType | Generates code for the specified Code Document Object Model (CodeDOM) type declaration and outputs it to the specified text writer using the specified options. |
GetTypeOutput | Gets the type indicated by the specified CodeTypeReference. |
IsValidIdentifier | Gets a value that indicates whether the specified value is a valid identifier for the current language. |
Supports | Gets a value indicating whether the generator provides the specified GeneratorSupport. |
ValidateIdentifier | Tests the specified identifier for validity in the current language and source code and throws an exception if the specified value is not a valid identifier. |
value
value
void GenerateCodeFromCompileUnit( |
e
w
o
void GenerateCodeFromExpression( |
e
w
o
void GenerateCodeFromNamespace( |
e
w
o
void GenerateCodeFromStatement( |
e
w
o
void GenerateCodeFromType( |
e
w
o
string GetTypeOutput( |
type
value
bool Supports( |
supports
void ValidateIdentifier( |
value