| 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 engine.incremental_resolver; | 5 library engine.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/src/generated/constant.dart'; | 10 import 'package:analyzer/src/generated/constant.dart'; |
| (...skipping 792 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 803 AnalysisContextImpl _context; | 803 AnalysisContextImpl _context; |
| 804 | 804 |
| 805 /** | 805 /** |
| 806 * The object used to access the types from the core library. | 806 * The object used to access the types from the core library. |
| 807 */ | 807 */ |
| 808 TypeProvider _typeProvider; | 808 TypeProvider _typeProvider; |
| 809 | 809 |
| 810 /** | 810 /** |
| 811 * The element for the library containing the compilation unit being resolved. | 811 * The element for the library containing the compilation unit being resolved. |
| 812 */ | 812 */ |
| 813 LibraryElement _definingLibrary; | 813 LibraryElementImpl _definingLibrary; |
| 814 | 814 |
| 815 /** | 815 /** |
| 816 * The [DartEntry] corresponding to the source being resolved. | 816 * The [DartEntry] corresponding to the source being resolved. |
| 817 */ | 817 */ |
| 818 DartEntry entry; | 818 DartEntry entry; |
| 819 | 819 |
| 820 /** | 820 /** |
| 821 * The source representing the compilation unit being visited. | 821 * The source representing the compilation unit being visited. |
| 822 */ | 822 */ |
| 823 Source _source; | 823 Source _source; |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 887 // resolve | 887 // resolve |
| 888 _resolveReferences(rootNode); | 888 _resolveReferences(rootNode); |
| 889 _computeConstants(rootNode); | 889 _computeConstants(rootNode); |
| 890 _resolveErrors = errorListener.getErrorsForSource(_source); | 890 _resolveErrors = errorListener.getErrorsForSource(_source); |
| 891 // verify | 891 // verify |
| 892 _verify(rootNode); | 892 _verify(rootNode); |
| 893 _context.invalidateLibraryHints(_librarySource); | 893 _context.invalidateLibraryHints(_librarySource); |
| 894 _generateLints(rootNode); | 894 _generateLints(rootNode); |
| 895 // update entry errors | 895 // update entry errors |
| 896 _updateEntry(); | 896 _updateEntry(); |
| 897 // notify library |
| 898 _definingLibrary.afterIncrementalResolution(); |
| 897 // OK | 899 // OK |
| 898 return true; | 900 return true; |
| 899 } finally { | 901 } finally { |
| 900 logger.exit(); | 902 logger.exit(); |
| 901 } | 903 } |
| 902 } | 904 } |
| 903 | 905 |
| 904 void _buildElements(AstNode node) { | 906 void _buildElements(AstNode node) { |
| 905 LoggingTimer timer = logger.startTimer(); | 907 LoggingTimer timer = logger.startTimer(); |
| 906 try { | 908 try { |
| (...skipping 935 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1842 @override | 1844 @override |
| 1843 String toString() => name; | 1845 String toString() => name; |
| 1844 } | 1846 } |
| 1845 | 1847 |
| 1846 class _TokenPair { | 1848 class _TokenPair { |
| 1847 final _TokenDifferenceKind kind; | 1849 final _TokenDifferenceKind kind; |
| 1848 final Token oldToken; | 1850 final Token oldToken; |
| 1849 final Token newToken; | 1851 final Token newToken; |
| 1850 _TokenPair(this.kind, this.oldToken, this.newToken); | 1852 _TokenPair(this.kind, this.oldToken, this.newToken); |
| 1851 } | 1853 } |
| OLD | NEW |