Exemplo n.º 1
0
        internal BuildTimeScopeBlock AddChild()
        {
            BuildTimeScopeBlock block = new BuildTimeScopeBlock(this);

            ChildNodes.Add(block);
            return(block);
        }
Exemplo n.º 2
0
        internal RuntimeScopeBlock PopBlock()
        {
            var tree = m_ScopeTreeHead;

            m_ScopeTreeHead.ResolveGotos();

            m_ScopeTreeHead = m_ScopeTreeHead.Parent;

            if (m_ScopeTreeHead == null)
            {
                throw new InternalErrorException("Can't pop block - stack underflow");
            }

            return(tree.ScopeBlock);
        }
Exemplo n.º 3
0
 internal BuildTimeScopeBlock(BuildTimeScopeBlock parent)
 {
     Parent     = parent;
     ChildNodes = new List <BuildTimeScopeBlock>();
     ScopeBlock = new RuntimeScopeBlock();
 }
Exemplo n.º 4
0
 internal void PushBlock()
 {
     m_ScopeTreeHead = m_ScopeTreeHead.AddChild();
 }
Exemplo n.º 5
0
 internal BuildTimeScopeFrame(bool hasVarArgs)
 {
     HasVarArgs      = hasVarArgs;
     m_ScopeTreeHead = m_ScopeTreeRoot = new BuildTimeScopeBlock(null);
 }