Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 489d7b1

Browse files
jwrencommit-bot@chromium.org
authored andcommitted
Follow up on https://dart-review.googlesource.com/c/sdk/+/142705 to fix the assertion in the new completions in FieldDeclarations
Change-Id: Id50663401c5dff67cb69fd30aece229f5c1f6617 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/142883 Commit-Queue: Jaime Wren <[email protected]> Commit-Queue: Brian Wilkerson <[email protected]> Auto-Submit: Jaime Wren <[email protected]> Reviewed-by: Brian Wilkerson <[email protected]> Reviewed-by: Konstantin Shcheglov <[email protected]>
1 parent 2388b26 commit 489d7b1

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

pkg/analysis_server/test/services/completion/dart/imported_reference_contributor_test.dart

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1978,8 +1978,10 @@ class B extends ^
19781978
addSource('/home/test/lib/a.dart', 'class A { }');
19791979
addTestSource('''
19801980
import 'a.dart';
1981-
// comment
1982-
class C {^ foo;} ''');
1981+
class C {
1982+
// comment
1983+
^ foo;
1984+
} ''');
19831985

19841986
await computeSuggestions();
19851987
assertSuggestClass('A');
@@ -1992,8 +1994,10 @@ class B extends ^
19921994
addSource('/home/test/lib/a.dart', 'class A { }');
19931995
addTestSource('''
19941996
import 'a.dart';
1995-
/* comment */
1996-
class C {^ foo;} ''');
1997+
class C {
1998+
/* comment */
1999+
^ foo;
2000+
} ''');
19972001

19982002
await computeSuggestions();
19992003
assertSuggestClass('A');
@@ -2006,8 +2010,10 @@ class B extends ^
20062010
addSource('/home/test/lib/a.dart', 'class A { }');
20072011
addTestSource('''
20082012
import 'a.dart';
2009-
/// some dartdoc
2010-
class C {^ foo;} ''');
2013+
class C {
2014+
/// some dartdoc
2015+
^ foo;
2016+
} ''');
20112017

20122018
await computeSuggestions();
20132019
assertSuggestClass('A');

0 commit comments

Comments
 (0)