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

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

Issue 2663903002: Store exceptions with transitive files context into ByteStore. (Closed)
Patch Set: Created 3 years, 10 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 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 1850 matching lines...) Expand 10 before | Expand all | Expand 10 after
1861 : SourceKind.LIBRARY; 1861 : SourceKind.LIBRARY;
1862 sendAnalysisNotificationOutline( 1862 sendAnalysisNotificationOutline(
1863 analysisServer, path, result.lineInfo, sourceKind, unit); 1863 analysisServer, path, result.lineInfo, sourceKind, unit);
1864 }); 1864 });
1865 } 1865 }
1866 } 1866 }
1867 // TODO(scheglov) Implement more notifications. 1867 // TODO(scheglov) Implement more notifications.
1868 // IMPLEMENTED 1868 // IMPLEMENTED
1869 }); 1869 });
1870 analysisDriver.exceptions.listen((nd.ExceptionResult result) { 1870 analysisDriver.exceptions.listen((nd.ExceptionResult result) {
1871 AnalysisEngine.instance.logger 1871 String message = 'Analysis failed: ${result.path}';
1872 .logError('Analysis failed: ${result.path}', result.exception); 1872 if (result.contextKey != null) {
1873 message += ' context: ${result.contextKey}';
1874 }
1875 AnalysisEngine.instance.logger.logError(message, result.exception);
1873 }); 1876 });
1874 analysisServer.driverMap[folder] = analysisDriver; 1877 analysisServer.driverMap[folder] = analysisDriver;
1875 return analysisDriver; 1878 return analysisDriver;
1876 } 1879 }
1877 1880
1878 @override 1881 @override
1879 AnalysisContext addContext(Folder folder, AnalysisOptions options) { 1882 AnalysisContext addContext(Folder folder, AnalysisOptions options) {
1880 ContextBuilder builder = createContextBuilder(folder, options); 1883 ContextBuilder builder = createContextBuilder(folder, options);
1881 AnalysisContext context = builder.buildContext(folder.path); 1884 AnalysisContext context = builder.buildContext(folder.path);
1882 1885
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after
2111 /** 2114 /**
2112 * The [PerformanceTag] for time spent in server request handlers. 2115 * The [PerformanceTag] for time spent in server request handlers.
2113 */ 2116 */
2114 static PerformanceTag serverRequests = new PerformanceTag('serverRequests'); 2117 static PerformanceTag serverRequests = new PerformanceTag('serverRequests');
2115 2118
2116 /** 2119 /**
2117 * The [PerformanceTag] for time spent in split store microtasks. 2120 * The [PerformanceTag] for time spent in split store microtasks.
2118 */ 2121 */
2119 static PerformanceTag splitStore = new PerformanceTag('splitStore'); 2122 static PerformanceTag splitStore = new PerformanceTag('splitStore');
2120 } 2123 }
OLDNEW
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/dart/analysis/driver.dart » ('j') | pkg/analyzer/lib/src/dart/analysis/driver.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698