2015-04-07 09:35:12 +01:00
|
|
|
//------------------------------------------------------------------------------
|
|
|
|
// <copyright file="CodeParser.cs" company="Microsoft">
|
|
|
|
//
|
2016-02-22 11:00:01 -05:00
|
|
|
// <OWNER>petes</OWNER>
|
2015-04-07 09:35:12 +01:00
|
|
|
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
|
|
// </copyright>
|
|
|
|
//------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
namespace System.CodeDom.Compiler {
|
|
|
|
using System.Text;
|
|
|
|
|
|
|
|
using System.Diagnostics;
|
|
|
|
using System;
|
|
|
|
using Microsoft.Win32;
|
|
|
|
using System.IO;
|
|
|
|
using System.Collections;
|
|
|
|
using System.Reflection;
|
|
|
|
using System.CodeDom;
|
|
|
|
using System.Security.Permissions;
|
|
|
|
|
|
|
|
/// <devdoc>
|
|
|
|
/// <para>
|
|
|
|
/// Provides a code parsing abstract base class.
|
|
|
|
/// </para>
|
|
|
|
/// </devdoc>
|
|
|
|
[PermissionSet(SecurityAction.LinkDemand, Name="FullTrust")]
|
|
|
|
[PermissionSet(SecurityAction.InheritanceDemand, Name="FullTrust")]
|
|
|
|
public abstract class CodeParser : ICodeParser {
|
|
|
|
|
|
|
|
/// <devdoc>
|
|
|
|
/// <para>
|
|
|
|
/// Compiles the given text stream into a CodeCompile unit.
|
|
|
|
/// </para>
|
|
|
|
/// </devdoc>
|
|
|
|
public abstract CodeCompileUnit Parse(TextReader codeStream);
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|