| 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 analyzer.src.context.context; | 5 library analyzer.src.context.context; |
| 6 | 6 |
| 7 import 'dart:async'; | 7 import 'dart:async'; |
| 8 import 'dart:collection'; | 8 import 'dart:collection'; |
| 9 | 9 |
| 10 import 'package:analyzer/instrumentation/instrumentation.dart'; | 10 import 'package:analyzer/instrumentation/instrumentation.dart'; |
| (...skipping 1291 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1302 buffer.write(" "); | 1302 buffer.write(" "); |
| 1303 buffer.writeln(source.fullName); | 1303 buffer.writeln(source.fullName); |
| 1304 } | 1304 } |
| 1305 _logInformation(buffer.toString()); | 1305 _logInformation(buffer.toString()); |
| 1306 } | 1306 } |
| 1307 return changedSources.length > 0; | 1307 return changedSources.length > 0; |
| 1308 } | 1308 } |
| 1309 | 1309 |
| 1310 @deprecated | 1310 @deprecated |
| 1311 @override | 1311 @override |
| 1312 void visitCacheItems(void callback(Source source, SourceEntry dartEntry, | 1312 void visitCacheItems(void callback( |
| 1313 DataDescriptor rowDesc, CacheState state)) {} | 1313 Source source, dynamic dartEntry, dynamic rowDesc, CacheState state)) {} |
| 1314 | 1314 |
| 1315 @override | 1315 @override |
| 1316 void visitContentCache(ContentCacheVisitor visitor) { | 1316 void visitContentCache(ContentCacheVisitor visitor) { |
| 1317 _contentCache.accept(visitor); | 1317 _contentCache.accept(visitor); |
| 1318 } | 1318 } |
| 1319 | 1319 |
| 1320 /** | 1320 /** |
| 1321 * Add all of the sources contained in the given source [container] to the | 1321 * Add all of the sources contained in the given source [container] to the |
| 1322 * given list of [sources]. | 1322 * given list of [sources]. |
| 1323 */ | 1323 */ |
| (...skipping 750 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2074 } | 2074 } |
| 2075 DartSdk sdk = factory.dartSdk; | 2075 DartSdk sdk = factory.dartSdk; |
| 2076 if (sdk == null) { | 2076 if (sdk == null) { |
| 2077 throw new IllegalArgumentException( | 2077 throw new IllegalArgumentException( |
| 2078 "The source factory for an SDK analysis context must have a DartUriRes
olver"); | 2078 "The source factory for an SDK analysis context must have a DartUriRes
olver"); |
| 2079 } | 2079 } |
| 2080 return new AnalysisCache( | 2080 return new AnalysisCache( |
| 2081 <CachePartition>[AnalysisEngine.instance.partitionManager.forSdk(sdk)]); | 2081 <CachePartition>[AnalysisEngine.instance.partitionManager.forSdk(sdk)]); |
| 2082 } | 2082 } |
| 2083 } | 2083 } |
| OLD | NEW |