Replace TypeName with NamedType in completion test breadcrumbs.
Change-Id: Ia28d62bc8d677dfb355f34e99eed908ce67ae606
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/218742
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
diff --git a/pkg/analysis_server/test/services/completion/dart/imported_reference_contributor_test.dart b/pkg/analysis_server/test/services/completion/dart/imported_reference_contributor_test.dart
index 6f277c3..fae0f6f 100644
--- a/pkg/analysis_server/test/services/completion/dart/imported_reference_contributor_test.dart
+++ b/pkg/analysis_server/test/services/completion/dart/imported_reference_contributor_test.dart
@@ -331,7 +331,7 @@
}
Future<void> test_AsExpression() async {
- // SimpleIdentifier TypeName AsExpression
+ // SimpleIdentifier NamedType AsExpression
addTestSource('''
class A {var b; X _c; foo() {var a; (a as ^).foo();}''');
@@ -351,7 +351,7 @@
// suggesting types. We ought to do so because there's no reason to cast a
// value to the type it already has.
- // SimpleIdentifier TypeName AsExpression IfStatement
+ // SimpleIdentifier NamedType AsExpression IfStatement
addSource('/home/test/lib/b.dart', '''
foo() { }
class A {} class B extends A {} class C extends B {}
@@ -378,7 +378,7 @@
// suggesting types. We ought to do so because there's no reason to cast a
// value to the type it already has.
- // SimpleIdentifier TypeName AsExpression IfStatement
+ // SimpleIdentifier NamedType AsExpression IfStatement
addSource('/home/test/lib/b.dart', '''
foo() { }
class A {} class B implements A {} class C implements B {}
@@ -423,7 +423,7 @@
}
Future<void> test_AssignmentExpression_type() async {
- // SimpleIdentifier TypeName VariableDeclarationList
+ // SimpleIdentifier NamedType VariableDeclarationList
// VariableDeclarationStatement Block
addTestSource('''
class A {} void f() {
@@ -446,7 +446,7 @@
}
Future<void> test_AssignmentExpression_type_newline() async {
- // SimpleIdentifier TypeName VariableDeclarationList
+ // SimpleIdentifier NamedType VariableDeclarationList
// VariableDeclarationStatement Block
addTestSource('''
class A {} void f() {
@@ -468,7 +468,7 @@
}
Future<void> test_AssignmentExpression_type_partial() async {
- // SimpleIdentifier TypeName VariableDeclarationList
+ // SimpleIdentifier NamedType VariableDeclarationList
// VariableDeclarationStatement Block
addTestSource('''
class A {} void f() {
@@ -491,7 +491,7 @@
}
Future<void> test_AssignmentExpression_type_partial_newline() async {
- // SimpleIdentifier TypeName VariableDeclarationList
+ // SimpleIdentifier NamedType VariableDeclarationList
// VariableDeclarationStatement Block
addTestSource('''
class A {} void f() {
@@ -1342,7 +1342,7 @@
}
Future<void> test_CatchClause_onType() async {
- // TypeName CatchClause TryStatement
+ // NamedType CatchClause TryStatement
addTestSource('class A {a() {try{var x;} on ^ {}}}');
await computeSuggestions();
@@ -1355,7 +1355,7 @@
}
Future<void> test_CatchClause_onType_noBrackets() async {
- // TypeName CatchClause TryStatement
+ // NamedType CatchClause TryStatement
addTestSource('class A {a() {try{var x;} on ^}}');
await computeSuggestions();
@@ -1692,7 +1692,7 @@
}
Future<void> test_ConstructorName_importedClass() async {
- // SimpleIdentifier PrefixedIdentifier TypeName ConstructorName
+ // SimpleIdentifier PrefixedIdentifier NamedType ConstructorName
// InstanceCreationExpression
addSource('/home/test/lib/b.dart', '''
lib B;
@@ -1717,7 +1717,7 @@
}
Future<void> test_ConstructorName_importedFactory() async {
- // SimpleIdentifier PrefixedIdentifier TypeName ConstructorName
+ // SimpleIdentifier PrefixedIdentifier NamedType ConstructorName
// InstanceCreationExpression
addSource('/home/test/lib/b.dart', '''
lib B;
@@ -1742,7 +1742,7 @@
}
Future<void> test_ConstructorName_importedFactory2() async {
- // SimpleIdentifier PrefixedIdentifier TypeName ConstructorName
+ // SimpleIdentifier PrefixedIdentifier NamedType ConstructorName
// InstanceCreationExpression
addTestSource('''
void f() {new String.fr^omCharCodes([]);}''');
@@ -1760,7 +1760,7 @@
}
Future<void> test_ConstructorName_localClass() async {
- // SimpleIdentifier PrefixedIdentifier TypeName ConstructorName
+ // SimpleIdentifier PrefixedIdentifier NamedType ConstructorName
// InstanceCreationExpression
addTestSource('''
int T1;
@@ -1781,7 +1781,7 @@
}
Future<void> test_ConstructorName_localFactory() async {
- // SimpleIdentifier PrefixedIdentifier TypeName ConstructorName
+ // SimpleIdentifier PrefixedIdentifier NamedType ConstructorName
// InstanceCreationExpression
addTestSource('''
int T1;
@@ -2911,7 +2911,7 @@
}
Future<void> test_InstanceCreationExpression_imported() async {
- // SimpleIdentifier TypeName ConstructorName InstanceCreationExpression
+ // SimpleIdentifier NamedType ConstructorName InstanceCreationExpression
addSource('/home/test/lib/a.dart', '''
int T1;
F1() { }
@@ -2954,7 +2954,7 @@
}
Future<void> test_InstanceCreationExpression_unimported() async {
- // SimpleIdentifier TypeName ConstructorName InstanceCreationExpression
+ // SimpleIdentifier NamedType ConstructorName InstanceCreationExpression
addSource('/home/test/lib/ab.dart', 'class Clip { }');
addTestSource('class A {foo(){new C^}}');
@@ -3087,7 +3087,7 @@
}
Future<void> test_IsExpression() async {
- // SimpleIdentifier TypeName IsExpression IfStatement
+ // SimpleIdentifier NamedType IsExpression IfStatement
addSource('/home/test/lib/b.dart', '''
lib B;
foo() { }
@@ -3127,7 +3127,7 @@
}
Future<void> test_IsExpression_type() async {
- // SimpleIdentifier TypeName IsExpression IfStatement
+ // SimpleIdentifier NamedType IsExpression IfStatement
addTestSource('''
class A {int x; int y() => 0;}
void f(){var a; if (a is ^)}''');
@@ -3142,7 +3142,7 @@
}
Future<void> test_IsExpression_type_partial() async {
- // SimpleIdentifier TypeName IsExpression IfStatement
+ // SimpleIdentifier NamedType IsExpression IfStatement
addTestSource('''
class A {int x; int y() => 0;}
void f(){var a; if (a is Obj^)}''');
@@ -3162,7 +3162,7 @@
// suggesting types. We ought to do so because there's no reason to cast a
// value to the type it already has.
- // SimpleIdentifier TypeName IsExpression IfStatement
+ // SimpleIdentifier NamedType IsExpression IfStatement
addSource('/home/test/lib/b.dart', '''
foo() { }
class A {} class B extends A {} class C extends B {}
@@ -3189,7 +3189,7 @@
// suggesting types. We ought to do so because there's no reason to cast a
// value to the type it already has.
- // SimpleIdentifier TypeName IsExpression IfStatement
+ // SimpleIdentifier NamedType IsExpression IfStatement
addSource('/home/test/lib/b.dart', '''
foo() { }
class A {} class B implements A {} class C implements B {}
@@ -3872,7 +3872,7 @@
}
Future<void> test_partFile_TypeName() async {
- // SimpleIdentifier TypeName ConstructorName
+ // SimpleIdentifier NamedType ConstructorName
addSource('$testPackageLibPath/b.dart', '''
lib B;
int T1;
@@ -3909,7 +3909,7 @@
}
Future<void> test_partFile_TypeName2() async {
- // SimpleIdentifier TypeName ConstructorName
+ // SimpleIdentifier NamedType ConstructorName
addSource('/home/test/lib/b.dart', '''
lib libB;
int T1;
@@ -4097,7 +4097,7 @@
}
Future<void> test_PrefixedIdentifier_library_typesOnly() async {
- // SimpleIdentifier PrefixedIdentifier TypeName
+ // SimpleIdentifier PrefixedIdentifier NamedType
addSource('/home/test/lib/b.dart', '''
lib B;
var T1;
@@ -4124,7 +4124,7 @@
}
Future<void> test_PrefixedIdentifier_library_typesOnly2() async {
- // SimpleIdentifier PrefixedIdentifier TypeName
+ // SimpleIdentifier PrefixedIdentifier NamedType
addSource('/home/test/lib/b.dart', '''
lib B;
var T1;
@@ -4756,7 +4756,7 @@
}
Future<void> test_TypeArgumentList2() async {
- // TypeName TypeArgumentList TypeName
+ // NamedType TypeArgumentList NamedType
addSource('/home/test/lib/a.dart', '''
class C1 {int x;}
F1() => 0;
diff --git a/pkg/analysis_server/test/services/completion/dart/library_member_contributor_test.dart b/pkg/analysis_server/test/services/completion/dart/library_member_contributor_test.dart
index 5c1db88..646b75b 100644
--- a/pkg/analysis_server/test/services/completion/dart/library_member_contributor_test.dart
+++ b/pkg/analysis_server/test/services/completion/dart/library_member_contributor_test.dart
@@ -224,7 +224,7 @@
}
Future<void> test_PrefixedIdentifier_library_typesOnly() async {
- // SimpleIdentifier PrefixedIdentifier TypeName
+ // SimpleIdentifier PrefixedIdentifier NamedType
newFile('$testPackageLibPath/b.dart', content: '''
lib B;
var T1;
@@ -257,7 +257,7 @@
}
Future<void> test_PrefixedIdentifier_library_typesOnly2() async {
- // SimpleIdentifier PrefixedIdentifier TypeName
+ // SimpleIdentifier PrefixedIdentifier NamedType
newFile('$testPackageLibPath/b.dart', content: '''
lib B;
var T1;
diff --git a/pkg/analysis_server/test/services/completion/dart/local_library_contributor_test.dart b/pkg/analysis_server/test/services/completion/dart/local_library_contributor_test.dart
index 3a6fa56..52c6b90 100644
--- a/pkg/analysis_server/test/services/completion/dart/local_library_contributor_test.dart
+++ b/pkg/analysis_server/test/services/completion/dart/local_library_contributor_test.dart
@@ -28,7 +28,7 @@
}
Future<void> test_partFile_Constructor() async {
- // SimpleIdentifier TypeName ConstructorName
+ // SimpleIdentifier NamedType ConstructorName
newFile('$testPackageLibPath/b.dart', content: '''
lib B;
int T1;
@@ -63,7 +63,7 @@
}
Future<void> test_partFile_Constructor2() async {
- // SimpleIdentifier TypeName ConstructorName
+ // SimpleIdentifier NamedType ConstructorName
newFile('$testPackageLibPath/b.dart', content: '''
lib B;
int T1;
diff --git a/pkg/analysis_server/test/services/completion/dart/local_reference_contributor_test.dart b/pkg/analysis_server/test/services/completion/dart/local_reference_contributor_test.dart
index 6e7253d..878fc99 100644
--- a/pkg/analysis_server/test/services/completion/dart/local_reference_contributor_test.dart
+++ b/pkg/analysis_server/test/services/completion/dart/local_reference_contributor_test.dart
@@ -536,7 +536,7 @@
}
Future<void> test_AsExpression_type() async {
- // SimpleIdentifier TypeName AsExpression
+ // SimpleIdentifier NamedType AsExpression
addTestSource('''
class A {var b; X _c; foo() {var a; (a as ^).foo();}''');
await computeSuggestions();
@@ -556,7 +556,7 @@
// suggesting types. We ought to do so because there's no reason to cast a
// value to the type it already has.
- // SimpleIdentifier TypeName AsExpression
+ // SimpleIdentifier NamedType AsExpression
addTestSource('''
class A {} class B extends A {} class C extends A {} class D {}
f(A a){ (a as ^) }''');
@@ -577,7 +577,7 @@
// suggesting types. We ought to do so because there's no reason to cast a
// value to the type it already has.
- // SimpleIdentifier TypeName AsExpression
+ // SimpleIdentifier NamedType AsExpression
addTestSource('''
class A {} class B implements A {} class C implements A {} class D {}
f(A a){ (a as ^) }''');
@@ -593,7 +593,7 @@
}
Future<void> test_AsExpression_type_filter_undefined_type() async {
- // SimpleIdentifier TypeName AsExpression
+ // SimpleIdentifier NamedType AsExpression
addTestSource('''
class A {}
f(U u){ (u as ^) }''');
@@ -628,7 +628,7 @@
}
Future<void> test_AssignmentExpression_type() async {
- // SimpleIdentifier TypeName VariableDeclarationList
+ // SimpleIdentifier NamedType VariableDeclarationList
// VariableDeclarationStatement Block
addTestSource('''
class A {} void f() {
@@ -652,7 +652,7 @@
}
Future<void> test_AssignmentExpression_type_newline() async {
- // SimpleIdentifier TypeName VariableDeclarationList
+ // SimpleIdentifier NamedType VariableDeclarationList
// VariableDeclarationStatement Block
addTestSource('''
class A {} void f() {
@@ -675,7 +675,7 @@
}
Future<void> test_AssignmentExpression_type_partial() async {
- // SimpleIdentifier TypeName VariableDeclarationList
+ // SimpleIdentifier NamedType VariableDeclarationList
// VariableDeclarationStatement Block
addTestSource('''
class A {} void f() {
@@ -699,7 +699,7 @@
}
Future<void> test_AssignmentExpression_type_partial_newline() async {
- // SimpleIdentifier TypeName VariableDeclarationList
+ // SimpleIdentifier NamedType VariableDeclarationList
// VariableDeclarationStatement Block
addTestSource('''
class A {} void f() {
@@ -1616,7 +1616,7 @@
}
Future<void> test_CatchClause_onType() async {
- // TypeName CatchClause TryStatement
+ // NamedType CatchClause TryStatement
addTestSource('class A {a() {try{var x;} on ^ {}}}');
await computeSuggestions();
@@ -1629,7 +1629,7 @@
}
Future<void> test_CatchClause_onType_noBrackets() async {
- // TypeName CatchClause TryStatement
+ // NamedType CatchClause TryStatement
addTestSource('class A {a() {try{var x;} on ^}}');
await computeSuggestions();
@@ -2066,7 +2066,7 @@
}
Future<void> test_ConstructorName_importedClass() async {
- // SimpleIdentifier PrefixedIdentifier TypeName ConstructorName
+ // SimpleIdentifier PrefixedIdentifier NamedType ConstructorName
// InstanceCreationExpression
addSource('/home/test/lib/b.dart', '''
lib B;
@@ -2091,7 +2091,7 @@
}
Future<void> test_ConstructorName_importedFactory() async {
- // SimpleIdentifier PrefixedIdentifier TypeName ConstructorName
+ // SimpleIdentifier PrefixedIdentifier NamedType ConstructorName
// InstanceCreationExpression
addSource('/home/test/lib/b.dart', '''
lib B;
@@ -2116,7 +2116,7 @@
}
Future<void> test_ConstructorName_importedFactory2() async {
- // SimpleIdentifier PrefixedIdentifier TypeName ConstructorName
+ // SimpleIdentifier PrefixedIdentifier NamedType ConstructorName
// InstanceCreationExpression
addTestSource('''
void f() {new String.fr^omCharCodes([]);}''');
@@ -2134,7 +2134,7 @@
}
Future<void> test_ConstructorName_localClass() async {
- // SimpleIdentifier PrefixedIdentifier TypeName ConstructorName
+ // SimpleIdentifier PrefixedIdentifier NamedType ConstructorName
// InstanceCreationExpression
addTestSource('''
int T1;
@@ -2155,7 +2155,7 @@
}
Future<void> test_ConstructorName_localFactory() async {
- // SimpleIdentifier PrefixedIdentifier TypeName ConstructorName
+ // SimpleIdentifier PrefixedIdentifier NamedType ConstructorName
// InstanceCreationExpression
addTestSource('''
int T1;
@@ -3762,7 +3762,7 @@
}
Future<void> test_InstanceCreationExpression_imported() async {
- // SimpleIdentifier TypeName ConstructorName InstanceCreationExpression
+ // SimpleIdentifier NamedType ConstructorName InstanceCreationExpression
addSource('/home/test/lib/a.dart', '''
int T1;
F1() { }
@@ -3822,7 +3822,7 @@
}
Future<void> test_InstanceCreationExpression_unimported() async {
- // SimpleIdentifier TypeName ConstructorName InstanceCreationExpression
+ // SimpleIdentifier NamedType ConstructorName InstanceCreationExpression
addSource('/testAB.dart', 'class Foo { }');
addTestSource('class C {foo(){new F^}}');
await computeSuggestions();
@@ -3937,7 +3937,7 @@
}
Future<void> test_IsExpression() async {
- // SimpleIdentifier TypeName IsExpression IfStatement
+ // SimpleIdentifier NamedType IsExpression IfStatement
addSource('/home/test/lib/b.dart', '''
lib B;
foo() { }
@@ -3977,7 +3977,7 @@
}
Future<void> test_IsExpression_type() async {
- // SimpleIdentifier TypeName IsExpression IfStatement
+ // SimpleIdentifier NamedType IsExpression IfStatement
addTestSource('''
class A {int x; int y() => 0;}
void f(){var a; if (a is ^)}''');
@@ -3997,7 +3997,7 @@
// suggesting types. We ought to do so because there's no reason to cast a
// value to the type it already has.
- // SimpleIdentifier TypeName IsExpression IfStatement
+ // SimpleIdentifier NamedType IsExpression IfStatement
addTestSource('''
class A {} class B extends A {} class C extends A {} class D {}
f(A a){ if (a is ^) {}}''');
@@ -4018,7 +4018,7 @@
// suggesting types. We ought to do so because there's no reason to cast a
// value to the type it already has.
- // SimpleIdentifier TypeName IsExpression IfStatement
+ // SimpleIdentifier NamedType IsExpression IfStatement
addTestSource('''
class A {} class B implements A {} class C implements A {} class D {}
f(A a){ if (a is ^) {}}''');
@@ -4034,7 +4034,7 @@
}
Future<void> test_IsExpression_type_filter_undefined_type() async {
- // SimpleIdentifier TypeName AsExpression
+ // SimpleIdentifier NamedType AsExpression
addTestSource('''
class A {}
f(U u){ (u as ^) }''');
@@ -4046,7 +4046,7 @@
}
Future<void> test_IsExpression_type_partial() async {
- // SimpleIdentifier TypeName IsExpression IfStatement
+ // SimpleIdentifier NamedType IsExpression IfStatement
addTestSource('''
class A {int x; int y() => 0;}
void f(){var a; if (a is Obj^)}''');
@@ -5405,7 +5405,7 @@
}
Future<void> test_PrefixedIdentifier_library_typesOnly() async {
- // SimpleIdentifier PrefixedIdentifier TypeName
+ // SimpleIdentifier PrefixedIdentifier NamedType
addSource('/home/test/lib/b.dart', '''
lib B;
var T1;
@@ -5432,7 +5432,7 @@
}
Future<void> test_PrefixedIdentifier_library_typesOnly2() async {
- // SimpleIdentifier PrefixedIdentifier TypeName
+ // SimpleIdentifier PrefixedIdentifier NamedType
addSource('/home/test/lib/b.dart', '''
lib B;
var T1;
@@ -6133,7 +6133,7 @@
}
Future<void> test_TypeArgumentList2() async {
- // TypeName TypeArgumentList TypeName
+ // NamedType TypeArgumentList NamedType
addSource('/home/test/lib/a.dart', '''
class C1 {int x;}
F1() => 0;
diff --git a/pkg/analysis_server/test/services/completion/dart/named_constructor_contributor_test.dart b/pkg/analysis_server/test/services/completion/dart/named_constructor_contributor_test.dart
index a671eeb..c522a1f 100644
--- a/pkg/analysis_server/test/services/completion/dart/named_constructor_contributor_test.dart
+++ b/pkg/analysis_server/test/services/completion/dart/named_constructor_contributor_test.dart
@@ -290,7 +290,7 @@
}
Future<void> test_ConstructorName_importedClass() async {
- // SimpleIdentifier PrefixedIdentifier TypeName ConstructorName
+ // SimpleIdentifier PrefixedIdentifier NamedType ConstructorName
// InstanceCreationExpression
addSource('/home/test/lib/b.dart', '''
lib B;
@@ -318,7 +318,7 @@
}
Future<void> test_ConstructorName_importedClass_unresolved() async {
- // SimpleIdentifier PrefixedIdentifier TypeName ConstructorName
+ // SimpleIdentifier PrefixedIdentifier NamedType ConstructorName
// InstanceCreationExpression
addSource('/home/test/lib/b.dart', '''
lib B;
@@ -347,7 +347,7 @@
}
Future<void> test_ConstructorName_importedFactory() async {
- // SimpleIdentifier PrefixedIdentifier TypeName ConstructorName
+ // SimpleIdentifier PrefixedIdentifier NamedType ConstructorName
// InstanceCreationExpression
addSource('/home/test/lib/b.dart', '''
lib B;
@@ -375,7 +375,7 @@
}
Future<void> test_ConstructorName_importedFactory2() async {
- // SimpleIdentifier PrefixedIdentifier TypeName ConstructorName
+ // SimpleIdentifier PrefixedIdentifier NamedType ConstructorName
// InstanceCreationExpression
addTestSource('''
main() {new String.fr^omCharCodes([]);}''');
@@ -395,7 +395,7 @@
}
Future<void> test_ConstructorName_localClass() async {
- // SimpleIdentifier PrefixedIdentifier TypeName ConstructorName
+ // SimpleIdentifier PrefixedIdentifier NamedType ConstructorName
// InstanceCreationExpression
addTestSource('''
int T1;
@@ -422,7 +422,7 @@
}
Future<void> test_ConstructorName_localFactory() async {
- // SimpleIdentifier PrefixedIdentifier TypeName ConstructorName
+ // SimpleIdentifier PrefixedIdentifier NamedType ConstructorName
// InstanceCreationExpression
addTestSource('''
int T1;
diff --git a/pkg/analysis_server/test/services/completion/dart/type_member_contributor_test.dart b/pkg/analysis_server/test/services/completion/dart/type_member_contributor_test.dart
index c7f9a18..fb04e96 100644
--- a/pkg/analysis_server/test/services/completion/dart/type_member_contributor_test.dart
+++ b/pkg/analysis_server/test/services/completion/dart/type_member_contributor_test.dart
@@ -338,7 +338,7 @@
}
Future<void> test_AsExpression() async {
- // SimpleIdentifier TypeName AsExpression
+ // SimpleIdentifier NamedType AsExpression
addTestSource('''
class A {var b; X _c; foo() {var a; (a as ^).foo();}''');
await computeSuggestions();
@@ -373,7 +373,7 @@
}
Future<void> test_AssignmentExpression_type() async {
- // SimpleIdentifier TypeName VariableDeclarationList
+ // SimpleIdentifier NamedType VariableDeclarationList
// VariableDeclarationStatement Block
addTestSource('''
class A {} void f() {
@@ -395,7 +395,7 @@
}
Future<void> test_AssignmentExpression_type_newline() async {
- // SimpleIdentifier TypeName VariableDeclarationList
+ // SimpleIdentifier NamedType VariableDeclarationList
// VariableDeclarationStatement Block
addTestSource('''
class A {} void f() {
@@ -416,7 +416,7 @@
}
Future<void> test_AssignmentExpression_type_partial() async {
- // SimpleIdentifier TypeName VariableDeclarationList
+ // SimpleIdentifier NamedType VariableDeclarationList
// VariableDeclarationStatement Block
addTestSource('''
class A {} void f() {
@@ -438,7 +438,7 @@
}
Future<void> test_AssignmentExpression_type_partial_newline() async {
- // SimpleIdentifier TypeName VariableDeclarationList
+ // SimpleIdentifier NamedType VariableDeclarationList
// VariableDeclarationStatement Block
addTestSource('''
class A {} void f() {
@@ -1203,7 +1203,7 @@
}
Future<void> test_CatchClause_onType() async {
- // TypeName CatchClause TryStatement
+ // NamedType CatchClause TryStatement
addTestSource('class A {a() {try{var x;} on ^ {}}}');
await computeSuggestions();
expect(replacementOffset, completionOffset);
@@ -1215,7 +1215,7 @@
}
Future<void> test_CatchClause_onType_noBrackets() async {
- // TypeName CatchClause TryStatement
+ // NamedType CatchClause TryStatement
addTestSource('class A {a() {try{var x;} on ^}}');
await computeSuggestions();
expect(replacementOffset, completionOffset);
@@ -1520,7 +1520,7 @@
}
Future<void> test_ConstructorName_importedClass() async {
- // SimpleIdentifier PrefixedIdentifier TypeName ConstructorName
+ // SimpleIdentifier PrefixedIdentifier NamedType ConstructorName
// InstanceCreationExpression
addSource('/home/test/lib/b.dart', '''
lib B;
@@ -1544,7 +1544,7 @@
}
Future<void> test_ConstructorName_importedFactory() async {
- // SimpleIdentifier PrefixedIdentifier TypeName ConstructorName
+ // SimpleIdentifier PrefixedIdentifier NamedType ConstructorName
// InstanceCreationExpression
addSource('/home/test/lib/b.dart', '''
lib B;
@@ -1568,7 +1568,7 @@
}
Future<void> test_ConstructorName_importedFactory2() async {
- // SimpleIdentifier PrefixedIdentifier TypeName ConstructorName
+ // SimpleIdentifier PrefixedIdentifier NamedType ConstructorName
// InstanceCreationExpression
addTestSource('''
void f() {new String.fr^omCharCodes([]);}''');
@@ -1585,7 +1585,7 @@
}
Future<void> test_ConstructorName_localClass() async {
- // SimpleIdentifier PrefixedIdentifier TypeName ConstructorName
+ // SimpleIdentifier PrefixedIdentifier NamedType ConstructorName
// InstanceCreationExpression
addTestSource('''
int T1;
@@ -1605,7 +1605,7 @@
}
Future<void> test_ConstructorName_localFactory() async {
- // SimpleIdentifier PrefixedIdentifier TypeName ConstructorName
+ // SimpleIdentifier PrefixedIdentifier NamedType ConstructorName
// InstanceCreationExpression
addTestSource('''
int T1;
@@ -2217,7 +2217,7 @@
}
Future<void> test_InstanceCreationExpression_imported() async {
- // SimpleIdentifier TypeName ConstructorName InstanceCreationExpression
+ // SimpleIdentifier NamedType ConstructorName InstanceCreationExpression
addSource('/home/test/lib/a.dart', '''
int T1;
F1() { }
@@ -2247,7 +2247,7 @@
}
Future<void> test_InstanceCreationExpression_unimported() async {
- // SimpleIdentifier TypeName ConstructorName InstanceCreationExpression
+ // SimpleIdentifier NamedType ConstructorName InstanceCreationExpression
addSource('/testAB.dart', 'class Foo { }');
addTestSource('class C {foo(){new F^}}');
await computeSuggestions();
@@ -2398,7 +2398,7 @@
}
Future<void> test_IsExpression() async {
- // SimpleIdentifier TypeName IsExpression IfStatement
+ // SimpleIdentifier NamedType IsExpression IfStatement
addSource('/home/test/lib/b.dart', '''
lib B;
foo() { }
@@ -2436,7 +2436,7 @@
}
Future<void> test_IsExpression_type() async {
- // SimpleIdentifier TypeName IsExpression IfStatement
+ // SimpleIdentifier NamedType IsExpression IfStatement
addTestSource('''
class A {int x; int y() => 0;}
void f(){var a; if (a is ^)}''');
@@ -2450,7 +2450,7 @@
}
Future<void> test_IsExpression_type_partial() async {
- // SimpleIdentifier TypeName IsExpression IfStatement
+ // SimpleIdentifier NamedType IsExpression IfStatement
addTestSource('''
class A {int x; int y() => 0;}
void f(){var a; if (a is Obj^)}''');
@@ -3267,7 +3267,7 @@
}
Future<void> test_partFile_TypeName() async {
- // SimpleIdentifier TypeName ConstructorName
+ // SimpleIdentifier NamedType ConstructorName
addSource('/home/test/lib/b.dart', '''
lib B;
int T1;
@@ -3299,7 +3299,7 @@
}
Future<void> test_partFile_TypeName2() async {
- // SimpleIdentifier TypeName ConstructorName
+ // SimpleIdentifier NamedType ConstructorName
addSource('/home/test/lib/b.dart', '''
lib B;
int T1;
@@ -3479,7 +3479,7 @@
}
Future<void> test_PrefixedIdentifier_library_typesOnly() async {
- // SimpleIdentifier PrefixedIdentifier TypeName
+ // SimpleIdentifier PrefixedIdentifier NamedType
addSource('/home/test/lib/b.dart', '''
lib B;
var T1;
@@ -3505,7 +3505,7 @@
}
Future<void> test_PrefixedIdentifier_library_typesOnly2() async {
- // SimpleIdentifier PrefixedIdentifier TypeName
+ // SimpleIdentifier PrefixedIdentifier NamedType
addSource('/home/test/lib/b.dart', '''
lib B;
var T1;
@@ -4173,7 +4173,7 @@
}
Future<void> test_TypeArgumentList2() async {
- // TypeName TypeArgumentList TypeName
+ // NamedType TypeArgumentList NamedType
addSource('/home/test/lib/a.dart', '''
class C1 {int x;}
F1() => 0;