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

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

Issue 1543313002: Delay TypeProvider.objectType access until after dart:core resynthesizing. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Tweaks for review comments. 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/summary/summary_sdk.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/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 cffd7d90fc538f2c9f9234b1f539f1d8929272da..9ff4a7ff8a947143a817796a705d0a0ddc81d8ff 100644
--- a/pkg/analyzer/test/src/summary/resynthesize_test.dart
+++ b/pkg/analyzer/test/src/summary/resynthesize_test.dart
@@ -463,6 +463,7 @@ class ResynthTest extends ResolverTestCase {
}
SummaryResynthesizer resynthesizer = new SummaryResynthesizer(
analysisContext,
+ analysisContext.typeProvider,
getPrelinkedSummary,
getUnlinkedSummary,
analysisContext.sourceFactory);
@@ -599,6 +600,14 @@ class E {
checkLibrary('class C { int get x => null; get y => null; }');
}
+ test_class_implicitField_getterFirst() {
+ checkLibrary('class C { int get x => 0; void set x(int value) {} }');
+ }
+
+ test_class_implicitField_setterFirst() {
+ checkLibrary('class C { void set x(int value) {} int get x => 0; }');
+ }
+
test_class_interfaces() {
checkLibrary('class C implements D, E {} class D {} class E {}');
}
@@ -942,6 +951,13 @@ class E {
checkLibrary('import "a.dart"; C c; E e; F f;');
}
+ test_type_reference_to_import_part2() {
+ addLibrarySource('/a.dart', 'library l; part "p1.dart"; part "p2.dart";');
+ addNamedSource('/p1.dart', 'part of l; class C1 {}');
+ addNamedSource('/p2.dart', 'part of l; class C2 {}');
+ checkLibrary('import "a.dart"; C1 c1; C2 c2;');
+ }
+
test_type_reference_to_import_part_in_subdir() {
addLibrarySource('/a/b.dart', 'library l; part "c.dart";');
addNamedSource(
« no previous file with comments | « pkg/analyzer/lib/src/summary/summary_sdk.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698