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

Side by Side Diff: pkg/analysis_server/lib/src/server/driver.dart

Issue 1026483002: Add engine plugin (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Rename missed variable Created 5 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | pkg/analyzer/lib/plugin/task.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 driver; 5 library driver;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 import 'dart:io'; 8 import 'dart:io';
9 import 'dart:math'; 9 import 'dart:math';
10 10
(...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after
255 InstrumentationService service = 255 InstrumentationService service =
256 new InstrumentationService(instrumentationServer); 256 new InstrumentationService(instrumentationServer);
257 service.logVersion(_readUuid(service), results[CLIENT_ID], 257 service.logVersion(_readUuid(service), results[CLIENT_ID],
258 results[CLIENT_VERSION], AnalysisServer.VERSION, defaultSdk.sdkVersion); 258 results[CLIENT_VERSION], AnalysisServer.VERSION, defaultSdk.sdkVersion);
259 AnalysisEngine.instance.instrumentationService = service; 259 AnalysisEngine.instance.instrumentationService = service;
260 // 260 //
261 // Process all of the plugins so that extensions are registered. 261 // Process all of the plugins so that extensions are registered.
262 // 262 //
263 ServerPlugin serverPlugin = new ServerPlugin(); 263 ServerPlugin serverPlugin = new ServerPlugin();
264 List<Plugin> plugins = <Plugin>[]; 264 List<Plugin> plugins = <Plugin>[];
265 plugins.add(AnalysisEngine.instance.enginePlugin);
265 plugins.add(serverPlugin); 266 plugins.add(serverPlugin);
266 plugins.addAll(_userDefinedPlugins); 267 plugins.addAll(_userDefinedPlugins);
267 ExtensionManager manager = new ExtensionManager(); 268 ExtensionManager manager = new ExtensionManager();
268 manager.processPlugins(plugins); 269 manager.processPlugins(plugins);
269 270
270 socketServer = new SocketServer( 271 socketServer = new SocketServer(
271 analysisServerOptions, defaultSdk, service, serverPlugin); 272 analysisServerOptions, defaultSdk, service, serverPlugin);
272 httpServer = new HttpAnalysisServer(socketServer); 273 httpServer = new HttpAnalysisServer(socketServer);
273 stdioServer = new StdioAnalysisServer(socketServer); 274 stdioServer = new StdioAnalysisServer(socketServer);
274 275
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
410 uuidFile.parent.createSync(recursive: true); 411 uuidFile.parent.createSync(recursive: true);
411 uuidFile.writeAsStringSync(uuid); 412 uuidFile.writeAsStringSync(uuid);
412 } catch (exception, stackTrace) { 413 } catch (exception, stackTrace) {
413 service.logPriorityException(exception, stackTrace); 414 service.logPriorityException(exception, stackTrace);
414 // Slightly alter the uuid to indicate it was not persisted 415 // Slightly alter the uuid to indicate it was not persisted
415 uuid = 'temp-$uuid'; 416 uuid = 'temp-$uuid';
416 } 417 }
417 return uuid; 418 return uuid;
418 } 419 }
419 } 420 }
OLDNEW
« no previous file with comments | « no previous file | pkg/analyzer/lib/plugin/task.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698