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

Side by Side Diff: pkg/analyzer/lib/src/generated/incremental_resolver.dart

Issue 1585213005: forward incremental resolver exceptions to analysis engine log (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 11 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 | 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 analyzer.src.generated.incremental_resolver; 5 library analyzer.src.generated.incremental_resolver;
6 6
7 import 'dart:collection'; 7 import 'dart:collection';
8 import 'dart:math' as math; 8 import 'dart:math' as math;
9 9
10 import 'package:analyzer/dart/element/element.dart'; 10 import 'package:analyzer/dart/element/element.dart';
(...skipping 1539 matching lines...) Expand 10 before | Expand all | Expand 10 after
1550 return false; 1550 return false;
1551 } 1551 }
1552 // update DartEntry 1552 // update DartEntry
1553 _updateEntry(); 1553 _updateEntry();
1554 logger.log('Success.'); 1554 logger.log('Success.');
1555 return true; 1555 return true;
1556 } 1556 }
1557 } catch (e, st) { 1557 } catch (e, st) {
1558 logger.logException(e, st); 1558 logger.logException(e, st);
1559 logger.log('Failure: exception.'); 1559 logger.log('Failure: exception.');
1560 // The incremental resolver log is usually turned off,
1561 // so also log the exception to the instrumentation log.
1562 AnalysisEngine.instance.logger.logError(
1563 'failure in incremental resolver', new CaughtException(e, st));
scheglov 2016/01/14 21:55:14 Please capitalize the message: 'Failure in increme
skybrian 2016/01/14 22:43:43 Done.
1560 } finally { 1564 } finally {
1561 logger.exit(); 1565 logger.exit();
1562 } 1566 }
1563 return false; 1567 return false;
1564 } 1568 }
1565 1569
1566 CompilationUnit _parseUnit(String code) { 1570 CompilationUnit _parseUnit(String code) {
1567 LoggingTimer timer = logger.startTimer(); 1571 LoggingTimer timer = logger.startTimer();
1568 try { 1572 try {
1569 Token token = _scan(code); 1573 Token token = _scan(code);
(...skipping 531 matching lines...) Expand 10 before | Expand all | Expand 10 after
2101 @override 2105 @override
2102 String toString() => name; 2106 String toString() => name;
2103 } 2107 }
2104 2108
2105 class _TokenPair { 2109 class _TokenPair {
2106 final _TokenDifferenceKind kind; 2110 final _TokenDifferenceKind kind;
2107 final Token oldToken; 2111 final Token oldToken;
2108 final Token newToken; 2112 final Token newToken;
2109 _TokenPair(this.kind, this.oldToken, this.newToken); 2113 _TokenPair(this.kind, this.oldToken, this.newToken);
2110 } 2114 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698