| 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 1920 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1931 _assertCacheUnitResult(RESOLVED_UNIT2); | 1931 _assertCacheUnitResult(RESOLVED_UNIT2); |
| 1932 _assertCacheUnitResult(RESOLVED_UNIT3); | 1932 _assertCacheUnitResult(RESOLVED_UNIT3); |
| 1933 _assertCacheUnitResult(RESOLVED_UNIT4); | 1933 _assertCacheUnitResult(RESOLVED_UNIT4); |
| 1934 _assertCacheUnitResult(RESOLVED_UNIT5); | 1934 _assertCacheUnitResult(RESOLVED_UNIT5); |
| 1935 _assertCacheUnitResult(RESOLVED_UNIT6); | 1935 _assertCacheUnitResult(RESOLVED_UNIT6); |
| 1936 _assertCacheUnitResult(RESOLVED_UNIT7); | 1936 _assertCacheUnitResult(RESOLVED_UNIT7); |
| 1937 _assertCacheUnitResult(RESOLVED_UNIT8); | 1937 _assertCacheUnitResult(RESOLVED_UNIT8); |
| 1938 _assertCacheUnitResult(RESOLVED_UNIT9); | 1938 _assertCacheUnitResult(RESOLVED_UNIT9); |
| 1939 _assertCacheUnitResult(RESOLVED_UNIT10); | 1939 _assertCacheUnitResult(RESOLVED_UNIT10); |
| 1940 _assertCacheUnitResult(RESOLVED_UNIT11); | 1940 _assertCacheUnitResult(RESOLVED_UNIT11); |
| 1941 _assertCacheUnitResult(RESOLVED_UNIT12); | |
| 1942 if (expectCachePostConstantsValid) { | 1941 if (expectCachePostConstantsValid) { |
| 1943 _assertCacheUnitResult(RESOLVED_UNIT13); | 1942 _assertCacheUnitResult(RESOLVED_UNIT12); |
| 1944 _assertCacheUnitResult(RESOLVED_UNIT); | 1943 _assertCacheUnitResult(RESOLVED_UNIT); |
| 1945 } | 1944 } |
| 1946 } | 1945 } |
| 1947 | 1946 |
| 1948 /** | 1947 /** |
| 1949 * Assert that the [result] of [source] is not INVALID. | 1948 * Assert that the [result] of [source] is not INVALID. |
| 1950 */ | 1949 */ |
| 1951 void _assertCacheSourceResult(ResultDescriptor result) { | 1950 void _assertCacheSourceResult(ResultDescriptor result) { |
| 1952 AnalysisCache cache = analysisContext2.analysisCache; | 1951 AnalysisCache cache = analysisContext2.analysisCache; |
| 1953 CacheState state = cache.getState(source, result); | 1952 CacheState state = cache.getState(source, result); |
| (...skipping 396 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2350 void logException(Object exception, [Object stackTrace]) { | 2349 void logException(Object exception, [Object stackTrace]) { |
| 2351 lastException = exception; | 2350 lastException = exception; |
| 2352 lastStackTrace = stackTrace; | 2351 lastStackTrace = stackTrace; |
| 2353 } | 2352 } |
| 2354 | 2353 |
| 2355 @override | 2354 @override |
| 2356 logging.LoggingTimer startTimer() { | 2355 logging.LoggingTimer startTimer() { |
| 2357 return new logging.LoggingTimer(this); | 2356 return new logging.LoggingTimer(this); |
| 2358 } | 2357 } |
| 2359 } | 2358 } |
| OLD | NEW |