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.test.generated.incremental_resolver_test; | 5 library analyzer.test.generated.incremental_resolver_test; |
6 | 6 |
7 import 'package:analyzer/dart/ast/ast.dart'; | 7 import 'package:analyzer/dart/ast/ast.dart'; |
8 import 'package:analyzer/dart/ast/token.dart'; | 8 import 'package:analyzer/dart/ast/token.dart'; |
9 import 'package:analyzer/dart/element/element.dart'; | 9 import 'package:analyzer/dart/element/element.dart'; |
10 import 'package:analyzer/src/context/cache.dart'; | 10 import 'package:analyzer/src/context/cache.dart'; |
(...skipping 4874 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4885 return; | 4885 return; |
4886 } | 4886 } |
4887 _assertCacheSourceResult(LIBRARY_ELEMENT1); | 4887 _assertCacheSourceResult(LIBRARY_ELEMENT1); |
4888 _assertCacheSourceResult(LIBRARY_ELEMENT2); | 4888 _assertCacheSourceResult(LIBRARY_ELEMENT2); |
4889 _assertCacheSourceResult(LIBRARY_ELEMENT3); | 4889 _assertCacheSourceResult(LIBRARY_ELEMENT3); |
4890 _assertCacheSourceResult(LIBRARY_ELEMENT4); | 4890 _assertCacheSourceResult(LIBRARY_ELEMENT4); |
4891 _assertCacheSourceResult(LIBRARY_ELEMENT5); | 4891 _assertCacheSourceResult(LIBRARY_ELEMENT5); |
4892 _assertCacheSourceResult(LIBRARY_ELEMENT6); | 4892 _assertCacheSourceResult(LIBRARY_ELEMENT6); |
4893 _assertCacheSourceResult(LIBRARY_ELEMENT7); | 4893 _assertCacheSourceResult(LIBRARY_ELEMENT7); |
4894 _assertCacheSourceResult(LIBRARY_ELEMENT8); | 4894 _assertCacheSourceResult(LIBRARY_ELEMENT8); |
| 4895 _assertCacheSourceResult(LIBRARY_ELEMENT9); |
4895 if (expectCachePostConstantsValid) { | 4896 if (expectCachePostConstantsValid) { |
4896 _assertCacheSourceResult(LIBRARY_ELEMENT); | 4897 _assertCacheSourceResult(LIBRARY_ELEMENT); |
4897 } | 4898 } |
4898 _assertCacheUnitResult(RESOLVED_UNIT1); | 4899 _assertCacheUnitResult(RESOLVED_UNIT1); |
4899 _assertCacheUnitResult(RESOLVED_UNIT2); | 4900 _assertCacheUnitResult(RESOLVED_UNIT2); |
4900 _assertCacheUnitResult(RESOLVED_UNIT3); | 4901 _assertCacheUnitResult(RESOLVED_UNIT3); |
4901 _assertCacheUnitResult(RESOLVED_UNIT4); | 4902 _assertCacheUnitResult(RESOLVED_UNIT4); |
4902 _assertCacheUnitResult(RESOLVED_UNIT5); | 4903 _assertCacheUnitResult(RESOLVED_UNIT5); |
4903 _assertCacheUnitResult(RESOLVED_UNIT6); | 4904 _assertCacheUnitResult(RESOLVED_UNIT6); |
4904 _assertCacheUnitResult(RESOLVED_UNIT7); | 4905 _assertCacheUnitResult(RESOLVED_UNIT7); |
4905 _assertCacheUnitResult(RESOLVED_UNIT8); | 4906 _assertCacheUnitResult(RESOLVED_UNIT8); |
4906 _assertCacheUnitResult(RESOLVED_UNIT9); | 4907 _assertCacheUnitResult(RESOLVED_UNIT9); |
4907 _assertCacheUnitResult(RESOLVED_UNIT10); | 4908 _assertCacheUnitResult(RESOLVED_UNIT10); |
4908 _assertCacheUnitResult(RESOLVED_UNIT11); | 4909 _assertCacheUnitResult(RESOLVED_UNIT11); |
| 4910 _assertCacheUnitResult(RESOLVED_UNIT12); |
4909 if (expectCachePostConstantsValid) { | 4911 if (expectCachePostConstantsValid) { |
4910 _assertCacheUnitResult(RESOLVED_UNIT12); | 4912 _assertCacheUnitResult(RESOLVED_UNIT13); |
4911 _assertCacheUnitResult(RESOLVED_UNIT); | 4913 _assertCacheUnitResult(RESOLVED_UNIT); |
4912 } | 4914 } |
4913 } | 4915 } |
4914 | 4916 |
4915 /** | 4917 /** |
4916 * Assert that the [result] of [source] is not INVALID. | 4918 * Assert that the [result] of [source] is not INVALID. |
4917 */ | 4919 */ |
4918 void _assertCacheSourceResult(ResultDescriptor result) { | 4920 void _assertCacheSourceResult(ResultDescriptor result) { |
4919 AnalysisCache cache = analysisContext2.analysisCache; | 4921 AnalysisCache cache = analysisContext2.analysisCache; |
4920 CacheState state = cache.getState(source, result); | 4922 CacheState state = cache.getState(source, result); |
(...skipping 389 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5310 void logException(Object exception, [Object stackTrace]) { | 5312 void logException(Object exception, [Object stackTrace]) { |
5311 lastException = exception; | 5313 lastException = exception; |
5312 lastStackTrace = stackTrace; | 5314 lastStackTrace = stackTrace; |
5313 } | 5315 } |
5314 | 5316 |
5315 @override | 5317 @override |
5316 logging.LoggingTimer startTimer() { | 5318 logging.LoggingTimer startTimer() { |
5317 return new logging.LoggingTimer(this); | 5319 return new logging.LoggingTimer(this); |
5318 } | 5320 } |
5319 } | 5321 } |
OLD | NEW |