| OLD | NEW |
| 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, 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 context.directory.manager; | |
| 6 | |
| 7 import 'dart:async'; | 5 import 'dart:async'; |
| 8 import 'dart:collection'; | 6 import 'dart:collection'; |
| 9 import 'dart:core'; | 7 import 'dart:core'; |
| 10 | 8 |
| 11 import 'package:analyzer/file_system/file_system.dart'; | 9 import 'package:analyzer/file_system/file_system.dart'; |
| 12 import 'package:watcher/watcher.dart'; | 10 import 'package:watcher/watcher.dart'; |
| 13 | 11 |
| 14 /** | 12 /** |
| 15 * A function called when a watch [event] associated with a watched resource is | 13 * A function called when a watch [event] associated with a watched resource is |
| 16 * received. The list of [tokens] will contain all of the tokens associated with | 14 * received. The list of [tokens] will contain all of the tokens associated with |
| (...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 278 void _removeChild(WatchNode<T> child) { | 276 void _removeChild(WatchNode<T> child) { |
| 279 _children.remove(child); | 277 _children.remove(child); |
| 280 Iterable<WatchNode<T>> grandchildren = child.children; | 278 Iterable<WatchNode<T>> grandchildren = child.children; |
| 281 for (WatchNode<T> grandchild in grandchildren) { | 279 for (WatchNode<T> grandchild in grandchildren) { |
| 282 grandchild.parent = this; | 280 grandchild.parent = this; |
| 283 _children.add(grandchild); | 281 _children.add(grandchild); |
| 284 } | 282 } |
| 285 child._children.clear(); | 283 child._children.clear(); |
| 286 } | 284 } |
| 287 } | 285 } |
| OLD | NEW |