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

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

Issue 2266403008: Fix couple problems with in-body incremental resolution. (Closed)
Patch Set: Actual changes. Created 4 years, 3 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/file_system/file_system.dart'; 7 import 'package:analyzer/file_system/file_system.dart';
8 import 'package:analyzer/file_system/memory_file_system.dart'; 8 import 'package:analyzer/file_system/memory_file_system.dart';
9 import 'package:analyzer/file_system/physical_file_system.dart'; 9 import 'package:analyzer/file_system/physical_file_system.dart';
10 import 'package:analyzer/source/package_map_resolver.dart'; 10 import 'package:analyzer/source/package_map_resolver.dart';
(...skipping 1235 matching lines...) Expand 10 before | Expand all | Expand 10 after
1246 @override 1246 @override
1247 bool gatherChanges(InternalAnalysisContext context, AnalysisTarget target, 1247 bool gatherChanges(InternalAnalysisContext context, AnalysisTarget target,
1248 ResultDescriptor descriptor, Object value) { 1248 ResultDescriptor descriptor, Object value) {
1249 return false; 1249 return false;
1250 } 1250 }
1251 1251
1252 @override 1252 @override
1253 void gatherEnd() {} 1253 void gatherEnd() {}
1254 1254
1255 @override 1255 @override
1256 bool gatherRequired() => false;
1257
1258 @override
1256 DeltaResult validate(InternalAnalysisContext context, AnalysisTarget target, 1259 DeltaResult validate(InternalAnalysisContext context, AnalysisTarget target,
1257 ResultDescriptor descriptor, Object value) { 1260 ResultDescriptor descriptor, Object value) {
1258 if (descriptor == keepDescriptor) { 1261 if (descriptor == keepDescriptor) {
1259 return DeltaResult.KEEP_CONTINUE; 1262 return DeltaResult.KEEP_CONTINUE;
1260 } 1263 }
1261 return DeltaResult.INVALIDATE; 1264 return DeltaResult.INVALIDATE;
1262 } 1265 }
1263 } 1266 }
1264 1267
1265 class _TestAnalysisTarget implements AnalysisTarget { 1268 class _TestAnalysisTarget implements AnalysisTarget {
1266 @override 1269 @override
1267 Source get librarySource => null; 1270 Source get librarySource => null;
1268 1271
1269 @override 1272 @override
1270 Source get source => null; 1273 Source get source => null;
1271 } 1274 }
OLDNEW
« pkg/analyzer/lib/src/context/cache.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