Chromium Code Reviews| Index: pkg/analyzer/lib/src/generated/engine.dart |
| diff --git a/pkg/analyzer/lib/src/generated/engine.dart b/pkg/analyzer/lib/src/generated/engine.dart |
| index 7f2eaf110315baaeb531b7b3fb73f25d8279ec01..c9fa7fd8c4547bd2dba9f62d0319be4015ec5ffd 100644 |
| --- a/pkg/analyzer/lib/src/generated/engine.dart |
| +++ b/pkg/analyzer/lib/src/generated/engine.dart |
| @@ -2580,6 +2580,12 @@ class AnalysisContextImpl implements InternalAnalysisContext { |
| } |
| @override |
| + void test_flushResolvedUnit(Source source) { |
| + DartEntry dartEntry = getReadableSourceEntryOrNull(source); |
| + dartEntry.flushAstStructures(); |
| + } |
| + |
| + @override |
| bool validateCacheConsistency() { |
| int consistencyCheckStart = JavaSystem.nanoTime(); |
| List<Source> changedSources = new List<Source>(); |
| @@ -4093,13 +4099,6 @@ class AnalysisContextImpl implements InternalAnalysisContext { |
| bool _isTooBigHtmlSourceEntry(Source source, SourceEntry sourceEntry) => |
| false; |
| - /** |
| - * Log the given debugging [message]. |
| - */ |
| - void _logInformation(String message) { |
| - AnalysisEngine.instance.logger.logInformation(message); |
| - } |
| - |
| // /** |
| // * Notify all of the analysis listeners that the given source is no longer included in the set of |
| // * sources that are being analyzed. |
| @@ -4179,6 +4178,13 @@ class AnalysisContextImpl implements InternalAnalysisContext { |
| // } |
| /** |
| + * Log the given debugging [message]. |
| + */ |
| + void _logInformation(String message) { |
|
Brian Wilkerson
2015/06/24 16:56:58
I would have expected "_l" to sort before "_n". Is
Paul Berry
2015/06/24 20:08:32
Fixed.
|
| + AnalysisEngine.instance.logger.logInformation(message); |
| + } |
| + |
| + /** |
| * Notify all of the analysis listeners that a task is about to be performed. |
| */ |
| void _notifyAboutToPerformTask(String taskDescription) { |
| @@ -9307,6 +9313,12 @@ abstract class InternalAnalysisContext implements AnalysisContext { |
| bool shouldErrorsBeAnalyzed(Source source, Object entry); |
| /** |
| + * For testing only: flush any resolution information for the given [source] |
| + * out of the cache. |
| + */ |
| + void test_flushResolvedUnit(Source source); |
| + |
| + /** |
| * Call the given callback function for eache cache item in the context. |
| */ |
| void visitCacheItems(void callback(Source source, SourceEntry dartEntry, |