Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(230)

Side by Side Diff: pkg/analyzer_plugin/test/utilities/completion/completion_contributor_util.dart

Issue 2937093002: Refactor: Removed ReplacementRange from test and ReplacementRange from src/. Copied contents of tes… (Closed)
Patch Set: Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2017, 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:analyzer/file_system/file_system.dart'; 7 import 'package:analyzer/file_system/file_system.dart';
8 import 'package:analyzer/source/package_map_resolver.dart'; 8 import 'package:analyzer/source/package_map_resolver.dart';
9 import 'package:analyzer/src/dart/analysis/driver.dart'; 9 import 'package:analyzer/src/dart/analysis/driver.dart';
10 import 'package:analyzer/src/generated/source.dart'; 10 import 'package:analyzer/src/generated/source.dart';
11 import 'package:analyzer_plugin/protocol/protocol_common.dart'; 11 import 'package:analyzer_plugin/protocol/protocol_common.dart';
12 import 'package:analyzer_plugin/src/utilities/completion/completion_core.dart'; 12 import 'package:analyzer_plugin/src/utilities/completion/completion_core.dart';
13 import 'package:analyzer_plugin/src/utilities/completion/completion_target.dart' ; 13 import 'package:analyzer_plugin/src/utilities/completion/completion_target.dart' ;
14 import 'package:analyzer_plugin/utilities/completion/completion_core.dart'; 14 import 'package:analyzer_plugin/utilities/completion/completion_core.dart';
15 import 'package:analyzer_plugin/utilities/completion/relevance.dart'; 15 import 'package:analyzer_plugin/utilities/completion/relevance.dart';
16 import 'package:analyzer_plugin/utilities/completion/replacement_range.dart';
16 import 'package:test/test.dart'; 17 import 'package:test/test.dart';
17 18
18 import '../../support/abstract_context.dart'; 19 import '../../support/abstract_context.dart';
19 import 'flutter_util.dart'; 20 import 'flutter_util.dart';
20 import 'replacement_range.dart';
21 21
22 int suggestionComparator(CompletionSuggestion s1, CompletionSuggestion s2) { 22 int suggestionComparator(CompletionSuggestion s1, CompletionSuggestion s2) {
23 String c1 = s1.completion.toLowerCase(); 23 String c1 = s1.completion.toLowerCase();
24 String c2 = s2.completion.toLowerCase(); 24 String c2 = s2.completion.toLowerCase();
25 return c1.compareTo(c2); 25 return c1.compareTo(c2);
26 } 26 }
27 27
28 abstract class DartCompletionContributorTest extends AbstractContextTest { 28 abstract class DartCompletionContributorTest extends AbstractContextTest {
29 static const String _UNCHECKED = '__UNCHECKED__'; 29 static const String _UNCHECKED = '__UNCHECKED__';
30 String testFile; 30 String testFile;
(...skipping 530 matching lines...) Expand 10 before | Expand all | Expand 10 after
561 addSource(path, content); 561 addSource(path, content);
562 } 562 }
563 563
564 @override 564 @override
565 void setUp() { 565 void setUp() {
566 super.setUp(); 566 super.setUp();
567 testFile = provider.convertPath('/completionTest.dart'); 567 testFile = provider.convertPath('/completionTest.dart');
568 contributor = createContributor(); 568 contributor = createContributor();
569 } 569 }
570 } 570 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698