亚洲欧美第一页_禁久久精品乱码_粉嫩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一区二区三区免费野_久草精品视频
狠狠色综合播放一区二区| 7777精品伊人久久久大香线蕉 | 国产麻豆视频精品| 亚洲精选视频免费看| 国产色产综合色产在线视频| 制服丝袜亚洲精品中文字幕| 欧美影院精品一区| 91美女片黄在线观看| 成人午夜在线免费| 极品少妇xxxx精品少妇偷拍| 久久99精品国产| 久久精品国产精品亚洲红杏| 日韩成人精品在线| 婷婷综合另类小说色区| 亚洲成人免费视频| 亚洲国产日韩综合久久精品| 亚洲综合视频网| 亚洲福利一二三区| 亚洲图片欧美综合| 日本亚洲电影天堂| 国产麻豆成人传媒免费观看| 国产精品一区二区男女羞羞无遮挡| 亚洲午夜视频在线观看| 亚洲欧美日韩国产综合在线| 亚洲精品欧美专区| 亚洲男人的天堂av| 亚洲一区自拍偷拍| 亚洲最色的网站| 亚洲18影院在线观看| 丝袜亚洲另类欧美| 免费成人在线影院| 国内精品在线播放| 99精品欧美一区二区三区综合在线| 色屁屁一区二区| 欧美久久一区二区| 久久伊人中文字幕| 中文字幕在线不卡| 一卡二卡欧美日韩| 中文字幕一区二区三区不卡| 亚洲一二三四区不卡| 午夜电影久久久| 韩国一区二区视频| 色综合视频一区二区三区高清| 欧美性xxxxxxxx| 欧美一级xxx| 欧美国产日本视频| 香蕉加勒比综合久久| 午夜精品一区二区三区三上悠亚| 麻豆国产精品视频| 91一区在线观看| 精品入口麻豆88视频| 自拍偷拍欧美精品| 日本亚洲三级在线| 色综合中文字幕国产 | 亚洲大片精品永久免费| 国内偷窥港台综合视频在线播放| 成人a免费在线看| 91精品国产一区二区三区蜜臀| 国产色综合一区| 亚洲国产cao| 不卡电影一区二区三区| 日韩午夜精品电影| 一区二区欧美国产| 亚洲欧美日韩成人高清在线一区| 国产乱码精品一区二区三| 欧美日韩国产小视频在线观看| 国产三级精品三级在线专区| 天天做天天摸天天爽国产一区 | 成人午夜激情片| 日韩午夜在线观看视频| 一区二区三区四区在线播放| 国产成人精品影视| 91精品国产色综合久久不卡电影| 欧美激情艳妇裸体舞| 九色综合国产一区二区三区| 欧美日韩一区二区在线观看视频| 成人欧美一区二区三区小说 | 亚洲va天堂va国产va久| 99热99精品| 中文欧美字幕免费| 久久精品国产亚洲一区二区三区| 欧美日韩综合一区| 亚洲综合色区另类av| 99精品偷自拍| 久久精品视频一区| 久久精品国产澳门| 日韩欧美中文字幕一区| 午夜久久久久久| 成人黄色小视频| 亚洲欧美在线另类| 99在线精品视频| 综合久久综合久久| 99久久精品情趣| 欧美大片在线观看一区| 亚洲精品老司机| 91在线视频网址| 亚洲精品成人天堂一二三| 色欧美88888久久久久久影院| 亚洲欧美另类在线| 色综合久久综合| 亚洲国产日韩av| 欧美无乱码久久久免费午夜一区 | 亚洲精品欧美激情| 在线免费观看不卡av| 国产精品欧美极品| 国产iv一区二区三区| 国产精品久久久久久久久免费丝袜| 成人性生交大合| 亚洲欧美在线视频观看| 日本精品一区二区三区高清 | 一本大道综合伊人精品热热 | 不卡的电视剧免费网站有什么| 国产精品视频yy9299一区| 国产成人在线视频播放| 亚洲视频综合在线| 欧美日产国产精品| 国内精品国产成人国产三级粉色| 国产日产欧产精品推荐色| 成人国产精品免费观看| 亚洲人吸女人奶水| 欧美人牲a欧美精品| 国内精品视频一区二区三区八戒| 国产精品欧美久久久久一区二区| 欧美日韩国产一级片| 国产综合色精品一区二区三区| 国产精品动漫网站| 欧美无人高清视频在线观看| 韩国一区二区视频| 一区二区三区精品在线| 久久久久久亚洲综合影院红桃| 色欧美片视频在线观看| 精品在线免费观看| 国产精品色在线观看| 欧美视频一区二区在线观看| 国产成人综合自拍| 日韩一区欧美二区| 中文字幕亚洲一区二区va在线| 久久精品视频免费观看| 精品日韩成人av| 日韩欧美三级在线| 91精品久久久久久久久99蜜臂| 欧美视频一二三区| 在线观看日韩一区| 在线视频一区二区三区| 日本精品一级二级| 91亚洲国产成人精品一区二三| 成人黄色在线网站| 成人精品高清在线| 成人免费高清在线观看| 成人一区二区三区视频在线观看 | 国产精品欧美一区喷水| 日本一区二区不卡视频| 国产亚洲精品超碰| 中文字幕av资源一区| 中文文精品字幕一区二区| 日本一区二区在线不卡| 中文字幕第一区二区| 一区在线中文字幕| 亚洲精品中文在线| 亚洲成人一区二区| 久久精品国产在热久久| 国产成人在线视频网站| 99久精品国产| 欧美日韩免费不卡视频一区二区三区| 欧美日韩在线不卡| 日韩一级黄色大片| 国产亚洲精品中文字幕| 中文字幕中文乱码欧美一区二区| 亚洲日本在线a| 午夜免费久久看| 久久精品国产999大香线蕉| 国产91对白在线观看九色| av爱爱亚洲一区| 欧美久久免费观看| 国产亚洲欧美色| 亚洲一区二区三区中文字幕 | 免费成人av资源网| 高清不卡一区二区| 一本大道av一区二区在线播放| 欧美一区二区在线不卡| 国产性色一区二区| 亚洲国产乱码最新视频| 亚洲成va人在线观看| 精品一区二区三区蜜桃| 粉嫩一区二区三区在线看| 欧美日韩在线播| 久久久天堂av| 亚洲bt欧美bt精品777| 国产一区二区三区四区在线观看| 不卡一二三区首页| 精品久久久久久最新网址| 《视频一区视频二区| 老司机一区二区| 色偷偷一区二区三区| 久久久精品天堂| 日韩av一区二区在线影视| 91视频在线看| 久久夜色精品国产噜噜av| 亚洲免费观看高清完整版在线观看 | 欧美三级中文字幕在线观看|