| OLD | NEW |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 library mdv.src.list_diff; | 5 library template_binding.src.list_diff; |
| 6 | 6 |
| 7 import 'dart:math' as math; | 7 import 'dart:math' as math; |
| 8 import 'package:observe/observe.dart' show ListChangeRecord; | 8 import 'package:observe/observe.dart' show ListChangeRecord; |
| 9 | 9 |
| 10 /** | 10 /** |
| 11 * A summary of an individual change to a [List]. | 11 * A summary of an individual change to a [List]. |
| 12 * | 12 * |
| 13 * Each delta represents that at the [index], [removed] sequence of items were | 13 * Each delta represents that at the [index], [removed] sequence of items were |
| 14 * removed, and counting forward from [index], [addedCount] items were added. | 14 * removed, and counting forward from [index], [addedCount] items were added. |
| 15 * | 15 * |
| (...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 259 oldIndex++; | 259 oldIndex++; |
| 260 break; | 260 break; |
| 261 } | 261 } |
| 262 } | 262 } |
| 263 | 263 |
| 264 if (splice != null) { | 264 if (splice != null) { |
| 265 splices.add(splice); | 265 splices.add(splice); |
| 266 } | 266 } |
| 267 return splices; | 267 return splices; |
| 268 } | 268 } |
| OLD | NEW |