internal BuildTimeScopeBlock AddChild()
        {
            var block = new BuildTimeScopeBlock(this);

            this.ChildNodes.Add(block);
            return(block);
        }
Пример #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;
        }
Пример #3
0
        internal RuntimeScopeBlock PopBlock()
        {
            var tree = m_ScopeTreeHead;

            m_ScopeTreeHead = m_ScopeTreeHead.Parent;

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

            return(tree.ScopeBlock);
        }
Пример #4
0
 internal void PushBlock()
 {
     m_ScopeTreeHead = m_ScopeTreeHead.AddChild();
 }
Пример #5
0
 internal BuildTimeScopeFrame(bool hasVarArgs)
 {
     HasVarArgs = hasVarArgs;
     m_ScopeTreeHead = m_ScopeTreeRoot = new BuildTimeScopeBlock(null);
 }
Пример #6
0
 internal void PushBlock()
 {
     m_ScopeTreeHead = m_ScopeTreeHead.AddChild();
 }
Пример #7
0
 internal BuildTimeScopeFrame(bool hasVarArgs)
 {
     HasVarArgs      = hasVarArgs;
     m_ScopeTreeHead = m_ScopeTreeRoot = new BuildTimeScopeBlock(null);
 }
Пример #8
0
 internal BuildTimeScopeBlock AddChild()
 {
     var block = new BuildTimeScopeBlock(this);
     ChildNodes.Add(block);
     return block;
 }
Пример #9
0
 internal BuildTimeScopeBlock(BuildTimeScopeBlock parent)
 {
     Parent = parent;
     ChildNodes = new List<BuildTimeScopeBlock>();
     ScopeBlock = new RuntimeScopeBlock();
 }
 internal BuildTimeScopeBlock(BuildTimeScopeBlock parent)
 {
     this.Parent     = parent;
     this.ChildNodes = new List <BuildTimeScopeBlock>();
     this.ScopeBlock = new RuntimeScopeBlock();
 }
Пример #11
0
 internal void PushBlock()
 {
     _scopeTreeHead = _scopeTreeHead.AddChild();
 }
Пример #12
0
 internal BuildTimeScopeFrame(bool hasVarArgs)
 {
     this.HasVarArgs = hasVarArgs;
     _scopeTreeHead  = _scopeTreeRoot = new BuildTimeScopeBlock(null);
 }
 internal BuildTimeScopeBlock(BuildTimeScopeBlock parent)
 {
     Parent     = parent;
     ChildNodes = new List <BuildTimeScopeBlock>();
     ScopeBlock = new RuntimeScopeBlock();
 }