亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? scope.cs

?? charp compiler
?? CS
?? 第 1 頁 / 共 2 頁
字號:
//-----------------------------------------------------------------------------
// Scope.cs
// Represent a scope
//-----------------------------------------------------------------------------

using System;
using System.Diagnostics;
using System.Xml;
using Blue.Public;

namespace SymbolEngine
{
  
//-----------------------------------------------------------------------------
/// <summary>
/// IScopeLookup is used by a <see cref="Scope"/> to do a smart lookup.
/// <seealso cref="Scope"/>
/// </summary>
/// <remarks>
/// While all scopes have the same notion of 'lexical' parent, each type of 
/// scope has its own notion of 'super' or 'inherited' parent. For example:
/// <list type="bullet">
/// <item>BlockStatement, Method - 0 parents </item>
/// <item>Class - 1 parent, for the base class</item>
/// <item>Interfaces - multiple parents, 1 parent for each base interface</item>
/// <item>Namespace - A pseudo-parent from each using clauses.</item>
/// </list>
/// 
/// Either Nodes or Symbols may implement IScopeLookup, depending on which
/// can best provide the super class.
/// Only a Scope should have a reference to these. 
///</remarks>
//-----------------------------------------------------------------------------
public interface ILookupController
{
    // @todo - can I remove the Scope paremeters to this and DumpScope?
    
    // The main worker function.
    // Look for the given identifier in the given scope. 
    // This is a smart lookup because it can use extra information to search
    // the scope's dynamic range (ex: super classes, using-clauses)
    // Return Null if not found. (Don't throw an exception).
    SymEntry SmartLookup(string stIdentifier, Scope scope);
    
    // Get a node responsible for this scope.
    // For imported types, this will be null
    AST.Node OwnerNode { get ; }
    
    // Get a symbol responsible for this scope. 
    // This may be null. (If this is null, then OwnerNode should not be null).
    SymEntry OwnerSymbol { get; }
    
    // For debugging purposes. Used by DumpTree();
    void DumpScope(Scope scope);
}
    
    //-----------------------------------------------------------------------------    
    /// <summary>
    /// A scope is a low-level object to associate <see cref="Identifier"/> objects 
    /// with <see cref="SymEntry"/> objects.
    /// <seealso cref="ILookupController"/>      
    /// </summary>    
    /// <remarks>
    ///
    /// <para>Every scope has a lexical parent. The following list shows what type
    /// of scopes can be lexically nested in which other scopes:
    /// <list type="bullet">
    /// <item>block -> block, method</item>
    /// <item>method -> class</item>
    /// <item>class -> class, interface, namespace</item>
    /// <item>interface -> namespace </item>
    /// <item>namespace -> namespace</item>
    /// </list> </para>
    ///
    /// <para> Scopes have no knowledge of either the higher level type-system nor any 
    /// object derived from <see cref="SymEntry"/>.  </para>
    ///
    /// <para> Each of the different scopes above may also inherit items from super scopes
    /// A class's scope inherits from its base class. An interface inherits from all of
    /// its base interfaces. Some scopes, such as those for blocks and methods, only have
    /// a lexical parent, but no logical parent to inherit from.</para>
    /// <para>Because a scope is a 'dumb' object, it can't be aware of its super scopes.
    /// So a scope uses an <see cref="ILookupController"/> to do smart lookups in 
    /// super scopes.</para> 
    /// </remarks>
    //-----------------------------------------------------------------------------
    public class Scope
    {
#region Construction  
        private Scope()
        {
            m_fIsLocked     = false;            
            m_pController   = null;
            
            #if DEBUG
            // Set unique id
            m_id            = m_count;
            m_count++;
            #endif
            
        }
        
        /// <summary>
        /// Create a Scope object
        /// <seealso cref="CreateSharedScope"/>
        /// </summary>
        /// <param name="szDebugName">A string name to identify the scope for debugging uses.</param>
        /// <param name="pController">An ILookupController to allow the scope to do smart lookups. (can be null)</param>
        /// <param name="scopeLexicalParent">The lexical parent of the scope. (may be null). </param>
        public Scope(string szDebugName, ILookupController pController, Scope scopeLexicalParent) 
            : this()
        {
            #if false
            if (szDebugName == "cClass_") 
                System.Diagnostics.Debugger.Break();
            #endif                
            
            m_szDebugName   = szDebugName;            
            m_pController   = pController;
            m_LexicalParent = scopeLexicalParent;
                        
            m_table         = new System.Collections.Hashtable();
        }
        
        /// <summary>
        /// Create a scope that has its own controller and lexical parent, but shares
        /// a set of symbols with an existing scope.
        /// </summary>
        /// <remark>
        /// We may want multiple Scopes with different controllers but that share 
        /// the same symbol set.
        /// <para>Ex: A namespace can be declared in multiple blocks. All sections reside
        /// in the same scope. However, each block has its own set of using
        /// directives. So we want multiple scopes that share the same set of symbols, 
        /// but each scope needs its own controller to handle its own set of using directives</para>        
        /// </remark>
        /// <param name="pController">The controller for the new scope</param>
        /// <param name="scopeLexicalParent"></param>
        /// <returns>A new scope with the specified lexical parent and owned by the given 
        /// controller, but sharing the same set of symbols as the current scope.</returns>
        public Scope CreateSharedScope(ILookupController pController, Scope scopeLexicalParent)
        {
            Scope s = new Scope();
            s.m_szDebugName     = m_szDebugName;
            s.m_pController     = pController;
            s.m_LexicalParent   = scopeLexicalParent;            
            
            // Both scopes share the same table.
            s.m_table           = m_table;            
            return s;
        }
                
#endregion        
        
#region Properties & Data        
        // All for debugging:
        public string m_szDebugName;
        
        // Provide unique ids for each scope.
        #if DEBUG
        private static int m_count = 0;
        private int m_id;
        #endif

        // A scope's only link to the higher level world.
        ILookupController m_pController;
        
        /// <summary><value>
        /// A symbol associated with this scope.
        /// </value></summary>
        public SymEntry Symbol
        {
            get { return m_pController.OwnerSymbol; }
        }
        
        /// <summary><value>
        /// An AST node associated with this scope.
        /// </value></summary>
        public AST.Node Node 
        {
            get { return m_pController.OwnerNode; }
        }

        // Store the actual SymEntrys in a hash.
        protected System.Collections.Hashtable m_table;        
        
        // m_LexicalParent - our lexical parent scope. Non-null except for single global scope.        
        internal Scope m_LexicalParent;
        
        /// <summary><value>
        /// The lexical parent of this scope.
        /// </value></summary>
        /// <remarks>
        /// Scopes are identified on the source level and they can be lexically nested within
        /// each other. The chain of lexical parents form a context. 
        /// <para>Imported types have no lexical parent because they have no source.</para>
        /// </remarks>
        public Scope LexicalParent
        {
            get { return m_LexicalParent; }
        }
       
#endregion

#region Locking
        
        // A locked scope can't be added too. Useful for imported scopes, and

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产欧美一区二区精品性色| 国产日韩欧美精品一区| 精品免费国产二区三区| 亚洲人123区| 韩国v欧美v日本v亚洲v| 色菇凉天天综合网| 国产精品美女一区二区在线观看| 丝袜诱惑制服诱惑色一区在线观看 | 麻豆91小视频| 日本久久精品电影| 日本一二三四高清不卡| 日本在线观看不卡视频| 在线欧美日韩国产| 成人免费一区二区三区视频 | 天天爽夜夜爽夜夜爽精品视频| 国产成人在线视频网址| 555夜色666亚洲国产免| 亚洲天堂网中文字| 91免费看`日韩一区二区| 久久免费视频一区| 激情欧美一区二区| 日韩美女在线视频| 日本亚洲欧美天堂免费| 欧美亚洲国产一区二区三区| 亚洲欧美怡红院| 91色综合久久久久婷婷| 中文字幕免费观看一区| 粉嫩在线一区二区三区视频| 精品国产乱码久久久久久闺蜜| 日韩国产欧美在线观看| 欧美精品久久99久久在免费线| 亚洲午夜久久久| 欧美日免费三级在线| 亚洲一二三四区| 欧美天天综合网| 五月天激情综合| 在线观看91av| 寂寞少妇一区二区三区| 精品国一区二区三区| 国产一区二区三区在线看麻豆| 久久久久久久久久久99999| 国产成人综合网| 亚洲摸摸操操av| 欧美优质美女网站| 日本一不卡视频| 精品国精品国产| av在线免费不卡| 亚洲一区二区三区自拍| 欧美日韩成人综合| 国产一区二区精品久久91| 久久免费偷拍视频| 99久久精品国产一区| 一区二区日韩av| 日韩午夜在线观看| 国产一区二区三区四区五区美女 | 欧美不卡一区二区| 国产精品77777竹菊影视小说| www日韩大片| 成人精品电影在线观看| 一区二区在线观看免费| 欧美军同video69gay| 韩国中文字幕2020精品| 国产婷婷色一区二区三区在线| 99久久婷婷国产综合精品电影 | 天天综合色天天综合| 日韩欧美国产麻豆| 97成人超碰视| 亚洲国产成人精品视频| 久久久综合九色合综国产精品| 91丨porny丨中文| 蜜臀99久久精品久久久久久软件| 精品国产91乱码一区二区三区 | 欧美日韩国产一二三| 激情另类小说区图片区视频区| 亚洲色大成网站www久久九九| 欧美一级一区二区| a在线欧美一区| 蜜臀久久久久久久| 国产精品不卡一区| 精品国精品自拍自在线| 欧美伊人久久久久久久久影院 | 日本伦理一区二区| 久久草av在线| 亚洲一区二区三区美女| 国产亚洲福利社区一区| 制服.丝袜.亚洲.另类.中文| 成人高清免费观看| 韩日av一区二区| 日韩精品亚洲一区二区三区免费| 亚洲天堂a在线| 日本一区二区三区视频视频| 日韩一级二级三级精品视频| 色噜噜狠狠成人网p站| 国产麻豆精品95视频| 久色婷婷小香蕉久久| 亚洲电影你懂得| 亚洲三级免费观看| 久久精品男人天堂av| 日韩一级片网站| 欧美一区二区女人| 欧美日韩精品专区| 欧美日韩中字一区| 欧美性色黄大片手机版| 色诱视频网站一区| 色哟哟一区二区在线观看| 国产成人av资源| 国产成人精品网址| 成人性生交大片免费看中文网站| 狠狠狠色丁香婷婷综合久久五月| 琪琪一区二区三区| 奇米在线7777在线精品| 欧美96一区二区免费视频| 午夜精品一区在线观看| 视频在线观看91| 日韩一区欧美二区| 日韩成人精品在线观看| 日韩激情一二三区| 麻豆精品蜜桃视频网站| 六月丁香综合在线视频| 久久精品国产77777蜜臀| 蜜桃av噜噜一区| 国产在线精品一区二区不卡了 | 国产色综合一区| 国产精品久久久久久亚洲毛片| 中文字幕国产一区| 亚洲三级电影全部在线观看高清| 国产精品成人免费| 亚洲电影视频在线| 久久9热精品视频| 国产成人av在线影院| 不卡的av中国片| 欧美视频完全免费看| 日韩欧美一级二级三级| 精品电影一区二区| 国产精品蜜臀在线观看| 一区二区不卡在线视频 午夜欧美不卡在| 亚洲伊人色欲综合网| 青青草国产成人av片免费| 国产精品综合在线视频| 99国产欧美久久久精品| 欧美中文字幕一区二区三区亚洲 | 美脚の诱脚舐め脚责91| 国产精一区二区三区| 色婷婷久久久亚洲一区二区三区| 日本精品一区二区三区高清 | 国产精品你懂的在线欣赏| 亚洲精品国产一区二区精华液 | 国产区在线观看成人精品| 亚洲美女视频在线观看| 七七婷婷婷婷精品国产| 成人福利视频网站| 69堂精品视频| 日本一区二区三区高清不卡 | 国产伦精品一区二区三区在线观看 | 国产精品国产三级国产aⅴ无密码| 亚洲国产一区二区视频| 国产一区二区精品在线观看| 色嗨嗨av一区二区三区| 精品国产制服丝袜高跟| 亚洲资源在线观看| 国产老肥熟一区二区三区| 欧美午夜电影网| 国产精品天天看| 蜜桃av噜噜一区| 欧美午夜精品一区| 国产精品伦一区二区三级视频| 午夜精品久久久久久久99樱桃| 豆国产96在线|亚洲| 7777精品伊人久久久大香线蕉完整版 | 欧美国产精品一区二区| 日韩精品91亚洲二区在线观看| 99久久伊人精品| 久久精子c满五个校花| 亚洲国产中文字幕在线视频综合 | 国产精品传媒入口麻豆| 狠狠色丁香久久婷婷综合丁香| 欧美色倩网站大全免费| 国产精品久久久久久亚洲伦| 精品在线亚洲视频| 欧美日韩一级黄| 亚洲九九爱视频| 顶级嫩模精品视频在线看| 欧美成人一区二区三区片免费| 亚洲国产精品久久一线不卡| 91亚洲精品久久久蜜桃| 欧美激情综合在线| 国产91在线看| 久久你懂得1024| 国产一区二区美女| 精品捆绑美女sm三区| 蜜臀久久久久久久| 日韩欧美国产午夜精品| 日本aⅴ免费视频一区二区三区| 欧美日韩精品一区二区三区| 亚洲欧美日韩国产综合在线| 99久久亚洲一区二区三区青草| 国产欧美在线观看一区| 国产精品996| 日本一区二区三区久久久久久久久不 | 欧美午夜精品久久久久久孕妇|