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

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

Issue 2189783002: Record names of classes which unnamed constructor are used in SuperConstructorInvocation. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 5 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/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 8c081f7456428527bdadb3c4cbc736296677d1ec..cedcb9b093be92ff5defc63d54fa37fd625b89c4 100644
--- a/pkg/analyzer/test/src/task/dart_test.dart
+++ b/pkg/analyzer/test/src/task/dart_test.dart
@@ -3695,6 +3695,22 @@ class U {
expect(info.userToDependsOn['U'], unorderedEquals(['A', 'B']));
}
+ test_class_extendedUsedUnnamedConstructorNames() {
+ ReferencedNames info = _computeReferencedNames('''
+class U1 extends A {
+ U1() : super();
+}
+class U2 extends p.B {
+ U2() : super();
+}
+class U3 extends p.C {
+ U3() : super.named();
+}
+''');
+ expect(
+ info.extendedUsedUnnamedConstructorNames, unorderedEquals(['A', 'B']));
+ }
+
test_class_field() {
ReferencedNames info = _computeReferencedNames('''
class U {

Powered by Google App Engine
This is Rietveld 408576698