Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 Loading... | |
| 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 Loading... | |
| 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 } |
| OLD | NEW |