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

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

Issue 1008583002: Fix hints (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 9 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, 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; 5 library context.directory.manager;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 import 'dart:collection'; 8 import 'dart:collection';
9 9
10 import 'package:analysis_server/src/analysis_server.dart'; 10 import 'package:analysis_server/src/analysis_server.dart';
11 import 'package:analyzer/file_system/file_system.dart'; 11 import 'package:analyzer/file_system/file_system.dart';
12 import 'package:analyzer/instrumentation/instrumentation.dart'; 12 import 'package:analyzer/instrumentation/instrumentation.dart';
13 import 'package:analyzer/source/package_map_provider.dart'; 13 import 'package:analyzer/source/package_map_provider.dart';
14 import 'package:analyzer/source/package_map_resolver.dart'; 14 import 'package:analyzer/source/package_map_resolver.dart';
15 import 'package:analyzer/src/generated/engine.dart'; 15 import 'package:analyzer/src/generated/engine.dart';
16 import 'package:analyzer/src/generated/java_io.dart'; 16 import 'package:analyzer/src/generated/java_io.dart';
17 import 'package:analyzer/src/generated/source.dart'; 17 import 'package:analyzer/src/generated/source.dart';
18 import 'package:analyzer/src/generated/source_io.dart'; 18 import 'package:analyzer/src/generated/source_io.dart';
19 import 'package:path/path.dart' as pathos; 19 import 'package:path/path.dart' as pathos;
20 import 'package:watcher/watcher.dart'; 20 import 'package:watcher/watcher.dart';
21 import 'package:analyzer/src/generated/java_engine.dart';
22 21
23 /** 22 /**
24 * The name of `packages` folders. 23 * The name of `packages` folders.
25 */ 24 */
26 const String PACKAGES_NAME = 'packages'; 25 const String PACKAGES_NAME = 'packages';
27 26
28 /** 27 /**
29 * File name of pubspec files. 28 * File name of pubspec files.
30 */ 29 */
31 const String PUBSPEC_NAME = 'pubspec.yaml'; 30 const String PUBSPEC_NAME = 'pubspec.yaml';
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 flushedFiles.add(source.fullName); 126 flushedFiles.add(source.fullName);
128 } 127 }
129 for (_ContextInfo contextInfo in _contexts.values) { 128 for (_ContextInfo contextInfo in _contexts.values) {
130 AnalysisContext contextN = contextInfo.context; 129 AnalysisContext contextN = contextInfo.context;
131 if (context != contextN) { 130 if (context != contextN) {
132 for (Source source in contextN.sources) { 131 for (Source source in contextN.sources) {
133 flushedFiles.remove(source.fullName); 132 flushedFiles.remove(source.fullName);
134 } 133 }
135 } 134 }
136 } 135 }
137 return flushedFiles.toList(growable:false); 136 return flushedFiles.toList(growable: false);
138 } 137 }
139 138
140 /** 139 /**
141 * We have finished computing the package map. 140 * We have finished computing the package map.
142 */ 141 */
143 void endComputePackageMap() { 142 void endComputePackageMap() {
144 // Do nothing. 143 // Do nothing.
145 } 144 }
146 145
147 /** 146 /**
(...skipping 606 matching lines...) Expand 10 before | Expand all | Expand 10 after
754 return excludes(resource.path); 753 return excludes(resource.path);
755 } 754 }
756 755
757 /** 756 /**
758 * Returns `true` if [path] is the pubspec file of this context. 757 * Returns `true` if [path] is the pubspec file of this context.
759 */ 758 */
760 bool isPubspec(String path) { 759 bool isPubspec(String path) {
761 return path == pubspecPath; 760 return path == pubspecPath;
762 } 761 }
763 } 762 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698