| Index: pkg/analysis_server/test/services/completion/local_reference_contributor_test.dart
|
| diff --git a/pkg/analysis_server/test/services/completion/local_reference_contributor_test.dart b/pkg/analysis_server/test/services/completion/local_reference_contributor_test.dart
|
| index 28ceb3d75b42a4564ae5faaca98154a4288c72bb..700f414a015758b255ba199da2da7ffe0e4a4878 100644
|
| --- a/pkg/analysis_server/test/services/completion/local_reference_contributor_test.dart
|
| +++ b/pkg/analysis_server/test/services/completion/local_reference_contributor_test.dart
|
| @@ -603,6 +603,38 @@ class B extends A {
|
| assertNotSuggested('MC');
|
| }
|
|
|
| + test_inComment_block_beforeNode() {
|
| + addTestSource('''
|
| +main(aaa, bbb) {
|
| + /* text ^ */
|
| + print(42);
|
| +}
|
| +''');
|
| + expect(computeFast(), isTrue);
|
| + assertNoSuggestions();
|
| + }
|
| +
|
| + test_inComment_endOfLine_beforeNode() {
|
| + addTestSource('''
|
| +main(aaa, bbb) {
|
| + // text ^
|
| + print(42);
|
| +}
|
| +''');
|
| + expect(computeFast(), isTrue);
|
| + assertNoSuggestions();
|
| + }
|
| +
|
| + test_inComment_endOfLine_beforeToken() {
|
| + addTestSource('''
|
| +main(aaa, bbb) {
|
| + // text ^
|
| +}
|
| +''');
|
| + expect(computeFast(), isTrue);
|
| + assertNoSuggestions();
|
| + }
|
| +
|
| test_InstanceCreationExpression() {
|
| addTestSource('''
|
| class A {foo(){var f; {var x;}}}
|
|
|