Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(398)

Side by Side Diff: pkg/analyzer/test/src/context/cache_test.dart

Issue 1821543002: Issue 26044. Cache and use LibraryElementImpl.exportNamespace. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, 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.src.context.cache_test; 5 library analyzer.test.src.context.cache_test;
6 6
7 import 'package:analyzer/src/context/cache.dart'; 7 import 'package:analyzer/src/context/cache.dart';
8 import 'package:analyzer/src/generated/engine.dart'; 8 import 'package:analyzer/src/generated/engine.dart';
9 import 'package:analyzer/src/generated/java_engine.dart'; 9 import 'package:analyzer/src/generated/java_engine.dart';
10 import 'package:analyzer/src/generated/sdk_io.dart'; 10 import 'package:analyzer/src/generated/sdk_io.dart';
(...skipping 1109 matching lines...) Expand 10 before | Expand all | Expand 10 after
1120 * Keep the given [keepDescriptor], invalidate all the other results. 1120 * Keep the given [keepDescriptor], invalidate all the other results.
1121 */ 1121 */
1122 class _KeepContinueDelta implements Delta { 1122 class _KeepContinueDelta implements Delta {
1123 final Source source; 1123 final Source source;
1124 final ResultDescriptor keepDescriptor; 1124 final ResultDescriptor keepDescriptor;
1125 1125
1126 _KeepContinueDelta(this.source, this.keepDescriptor); 1126 _KeepContinueDelta(this.source, this.keepDescriptor);
1127 1127
1128 @override 1128 @override
1129 DeltaResult validate(InternalAnalysisContext context, AnalysisTarget target, 1129 DeltaResult validate(InternalAnalysisContext context, AnalysisTarget target,
1130 ResultDescriptor descriptor) { 1130 ResultDescriptor descriptor, CacheState state, Object value) {
1131 if (descriptor == keepDescriptor) { 1131 if (descriptor == keepDescriptor) {
1132 return DeltaResult.KEEP_CONTINUE; 1132 return DeltaResult.KEEP_CONTINUE;
1133 } 1133 }
1134 return DeltaResult.INVALIDATE; 1134 return DeltaResult.INVALIDATE;
1135 } 1135 }
1136 } 1136 }
1137 1137
1138 class _TestAnalysisTarget implements AnalysisTarget { 1138 class _TestAnalysisTarget implements AnalysisTarget {
1139 @override 1139 @override
1140 Source get source => null; 1140 Source get source => null;
1141 } 1141 }
OLDNEW
« pkg/analyzer/lib/src/generated/resolver.dart ('K') | « pkg/analyzer/lib/src/task/dart.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698