| 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 4887 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4898 _assertCacheUnitResult(RESOLVED_UNIT1); | 4898 _assertCacheUnitResult(RESOLVED_UNIT1); |
| 4899 _assertCacheUnitResult(RESOLVED_UNIT2); | 4899 _assertCacheUnitResult(RESOLVED_UNIT2); |
| 4900 _assertCacheUnitResult(RESOLVED_UNIT3); | 4900 _assertCacheUnitResult(RESOLVED_UNIT3); |
| 4901 _assertCacheUnitResult(RESOLVED_UNIT4); | 4901 _assertCacheUnitResult(RESOLVED_UNIT4); |
| 4902 _assertCacheUnitResult(RESOLVED_UNIT5); | 4902 _assertCacheUnitResult(RESOLVED_UNIT5); |
| 4903 _assertCacheUnitResult(RESOLVED_UNIT6); | 4903 _assertCacheUnitResult(RESOLVED_UNIT6); |
| 4904 _assertCacheUnitResult(RESOLVED_UNIT7); | 4904 _assertCacheUnitResult(RESOLVED_UNIT7); |
| 4905 _assertCacheUnitResult(RESOLVED_UNIT8); | 4905 _assertCacheUnitResult(RESOLVED_UNIT8); |
| 4906 _assertCacheUnitResult(RESOLVED_UNIT9); | 4906 _assertCacheUnitResult(RESOLVED_UNIT9); |
| 4907 _assertCacheUnitResult(RESOLVED_UNIT10); | 4907 _assertCacheUnitResult(RESOLVED_UNIT10); |
| 4908 _assertCacheUnitResult(RESOLVED_UNIT11); |
| 4908 if (expectCachePostConstantsValid) { | 4909 if (expectCachePostConstantsValid) { |
| 4909 _assertCacheUnitResult(RESOLVED_UNIT11); | 4910 _assertCacheUnitResult(RESOLVED_UNIT12); |
| 4910 _assertCacheUnitResult(RESOLVED_UNIT); | 4911 _assertCacheUnitResult(RESOLVED_UNIT); |
| 4911 } | 4912 } |
| 4912 } | 4913 } |
| 4913 | 4914 |
| 4914 /** | 4915 /** |
| 4915 * Assert that the [result] of [source] is not INVALID. | 4916 * Assert that the [result] of [source] is not INVALID. |
| 4916 */ | 4917 */ |
| 4917 void _assertCacheSourceResult(ResultDescriptor result) { | 4918 void _assertCacheSourceResult(ResultDescriptor result) { |
| 4918 AnalysisCache cache = analysisContext2.analysisCache; | 4919 AnalysisCache cache = analysisContext2.analysisCache; |
| 4919 CacheState state = cache.getState(source, result); | 4920 CacheState state = cache.getState(source, result); |
| (...skipping 389 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5309 void logException(Object exception, [Object stackTrace]) { | 5310 void logException(Object exception, [Object stackTrace]) { |
| 5310 lastException = exception; | 5311 lastException = exception; |
| 5311 lastStackTrace = stackTrace; | 5312 lastStackTrace = stackTrace; |
| 5312 } | 5313 } |
| 5313 | 5314 |
| 5314 @override | 5315 @override |
| 5315 logging.LoggingTimer startTimer() { | 5316 logging.LoggingTimer startTimer() { |
| 5316 return new logging.LoggingTimer(this); | 5317 return new logging.LoggingTimer(this); |
| 5317 } | 5318 } |
| 5318 } | 5319 } |
| OLD | NEW |