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

            this.ChildNodes.Add(block);
            return(block);
        }
Ejemplo 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;
        }
Ejemplo n.º 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);
        }
Ejemplo n.º 4
0
 internal void PushBlock()
 {
     m_ScopeTreeHead = m_ScopeTreeHead.AddChild();
 }
Ejemplo n.º 5
0
 internal BuildTimeScopeFrame(bool hasVarArgs)
 {
     HasVarArgs = hasVarArgs;
     m_ScopeTreeHead = m_ScopeTreeRoot = new BuildTimeScopeBlock(null);
 }
Ejemplo n.º 6
0
 internal void PushBlock()
 {
     m_ScopeTreeHead = m_ScopeTreeHead.AddChild();
 }
Ejemplo n.º 7
0
 internal BuildTimeScopeFrame(bool hasVarArgs)
 {
     HasVarArgs      = hasVarArgs;
     m_ScopeTreeHead = m_ScopeTreeRoot = new BuildTimeScopeBlock(null);
 }
Ejemplo n.º 8
0
 internal BuildTimeScopeBlock AddChild()
 {
     var block = new BuildTimeScopeBlock(this);
     ChildNodes.Add(block);
     return block;
 }
Ejemplo n.º 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();
 }
Ejemplo n.º 11
0
 internal void PushBlock()
 {
     _scopeTreeHead = _scopeTreeHead.AddChild();
 }
Ejemplo n.º 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();
 }