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

Unified Diff: pkg/analyzer/lib/src/context/context.dart

Issue 1136603002: Remove CompositeResultDescriptor (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/task/model.dart » ('j') | pkg/analyzer/lib/src/task/model.dart » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/lib/src/context/context.dart
diff --git a/pkg/analyzer/lib/src/context/context.dart b/pkg/analyzer/lib/src/context/context.dart
index 61039bb0e4b32cf16e2b0ce7ff2b234feeb45091..1b7ccf743233a16611e8991328a402c5460df62e 100644
--- a/pkg/analyzer/lib/src/context/context.dart
+++ b/pkg/analyzer/lib/src/context/context.dart
@@ -1337,14 +1337,6 @@ class AnalysisContextImpl implements InternalAnalysisContext {
Object /*V*/ _computeResult(
AnalysisTarget target, ResultDescriptor /*<V>*/ descriptor) {
cache.CacheEntry entry = getCacheEntry(target);
- if (descriptor is CompositeResultDescriptor) {
- List compositeResults = [];
- for (ResultDescriptor descriptor in descriptor.contributors) {
- List value = _computeResult(target, descriptor);
- compositeResults.addAll(value);
- }
- return compositeResults;
- }
CacheState state = entry.getState(descriptor);
if (state == CacheState.FLUSHED || state == CacheState.INVALID) {
_driver.computeResult(target, descriptor);
@@ -1488,14 +1480,6 @@ class AnalysisContextImpl implements InternalAnalysisContext {
if (entry == null) {
return descriptor.defaultValue;
}
- if (descriptor is CompositeResultDescriptor) {
- List compositeResults = [];
- for (ResultDescriptor descriptor in descriptor.contributors) {
- List value = _getResult(target, descriptor);
- compositeResults.addAll(value);
- }
- return compositeResults;
- }
if (entry.isValid(descriptor)) {
return entry.getValue(descriptor);
}
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/task/model.dart » ('j') | pkg/analyzer/lib/src/task/model.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698