Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(151)

Side by Side Diff: pkg/analysis_server/lib/src/watch_manager.dart

Issue 2894883002: Remove more libraries directives from server (Closed)
Patch Set: Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « pkg/analysis_server/lib/src/utilities/documentation.dart ('k') | pkg/analysis_server/lib/starter.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698