Esempio n. 1
0
        /// <summary>
        /// Remove marked commands information and marked local variables from optimizer tables
        /// </summary>
        private void RemoveMarkedObjects()
        {
            if (_markedCommandsList.Count <= 0 && _markedLocalVariablesList.Count <= 0)
            {
                return;
            }

            _updateChainFlag = true;

            //Remove all marked commands from optimized block
            //_markedCommandsList.ForEach(command => _optimizedBlock.RemoveCommand(command));
            _markedCommandsList.ForEach(_optimizedBlock.RemoveCommand);

            //Remove all marked local variables from optimized block
            _markedLocalVariablesList.ForEach(variable => _optimizedBlock.UndefineLocalVariable(variable));

            //Clear mark lists
            _markedCommandsList.Clear();

            _markedLocalVariablesList.Clear();
        }