| OLD | NEW |
| 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 library test.services.completion.contributor.dart.local_lib; | 5 library test.services.completion.contributor.dart.local_lib; |
| 6 | 6 |
| 7 import 'package:analysis_server/src/provisional/completion/dart/completion_dart.
dart'; | 7 import 'package:analysis_server/src/provisional/completion/dart/completion_dart.
dart'; |
| 8 import 'package:analysis_server/src/services/completion/dart/local_library_contr
ibutor.dart'; | 8 import 'package:analysis_server/src/services/completion/dart/local_library_contr
ibutor.dart'; |
| 9 import 'package:test_reflective_loader/test_reflective_loader.dart'; | 9 import 'package:test_reflective_loader/test_reflective_loader.dart'; |
| 10 import 'package:unittest/unittest.dart'; | 10 import 'package:unittest/unittest.dart'; |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 // Suggested by LocalConstructorContributor | 53 // Suggested by LocalConstructorContributor |
| 54 assertNotSuggested('B.bar'); | 54 assertNotSuggested('B.bar'); |
| 55 // Suggested by ImportedReferenceContributor | 55 // Suggested by ImportedReferenceContributor |
| 56 assertNotSuggested('Object'); | 56 assertNotSuggested('Object'); |
| 57 assertNotSuggested('X.c'); | 57 assertNotSuggested('X.c'); |
| 58 assertNotSuggested('X._d'); | 58 assertNotSuggested('X._d'); |
| 59 assertNotSuggested('F1'); | 59 assertNotSuggested('F1'); |
| 60 assertNotSuggested('T1'); | 60 assertNotSuggested('T1'); |
| 61 assertNotSuggested('_d'); | 61 assertNotSuggested('_d'); |
| 62 assertNotSuggested('z'); | 62 assertNotSuggested('z'); |
| 63 assertSuggestTopLevelVar('m', 'dynamic', | 63 assertNotSuggested('m'); |
| 64 relevance: DART_RELEVANCE_LOCAL_TOP_LEVEL_VARIABLE); | |
| 65 } | 64 } |
| 66 | 65 |
| 67 test_partFile_Constructor2() async { | 66 test_partFile_Constructor2() async { |
| 68 // SimpleIdentifier TypeName ConstructorName | 67 // SimpleIdentifier TypeName ConstructorName |
| 69 addSource( | 68 addSource( |
| 70 '/testB.dart', | 69 '/testB.dart', |
| 71 ''' | 70 ''' |
| 72 lib B; | 71 lib B; |
| 73 int T1; | 72 int T1; |
| 74 F1() { } | 73 F1() { } |
| (...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 300 assertNotSuggested('Object'); | 299 assertNotSuggested('Object'); |
| 301 assertNotSuggested('X.c'); | 300 assertNotSuggested('X.c'); |
| 302 assertNotSuggested('X._d'); | 301 assertNotSuggested('X._d'); |
| 303 assertNotSuggested('F1'); | 302 assertNotSuggested('F1'); |
| 304 assertNotSuggested('T1'); | 303 assertNotSuggested('T1'); |
| 305 assertNotSuggested('_d'); | 304 assertNotSuggested('_d'); |
| 306 assertNotSuggested('z'); | 305 assertNotSuggested('z'); |
| 307 assertNotSuggested('m'); | 306 assertNotSuggested('m'); |
| 308 } | 307 } |
| 309 } | 308 } |
| OLD | NEW |