Пример #1
0
        private void LoopBlock()
        {
            AST_LoopBlockNode loopBlockNode = CurrentNode as AST_LoopBlockNode;

            Debug.Assert(loopBlockNode != null);
            PushNewScope(loopBlockNode.getScope(), "LoopBlock_memorySpace" + loopBlockCounter++, loopBlockNode.getChild(0));
        }
Пример #2
0
        private void evaluateReferencesForLOOP_BLOCK(AST tree)
        {
            AST_LoopBlockNode loopBlockNode = tree as AST_LoopBlockNode;

            m_currentScope = loopBlockNode.getScope();

            #if WRITE_DEBUG_INFO
            Console.WriteLine("\n Trying to resolve body of loop block");
            #endif

            evaluateReferencesInAllChildren(tree);

            m_currentScope = m_currentScope.getEnclosingScope(); // pop scope
        }