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

Unified Diff: pkg/analyzer/test/src/summary/resynthesize_test.dart

Issue 1744633002: Expose LibraryElementImpl.libraryCycle through LibraryElement. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 10 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
Index: pkg/analyzer/test/src/summary/resynthesize_test.dart
diff --git a/pkg/analyzer/test/src/summary/resynthesize_test.dart b/pkg/analyzer/test/src/summary/resynthesize_test.dart
index 367d5b6313ffdc1e05f1f3adc34559751a221e0d..aa7f627cd02a21b7502bc298493cf9a283db211a 100644
--- a/pkg/analyzer/test/src/summary/resynthesize_test.dart
+++ b/pkg/analyzer/test/src/summary/resynthesize_test.dart
@@ -119,6 +119,7 @@ class ResynthTest extends ResolverTestCase {
original.loadLibraryFunction as ExecutableElementImpl,
'(loadLibraryFunction)');
}
+ expect(resynthesized.libraryCycle.toSet(), original.libraryCycle.toSet());
}
/**
@@ -3970,7 +3971,7 @@ var x;''');
}
test_variable_propagatedType_final_dep_inLib() {
- addNamedSource('/a.dart', 'final a = 1;');
+ addLibrarySource('/a.dart', 'final a = 1;');
checkLibrary('import "a.dart"; final b = a / 2;');
}
@@ -3985,8 +3986,8 @@ var x;''');
test_variable_propagatedType_implicit_dep() {
// The propagated type is defined in a library that is not imported.
- addNamedSource('/a.dart', 'class C {}');
- addNamedSource('/b.dart', 'import "a.dart"; C f() => null;');
+ addLibrarySource('/a.dart', 'class C {}');
+ addLibrarySource('/b.dart', 'import "a.dart"; C f() => null;');
checkLibrary('import "b.dart"; final x = f();');
}
« pkg/analyzer/lib/dart/element/element.dart ('K') | « 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