Esempio n. 1
0
        private void CreateForeachStatement(int startIndex, ForeachToken token, int endIndex)
        {
            int count     = endIndex - startIndex - 1;
            var statement = new ForeachStatement(this[startIndex].StartOffset, token, GetRange(startIndex + 1, count),
                                                 token.TargetOffset);

            ReplaceRange(startIndex, endIndex - startIndex, statement);
            statement.ProcessChildren();
        }
Esempio n. 2
0
 private void CreateForeachStatement(int startIndex, ForeachToken token, int endIndex)
 {
     int count = endIndex - startIndex - 1;
     var statement = new ForeachStatement(this[startIndex].StartOffset, token, GetRange(startIndex + 1, count),
                                          token.TargetOffset);
     ReplaceRange(startIndex, endIndex - startIndex, statement);
     statement.ProcessChildren();
 }