The Labs \ Source Viewer \ SSCLI \ System.CodeDom.Compiler \ CodeParser

  1. //------------------------------------------------------------------------------
  2. // <copyright file="CodeParser.cs" company="Microsoft">
  3. //
  4. // Copyright (c) 2006 Microsoft Corporation. All rights reserved.
  5. //
  6. // The use and distribution terms for this software are contained in the file
  7. // named license.txt, which can be found in the root of this distribution.
  8. // By using this software in any fashion, you are agreeing to be bound by the
  9. // terms of this license.
  10. //
  11. // You must not remove this notice, or any other, from this software.
  12. //
  13. // </copyright>
  14. //------------------------------------------------------------------------------
  15. namespace System.CodeDom.Compiler
  16. {
  17.     using System.Text;
  18.    
  19.     using System.Diagnostics;
  20.     using System;
  21.     using Microsoft.Win32;
  22.     using System.IO;
  23.     using System.Collections;
  24.     using System.Reflection;
  25.     using System.CodeDom;
  26.     using System.Security.Permissions;
  27.    
  28.     /// <devdoc>
  29.     /// <para>
  30.     /// Provides a code parsing abstract base class.
  31.     /// </para>
  32.     /// </devdoc>
  33.     [PermissionSet(SecurityAction.LinkDemand, Name = "FullTrust")]
  34.     [PermissionSet(SecurityAction.InheritanceDemand, Name = "FullTrust")]
  35.     public abstract class CodeParser : ICodeParser
  36.     {
  37.        
  38.         /// <devdoc>
  39.         /// <para>
  40.         /// Compiles the given text stream into a CodeCompile unit.
  41.         /// </para>
  42.         /// </devdoc>
  43.         public abstract CodeCompileUnit Parse(TextReader codeStream);
  44.     }
  45.    
  46. }

Developer Fusion