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

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

Issue 1165283006: Build full LIBRARY_ELEMENT for every library source in the import/export closure, when resolve a un… (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 6 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 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 fb965da2cf735d7fdc03b234205853a0dae245f7..f89b77194b0dbd1f0bda72b66199eaa8cc5700d8 100644
--- a/pkg/analyzer/test/src/task/dart_test.dart
+++ b/pkg/analyzer/test/src/task/dart_test.dart
@@ -2505,6 +2505,20 @@ class ResolveVariableReferencesTaskTest extends _AbstractDartTaskTest {
expect(variable.isPotentiallyMutatedInScope, mutatedInScope);
}
+ test_perform_buildClosureLibraryElements() {
+ Source source = newSource('/test.dart', '''
+main() {
+}
+''');
+ LibrarySpecificUnit target = new LibrarySpecificUnit(source, source);
+ _computeResult(target, RESOLVED_UNIT5);
+ expect(task, new isInstanceOf<ResolveVariableReferencesTask>());
+ // dart:core LIBRARY_ELEMENT is built
+ expect(analysisCache.getState(
+ context.sourceFactory.resolveUri(null, 'dart:core'),
+ LIBRARY_ELEMENT), CacheState.VALID);
+ }
+
test_perform_local() {
Source source = newSource('/test.dart', '''
main() {
« 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