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

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

Issue 2768003003: IdeOptions awareness for Driver (for access via IDEA registry). (Closed)
Patch Set: Created 3 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
« no previous file with comments | « no previous file | pkg/analysis_server/lib/src/ide_options.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 analysis.server; 5 library analysis.server;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 import 'dart:collection'; 8 import 'dart:collection';
9 import 'dart:core'; 9 import 'dart:core';
10 import 'dart:io' as io; 10 import 'dart:io' as io;
(...skipping 449 matching lines...) Expand 10 before | Expand all | Expand 10 after
460 searchEngine = new SearchEngineImpl2(driverMap.values); 460 searchEngine = new SearchEngineImpl2(driverMap.values);
461 } else if (index != null) { 461 } else if (index != null) {
462 searchEngine = new SearchEngineImpl(index, getAstProvider); 462 searchEngine = new SearchEngineImpl(index, getAstProvider);
463 } 463 }
464 Notification notification = new ServerConnectedParams(VERSION, io.pid, 464 Notification notification = new ServerConnectedParams(VERSION, io.pid,
465 sessionId: instrumentationService.sessionId) 465 sessionId: instrumentationService.sessionId)
466 .toNotification(); 466 .toNotification();
467 channel.sendNotification(notification); 467 channel.sendNotification(notification);
468 channel.listen(handleRequest, onDone: done, onError: error); 468 channel.listen(handleRequest, onDone: done, onError: error);
469 handlers = serverPlugin.createDomains(this); 469 handlers = serverPlugin.createDomains(this);
470 ideOptions = new IdeOptionsImpl(); 470 ideOptions = new IdeOptions.from(options);
471 } 471 }
472 472
473 /** 473 /**
474 * Return the [AnalysisContext]s that are being used to analyze the analysis 474 * Return the [AnalysisContext]s that are being used to analyze the analysis
475 * roots. 475 * roots.
476 */ 476 */
477 Iterable<AnalysisContext> get analysisContexts => 477 Iterable<AnalysisContext> get analysisContexts =>
478 contextManager.analysisContexts; 478 contextManager.analysisContexts;
479 479
480 /** 480 /**
(...skipping 1369 matching lines...) Expand 10 before | Expand all | Expand 10 after
1850 1850
1851 class AnalysisServerOptions { 1851 class AnalysisServerOptions {
1852 bool enableIncrementalResolutionApi = false; 1852 bool enableIncrementalResolutionApi = false;
1853 bool enableIncrementalResolutionValidation = false; 1853 bool enableIncrementalResolutionValidation = false;
1854 bool enableNewAnalysisDriver = false; 1854 bool enableNewAnalysisDriver = false;
1855 bool finerGrainedInvalidation = false; 1855 bool finerGrainedInvalidation = false;
1856 bool noIndex = false; 1856 bool noIndex = false;
1857 bool useAnalysisHighlight2 = false; 1857 bool useAnalysisHighlight2 = false;
1858 String fileReadMode = 'as-is'; 1858 String fileReadMode = 'as-is';
1859 String newAnalysisDriverLog; 1859 String newAnalysisDriverLog;
1860 // IDE options
1861 bool enableVerboseFlutterCompletions = false;
1860 } 1862 }
1861 1863
1862 /** 1864 /**
1863 * Information about a file - an [AnalysisContext] that analyses the file, 1865 * Information about a file - an [AnalysisContext] that analyses the file,
1864 * and the [Source] representing the file in this context. 1866 * and the [Source] representing the file in this context.
1865 */ 1867 */
1866 class ContextSourcePair { 1868 class ContextSourcePair {
1867 /** 1869 /**
1868 * A context that analysis the file. 1870 * A context that analysis the file.
1869 * May be `null` if the file is not analyzed by any context. 1871 * May be `null` if the file is not analyzed by any context.
(...skipping 436 matching lines...) Expand 10 before | Expand all | Expand 10 after
2306 /** 2308 /**
2307 * The [PerformanceTag] for time spent in server request handlers. 2309 * The [PerformanceTag] for time spent in server request handlers.
2308 */ 2310 */
2309 static PerformanceTag serverRequests = new PerformanceTag('serverRequests'); 2311 static PerformanceTag serverRequests = new PerformanceTag('serverRequests');
2310 2312
2311 /** 2313 /**
2312 * The [PerformanceTag] for time spent in split store microtasks. 2314 * The [PerformanceTag] for time spent in split store microtasks.
2313 */ 2315 */
2314 static PerformanceTag splitStore = new PerformanceTag('splitStore'); 2316 static PerformanceTag splitStore = new PerformanceTag('splitStore');
2315 } 2317 }
OLDNEW
« no previous file with comments | « no previous file | pkg/analysis_server/lib/src/ide_options.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698