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

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

Issue 1749333004: Fill the new index in Analysis Server. (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';
17 import 'package:analyzer/file_system/file_system.dart'; 18 import 'package:analyzer/file_system/file_system.dart';
18 import 'package:analyzer/file_system/memory_file_system.dart'; 19 import 'package:analyzer/file_system/memory_file_system.dart';
19 import 'package:analyzer/instrumentation/instrumentation.dart'; 20 import 'package:analyzer/instrumentation/instrumentation.dart';
20 import 'package:analyzer/src/generated/engine.dart'; 21 import 'package:analyzer/src/generated/engine.dart';
21 import 'package:linter/src/plugin/linter_plugin.dart'; 22 import 'package:linter/src/plugin/linter_plugin.dart';
22 import 'package:plugin/manager.dart'; 23 import 'package:plugin/manager.dart';
23 import 'package:plugin/plugin.dart'; 24 import 'package:plugin/plugin.dart';
24 import 'package:unittest/unittest.dart'; 25 import 'package:unittest/unittest.dart';
25 26
26 import 'mock_sdk.dart'; 27 import 'mock_sdk.dart';
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 ExtensionManager manager = new ExtensionManager(); 118 ExtensionManager manager = new ExtensionManager();
118 manager.processPlugins(plugins); 119 manager.processPlugins(plugins);
119 // 120 //
120 // Create server 121 // Create server
121 // 122 //
122 return new AnalysisServer( 123 return new AnalysisServer(
123 serverChannel, 124 serverChannel,
124 resourceProvider, 125 resourceProvider,
125 packageMapProvider, 126 packageMapProvider,
126 index, 127 index,
128 createMemoryIndex2(),
127 serverPlugin, 129 serverPlugin,
128 new AnalysisServerOptions(), 130 new AnalysisServerOptions(),
129 () => new MockSdk(), 131 () => new MockSdk(),
130 InstrumentationService.NULL_SERVICE); 132 InstrumentationService.NULL_SERVICE);
131 } 133 }
132 134
133 Index createIndex() { 135 Index createIndex() {
134 return null; 136 return null;
135 } 137 }
136 138
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
227 } 229 }
228 230
229 /** 231 /**
230 * Completes with a successful [Response] for the given [request]. 232 * Completes with a successful [Response] for the given [request].
231 * Otherwise fails. 233 * Otherwise fails.
232 */ 234 */
233 Future<Response> waitResponse(Request request) async { 235 Future<Response> waitResponse(Request request) async {
234 return serverChannel.sendRequest(request); 236 return serverChannel.sendRequest(request);
235 } 237 }
236 } 238 }
OLDNEW
« no previous file with comments | « pkg/analysis_server/lib/src/socket_server.dart ('k') | pkg/analysis_server/test/analysis_server_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698