Index: pkg/analysis_server/test/services/completion/dart/type_member_contributor_test.dart |
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 1a74e78f4bfd6f207c36cc06c818dc33c05da507..b3dfba3c6a36ce341587ab6e5431e00d5fc5548d 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 |
@@ -2992,9 +2992,9 @@ void main() {new C().^}'''); |
test_MethodInvocation_no_semicolon() async { |
// MethodInvocation ExpressionStatement Block |
- addTestSource(''' |
+ addTestSource(r''' |
main() { } |
- class I {X get f => new A();get _g => new A();} |
+ class I {X get f => new A();get _g => new A(); F $p; void $q(){}} |
class A implements I { |
var b; X _c; |
X get d => new A();get _e => new A(); |
@@ -3007,6 +3007,8 @@ void main() {new C().^}'''); |
expect(replacementLength, 0); |
assertSuggestGetter('f', 'X'); |
assertSuggestGetter('_g', null); |
+ assertSuggestField(r'$p', 'dynamic', relevance: DART_RELEVANCE_LOW); |
+ assertSuggestMethod(r'$q', 'I', 'void', relevance: DART_RELEVANCE_LOW); |
assertNotSuggested('b'); |
assertNotSuggested('_c'); |
assertNotSuggested('d'); |