ICodeGenerator.cs 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. //
  2. // System.CodeDom.Compiler ICodeGenerator Interface
  3. //
  4. // Author:
  5. // Miguel de Icaza ([email protected])
  6. // Daniel Stodden ([email protected])
  7. //
  8. // (C) 2001 Ximian, Inc.
  9. //
  10. namespace System.CodeDom.Compiler
  11. {
  12. using System.CodeDom;
  13. using System.IO;
  14. public interface ICodeGenerator
  15. {
  16. //
  17. // Methods
  18. //
  19. string CreateEscapedIdentifier( string value );
  20. string CreateValidIdentifier( string value );
  21. void GenerateCodeFromCompileUnit( CodeCompileUnit compileUnit,
  22. TextWriter output,
  23. CodeGeneratorOptions options );
  24. void GenerateCodeFromExpression( CodeExpression expression,
  25. TextWriter output,
  26. CodeGeneratorOptions options );
  27. void GenerateCodeFromNamespace( CodeNamespace ns,
  28. TextWriter output,
  29. CodeGeneratorOptions options );
  30. void GenerateCodeFromStatement( CodeStatement statement,
  31. TextWriter output,
  32. CodeGeneratorOptions options );
  33. void GenerateCodeFromType( CodeTypeDeclaration typeDeclaration,
  34. TextWriter output,
  35. CodeGeneratorOptions options );
  36. string GetTypeOutput( CodeTypeReference type );
  37. bool IsValidIdentifier( string value );
  38. bool Supports( GeneratorSupport supports );
  39. void ValidateIdentifier( string value );
  40. }
  41. }