| OLD | NEW |
| 1 import 'dart:io' as io; | 1 import 'dart:io' as io; |
| 2 | 2 |
| 3 import 'package:analyzer/dart/element/element.dart'; | 3 import 'package:analyzer/dart/element/element.dart'; |
| 4 import 'package:analyzer/file_system/file_system.dart'; | 4 import 'package:analyzer/file_system/file_system.dart'; |
| 5 import 'package:analyzer/src/context/cache.dart'; | 5 import 'package:analyzer/src/context/cache.dart'; |
| 6 import 'package:analyzer/src/context/context.dart'; | 6 import 'package:analyzer/src/context/context.dart'; |
| 7 import 'package:analyzer/src/dart/element/element.dart'; | 7 import 'package:analyzer/src/dart/element/element.dart'; |
| 8 import 'package:analyzer/src/generated/engine.dart'; | 8 import 'package:analyzer/src/generated/engine.dart'; |
| 9 import 'package:analyzer/src/generated/resolver.dart' show TypeProvider; | 9 import 'package:analyzer/src/generated/resolver.dart' show TypeProvider; |
| 10 import 'package:analyzer/src/generated/source.dart'; | 10 import 'package:analyzer/src/generated/source.dart'; |
| (...skipping 404 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 415 } | 415 } |
| 416 | 416 |
| 417 /** | 417 /** |
| 418 * A concrete resynthesizer that serves summaries from given file paths. | 418 * A concrete resynthesizer that serves summaries from given file paths. |
| 419 */ | 419 */ |
| 420 class _FileBasedSummaryResynthesizer extends SummaryResynthesizer { | 420 class _FileBasedSummaryResynthesizer extends SummaryResynthesizer { |
| 421 final SummaryDataStore _dataStore; | 421 final SummaryDataStore _dataStore; |
| 422 | 422 |
| 423 _FileBasedSummaryResynthesizer(AnalysisContext context, | 423 _FileBasedSummaryResynthesizer(AnalysisContext context, |
| 424 SourceFactory sourceFactory, bool strongMode, this._dataStore) | 424 SourceFactory sourceFactory, bool strongMode, this._dataStore) |
| 425 : super(null, context, sourceFactory, strongMode); | 425 : super(context, sourceFactory, strongMode); |
| 426 | 426 |
| 427 @override | 427 @override |
| 428 LinkedLibrary getLinkedSummary(String uri) { | 428 LinkedLibrary getLinkedSummary(String uri) { |
| 429 return _dataStore.linkedMap[uri]; | 429 return _dataStore.linkedMap[uri]; |
| 430 } | 430 } |
| 431 | 431 |
| 432 @override | 432 @override |
| 433 UnlinkedUnit getUnlinkedSummary(String uri) { | 433 UnlinkedUnit getUnlinkedSummary(String uri) { |
| 434 return _dataStore.unlinkedMap[uri]; | 434 return _dataStore.unlinkedMap[uri]; |
| 435 } | 435 } |
| 436 | 436 |
| 437 @override | 437 @override |
| 438 bool hasLibrarySummary(String uri) { | 438 bool hasLibrarySummary(String uri) { |
| 439 LinkedLibrary linkedLibrary = _dataStore.linkedMap[uri]; | 439 LinkedLibrary linkedLibrary = _dataStore.linkedMap[uri]; |
| 440 return linkedLibrary != null; | 440 return linkedLibrary != null; |
| 441 } | 441 } |
| 442 } | 442 } |
| OLD | NEW |