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

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

Issue 1398803002: Fix DAS, use all the Analyzer plugins. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 2 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
« no previous file with comments | « pkg/analysis_server/lib/src/context_manager.dart ('k') | no next file » | 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 383 matching lines...) Expand 10 before | Expand all | Expand 10 after
394 AnalysisEngine.instance.instrumentationService = service; 394 AnalysisEngine.instance.instrumentationService = service;
395 // 395 //
396 // Enable the new task model, if appropriate. 396 // Enable the new task model, if appropriate.
397 // 397 //
398 AnalysisEngine.instance.useTaskModel = !results[DISABLE_NEW_TASK_MODEL]; 398 AnalysisEngine.instance.useTaskModel = !results[DISABLE_NEW_TASK_MODEL];
399 // 399 //
400 // Process all of the plugins so that extensions are registered. 400 // Process all of the plugins so that extensions are registered.
401 // 401 //
402 ServerPlugin serverPlugin = new ServerPlugin(); 402 ServerPlugin serverPlugin = new ServerPlugin();
403 List<Plugin> plugins = <Plugin>[]; 403 List<Plugin> plugins = <Plugin>[];
404 plugins.add(AnalysisEngine.instance.enginePlugin); 404 plugins.addAll(AnalysisEngine.instance.supportedPlugins);
405 plugins.add(serverPlugin); 405 plugins.add(serverPlugin);
406 plugins.addAll(_userDefinedPlugins); 406 plugins.addAll(_userDefinedPlugins);
407 ExtensionManager manager = new ExtensionManager(); 407 ExtensionManager manager = new ExtensionManager();
408 manager.processPlugins(plugins); 408 manager.processPlugins(plugins);
409 // 409 //
410 // Create the sockets and start listening for requests. 410 // Create the sockets and start listening for requests.
411 // 411 //
412 socketServer = new SocketServer(analysisServerOptions, defaultSdk, service, 412 socketServer = new SocketServer(analysisServerOptions, defaultSdk, service,
413 serverPlugin, packageResolverProvider); 413 serverPlugin, packageResolverProvider);
414 httpServer = new HttpAnalysisServer(socketServer); 414 httpServer = new HttpAnalysisServer(socketServer);
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
563 uuidFile.parent.createSync(recursive: true); 563 uuidFile.parent.createSync(recursive: true);
564 uuidFile.writeAsStringSync(uuid); 564 uuidFile.writeAsStringSync(uuid);
565 } catch (exception, stackTrace) { 565 } catch (exception, stackTrace) {
566 service.logPriorityException(exception, stackTrace); 566 service.logPriorityException(exception, stackTrace);
567 // Slightly alter the uuid to indicate it was not persisted 567 // Slightly alter the uuid to indicate it was not persisted
568 uuid = 'temp-$uuid'; 568 uuid = 'temp-$uuid';
569 } 569 }
570 return uuid; 570 return uuid;
571 } 571 }
572 } 572 }
OLDNEW
« no previous file with comments | « pkg/analysis_server/lib/src/context_manager.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698