| 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 import 'dart:async'; | 5 import 'dart:async'; |
| 6 | 6 |
| 7 import 'package:analysis_server/protocol/protocol_generated.dart'; | |
| 8 import 'package:analysis_server/src/ide_options.dart'; | 7 import 'package:analysis_server/src/ide_options.dart'; |
| 9 import 'package:analysis_server/src/provisional/completion/dart/completion_dart.
dart'; | 8 import 'package:analysis_server/src/provisional/completion/dart/completion_dart.
dart'; |
| 10 import 'package:analysis_server/src/services/completion/completion_core.dart'; | 9 import 'package:analysis_server/src/services/completion/completion_core.dart'; |
| 11 import 'package:analysis_server/src/services/completion/completion_performance.d
art'; | 10 import 'package:analysis_server/src/services/completion/completion_performance.d
art'; |
| 12 import 'package:analysis_server/src/services/completion/dart/completion_manager.
dart' | 11 import 'package:analysis_server/src/services/completion/dart/completion_manager.
dart' |
| 13 show DartCompletionRequestImpl, ReplacementRange; | 12 show DartCompletionRequestImpl, ReplacementRange; |
| 14 import 'package:analyzer/file_system/file_system.dart'; | 13 import 'package:analyzer/file_system/file_system.dart'; |
| 15 import 'package:analyzer/source/package_map_resolver.dart'; | 14 import 'package:analyzer/source/package_map_resolver.dart'; |
| 16 import 'package:analyzer/src/dart/analysis/driver.dart'; | 15 import 'package:analyzer/src/dart/analysis/driver.dart'; |
| 17 import 'package:analyzer/src/generated/source.dart'; | 16 import 'package:analyzer/src/generated/source.dart'; |
| 17 import 'package:analyzer_plugin/protocol/protocol_common.dart'; |
| 18 import 'package:test/test.dart'; | 18 import 'package:test/test.dart'; |
| 19 | 19 |
| 20 import '../../../abstract_context.dart'; | 20 import '../../../abstract_context.dart'; |
| 21 import '../../correction/flutter_util.dart'; | 21 import '../../correction/flutter_util.dart'; |
| 22 | 22 |
| 23 int suggestionComparator(CompletionSuggestion s1, CompletionSuggestion s2) { | 23 int suggestionComparator(CompletionSuggestion s1, CompletionSuggestion s2) { |
| 24 String c1 = s1.completion.toLowerCase(); | 24 String c1 = s1.completion.toLowerCase(); |
| 25 String c2 = s2.completion.toLowerCase(); | 25 String c2 = s2.completion.toLowerCase(); |
| 26 return c1.compareTo(c2); | 26 return c1.compareTo(c2); |
| 27 } | 27 } |
| (...skipping 554 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 582 void resolveSource(String path, String content) { | 582 void resolveSource(String path, String content) { |
| 583 addSource(path, content); | 583 addSource(path, content); |
| 584 } | 584 } |
| 585 | 585 |
| 586 @override | 586 @override |
| 587 void setUp() { | 587 void setUp() { |
| 588 super.setUp(); | 588 super.setUp(); |
| 589 contributor = createContributor(); | 589 contributor = createContributor(); |
| 590 } | 590 } |
| 591 } | 591 } |
| OLD | NEW |