Esempio n. 1
0
 public void SetNeedForParallelizedVersion(ExpressionOrYielding expyield)
 {
     expyield.SetNeedForParallelizedVersion(true);
     foreach(ExpressionOrYielding child in expyield)
     {
         SetNeedForParallelizedVersion(child);
     }
 }
Esempio n. 2
0
 public static void SetNeedForProfiling(ExpressionOrYielding expyield)
 {
     expyield.SetNeedForProfiling(true);
     foreach(ExpressionOrYielding child in expyield)
     {
         SetNeedForProfiling(child);
     }
 }
Esempio n. 3
0
        public void ReplaceVariableByIterationVariable(ExpressionOrYielding curr)
        {
            // traverses the yielding and expression tree, if it visits a reference to the iteration variable
            // it switches it from a normal variable reference into a iteration variable reference
            foreach(ExpressionOrYielding eoy in curr)
                ReplaceVariableByIterationVariable(eoy);

            if(curr is VariableExpression)
            {
                VariableExpression ve = (VariableExpression)curr;
                if(ve.Entity == Variable)
                {
                    ve.MatchEntity = IteratedMatchVariable;
                }
            }
        }