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

Unified Diff: pkg/analyzer/test/src/task/dart_test.dart

Issue 1495783005: Issue 25101. Flush TOKEN_STREAM after computing PARSED_UNIT. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/analyzer/lib/src/task/dart.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/test/src/task/dart_test.dart
diff --git a/pkg/analyzer/test/src/task/dart_test.dart b/pkg/analyzer/test/src/task/dart_test.dart
index 3fecdd141ba8332f1e005dc9591d638811fd3616..f39d8f9ef0ccba4643e2e595868454e6c60b4520 100644
--- a/pkg/analyzer/test/src/task/dart_test.dart
+++ b/pkg/analyzer/test/src/task/dart_test.dart
@@ -2913,6 +2913,13 @@ part 'test.dart';
expect(outputs[UNITS], hasLength(1));
}
+ test_perform_flushTokenStream() {
+ _performParseTask(r'''
+class Test {}
+''');
+ expect(analysisCache.getState(source, TOKEN_STREAM), CacheState.FLUSHED);
+ }
+
test_perform_invalidDirectives() {
_performParseTask(r'''
library lib;
« no previous file with comments | « pkg/analyzer/lib/src/task/dart.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698