| OLD | NEW |
| 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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.dart.util; | 5 library test.services.completion.dart.util; |
| 6 | 6 |
| 7 import 'dart:async'; | 7 import 'dart:async'; |
| 8 | 8 |
| 9 import 'package:analysis_server/plugin/protocol/protocol.dart' as protocol | 9 import 'package:analysis_server/plugin/protocol/protocol.dart' as protocol |
| 10 show Element, ElementKind; | 10 show Element, ElementKind; |
| 11 import 'package:analysis_server/plugin/protocol/protocol.dart' | 11 import 'package:analysis_server/plugin/protocol/protocol.dart' |
| 12 hide Element, ElementKind; | 12 hide Element, ElementKind; |
| 13 import 'package:analysis_server/plugin/protocol/protocol.dart'; | 13 import 'package:analysis_server/plugin/protocol/protocol.dart'; |
| 14 import 'package:analysis_server/src/provisional/completion/dart/completion_dart.
dart'; | 14 import 'package:analysis_server/src/provisional/completion/dart/completion_dart.
dart'; |
| 15 import 'package:analysis_server/src/services/completion/completion_core.dart'; | 15 import 'package:analysis_server/src/services/completion/completion_core.dart'; |
| 16 import 'package:analysis_server/src/services/completion/dart/completion_manager.
dart' | 16 import 'package:analysis_server/src/services/completion/dart/completion_manager.
dart' |
| 17 show DartCompletionRequestImpl; | 17 show DartCompletionRequestImpl, ReplacementRange; |
| 18 import 'package:analysis_server/src/services/completion/dart_completion_manager.
dart' | |
| 19 show DART_RELEVANCE_DEFAULT, DART_RELEVANCE_LOW, ReplacementRange; | |
| 20 import 'package:analysis_server/src/services/index/index.dart'; | 18 import 'package:analysis_server/src/services/index/index.dart'; |
| 21 import 'package:analysis_server/src/services/index/local_memory_index.dart'; | 19 import 'package:analysis_server/src/services/index/local_memory_index.dart'; |
| 22 import 'package:analysis_server/src/services/search/search_engine_internal.dart'
; | 20 import 'package:analysis_server/src/services/search/search_engine_internal.dart'
; |
| 23 import 'package:analyzer/src/generated/source.dart'; | 21 import 'package:analyzer/src/generated/source.dart'; |
| 24 import 'package:analyzer/task/dart.dart'; | 22 import 'package:analyzer/task/dart.dart'; |
| 25 import 'package:unittest/unittest.dart'; | 23 import 'package:unittest/unittest.dart'; |
| 26 | 24 |
| 27 import '../../../abstract_context.dart'; | 25 import '../../../abstract_context.dart'; |
| 28 | 26 |
| 29 int suggestionComparator(CompletionSuggestion s1, CompletionSuggestion s2) { | 27 int suggestionComparator(CompletionSuggestion s1, CompletionSuggestion s2) { |
| (...skipping 504 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 534 } | 532 } |
| 535 | 533 |
| 536 @override | 534 @override |
| 537 void setUp() { | 535 void setUp() { |
| 538 super.setUp(); | 536 super.setUp(); |
| 539 index = createLocalMemoryIndex(); | 537 index = createLocalMemoryIndex(); |
| 540 searchEngine = new SearchEngineImpl(index); | 538 searchEngine = new SearchEngineImpl(index); |
| 541 contributor = createContributor(); | 539 contributor = createContributor(); |
| 542 } | 540 } |
| 543 } | 541 } |
| OLD | NEW |