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

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

Issue 811223002: Capture and report uncaught exceptions in server (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years 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
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 9
10 import 'package:analysis_server/src/analysis_logger.dart'; 10 import 'package:analysis_server/src/analysis_logger.dart';
(...skipping 607 matching lines...) Expand 10 before | Expand all | Expand 10 after
618 */ 618 */
619 void reanalyze() { 619 void reanalyze() {
620 // Clear any operations that are pending. 620 // Clear any operations that are pending.
621 operationQueue.clear(); 621 operationQueue.clear();
622 // Instruct the contextDirectoryManager to rebuild all contexts from 622 // Instruct the contextDirectoryManager to rebuild all contexts from
623 // scratch. 623 // scratch.
624 contextDirectoryManager.refresh(); 624 contextDirectoryManager.refresh();
625 } 625 }
626 626
627 /** 627 /**
628 * Report to the client that the given [exception] was caught with the
629 * associated [stackTrace].
630 */
631 void reportException(dynamic exception, StackTrace stackTrace) {
632 _sendServerErrorNotification(exception, stackTrace);
633 }
634
635 /**
628 * Schedules execution of the given [ServerOperation]. 636 * Schedules execution of the given [ServerOperation].
629 */ 637 */
630 void scheduleOperation(ServerOperation operation) { 638 void scheduleOperation(ServerOperation operation) {
631 addOperation(operation); 639 addOperation(operation);
632 if (!performOperationPending) { 640 if (!performOperationPending) {
633 _schedulePerformOperation(); 641 _schedulePerformOperation();
634 } 642 }
635 } 643 }
636 644
637 /** 645 /**
(...skipping 430 matching lines...) Expand 10 before | Expand all | Expand 10 after
1068 * [packageUriResolver]. 1076 * [packageUriResolver].
1069 */ 1077 */
1070 SourceFactory _createSourceFactory(UriResolver packageUriResolver) { 1078 SourceFactory _createSourceFactory(UriResolver packageUriResolver) {
1071 List<UriResolver> resolvers = <UriResolver>[ 1079 List<UriResolver> resolvers = <UriResolver>[
1072 new DartUriResolver(analysisServer.defaultSdk), 1080 new DartUriResolver(analysisServer.defaultSdk),
1073 new ResourceUriResolver(resourceProvider), 1081 new ResourceUriResolver(resourceProvider),
1074 packageUriResolver]; 1082 packageUriResolver];
1075 return new SourceFactory(resolvers); 1083 return new SourceFactory(resolvers);
1076 } 1084 }
1077 } 1085 }
OLDNEW
« pkg/analysis_server/lib/driver.dart ('K') | « pkg/analysis_server/lib/driver.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698