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

Side by Side Diff: pkg/analysis_server/test/analysis_abstract.dart

Issue 1801883002: Remove old index and search implementations. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 9 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) 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.domain.analysis.abstract; 5 library test.domain.analysis.abstract;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 8
9 import 'package:analysis_server/plugin/protocol/protocol.dart'; 9 import 'package:analysis_server/plugin/protocol/protocol.dart';
10 import 'package:analysis_server/src/analysis_server.dart'; 10 import 'package:analysis_server/src/analysis_server.dart';
11 import 'package:analysis_server/src/constants.dart'; 11 import 'package:analysis_server/src/constants.dart';
12 import 'package:analysis_server/src/domain_analysis.dart'; 12 import 'package:analysis_server/src/domain_analysis.dart';
13 import 'package:analysis_server/src/plugin/linter_plugin.dart'; 13 import 'package:analysis_server/src/plugin/linter_plugin.dart';
14 import 'package:analysis_server/src/plugin/server_plugin.dart'; 14 import 'package:analysis_server/src/plugin/server_plugin.dart';
15 import 'package:analysis_server/src/provisional/completion/dart/completion_plugi n.dart'; 15 import 'package:analysis_server/src/provisional/completion/dart/completion_plugi n.dart';
16 import 'package:analysis_server/src/services/index/index.dart'; 16 import 'package:analysis_server/src/services/index/index.dart';
17 import 'package:analysis_server/src/services/index2/index2.dart';
18 import 'package:analyzer/file_system/file_system.dart'; 17 import 'package:analyzer/file_system/file_system.dart';
19 import 'package:analyzer/file_system/memory_file_system.dart'; 18 import 'package:analyzer/file_system/memory_file_system.dart';
20 import 'package:analyzer/instrumentation/instrumentation.dart'; 19 import 'package:analyzer/instrumentation/instrumentation.dart';
21 import 'package:analyzer/src/generated/engine.dart'; 20 import 'package:analyzer/src/generated/engine.dart';
22 import 'package:linter/src/plugin/linter_plugin.dart'; 21 import 'package:linter/src/plugin/linter_plugin.dart';
23 import 'package:plugin/manager.dart'; 22 import 'package:plugin/manager.dart';
24 import 'package:plugin/plugin.dart'; 23 import 'package:plugin/plugin.dart';
25 import 'package:unittest/unittest.dart'; 24 import 'package:unittest/unittest.dart';
26 25
27 import 'mock_sdk.dart'; 26 import 'mock_sdk.dart';
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 ExtensionManager manager = new ExtensionManager(); 120 ExtensionManager manager = new ExtensionManager();
122 manager.processPlugins(plugins); 121 manager.processPlugins(plugins);
123 // 122 //
124 // Create server 123 // Create server
125 // 124 //
126 return new AnalysisServer( 125 return new AnalysisServer(
127 serverChannel, 126 serverChannel,
128 resourceProvider, 127 resourceProvider,
129 packageMapProvider, 128 packageMapProvider,
130 index, 129 index,
131 createMemoryIndex2(),
132 serverPlugin, 130 serverPlugin,
133 new AnalysisServerOptions(), 131 new AnalysisServerOptions(),
134 () => new MockSdk(), 132 () => new MockSdk(),
135 InstrumentationService.NULL_SERVICE); 133 InstrumentationService.NULL_SERVICE);
136 } 134 }
137 135
138 Index createIndex() { 136 Index createIndex() {
139 return null; 137 return null;
140 } 138 }
141 139
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
232 } 230 }
233 231
234 /** 232 /**
235 * Completes with a successful [Response] for the given [request]. 233 * Completes with a successful [Response] for the given [request].
236 * Otherwise fails. 234 * Otherwise fails.
237 */ 235 */
238 Future<Response> waitResponse(Request request) async { 236 Future<Response> waitResponse(Request request) async {
239 return serverChannel.sendRequest(request); 237 return serverChannel.sendRequest(request);
240 } 238 }
241 } 239 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698