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

Side by Side Diff: pkg/analysis_server/test/services/index/local_index_test.dart

Issue 1527793003: Clean up imports in analysis_server and analyzer_cli (and one missed in analyzer) (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years 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) 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.src.index.local_index; 5 library test.services.src.index.local_index;
6 6
7 import 'package:analysis_server/src/services/index/index_contributor.dart'; 7 import 'package:analysis_server/src/services/index/index_contributor.dart';
8 import 'package:analysis_server/src/services/index/local_index.dart'; 8 import 'package:analysis_server/src/services/index/local_index.dart';
9 import 'package:analysis_server/src/services/index/local_memory_index.dart'; 9 import 'package:analysis_server/src/services/index/local_memory_index.dart';
10 import 'package:analyzer/dart/element/element.dart';
10 import 'package:analyzer/src/generated/ast.dart'; 11 import 'package:analyzer/src/generated/ast.dart';
11 import 'package:analyzer/src/generated/element.dart';
12 import 'package:analyzer/src/generated/source_io.dart'; 12 import 'package:analyzer/src/generated/source_io.dart';
13 import 'package:test_reflective_loader/test_reflective_loader.dart'; 13 import 'package:test_reflective_loader/test_reflective_loader.dart';
14 import 'package:unittest/unittest.dart'; 14 import 'package:unittest/unittest.dart';
15 15
16 import '../../abstract_context.dart'; 16 import '../../abstract_context.dart';
17 import '../../utils.dart'; 17 import '../../utils.dart';
18 import 'store/single_source_container.dart'; 18 import 'store/single_source_container.dart';
19 19
20 main() { 20 main() {
21 initializeTestEnvironment(); 21 initializeTestEnvironment();
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 Source source = addSource(path, content); 108 Source source = addSource(path, content);
109 CompilationUnit dartUnit = resolveLibraryUnit(source); 109 CompilationUnit dartUnit = resolveLibraryUnit(source);
110 index.index(context, dartUnit); 110 index.index(context, dartUnit);
111 return source; 111 return source;
112 } 112 }
113 113
114 void _indexTest(String content) { 114 void _indexTest(String content) {
115 _indexLibraryUnit('/test.dart', content); 115 _indexLibraryUnit('/test.dart', content);
116 } 116 }
117 } 117 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698