예제 #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();
        }
예제 #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();
 }