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

Side by Side Diff: pkg/analyzer/lib/src/context/context.dart

Issue 1306323004: Remove obsolete resolution task (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 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
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/generated/incremental_resolver.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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.src.context.context; 5 library analyzer.src.context.context;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 import 'dart:collection'; 8 import 'dart:collection';
9 9
10 import 'package:analyzer/instrumentation/instrumentation.dart'; 10 import 'package:analyzer/instrumentation/instrumentation.dart';
(...skipping 1124 matching lines...) Expand 10 before | Expand all | Expand 10 after
1135 setValue(SCAN_ERRORS, AnalysisError.NO_ERRORS); 1135 setValue(SCAN_ERRORS, AnalysisError.NO_ERRORS);
1136 setValue(SOURCE_KIND, SourceKind.LIBRARY); 1136 setValue(SOURCE_KIND, SourceKind.LIBRARY);
1137 entry.setState(TOKEN_STREAM, CacheState.FLUSHED); 1137 entry.setState(TOKEN_STREAM, CacheState.FLUSHED);
1138 setValue(UNITS, <Source>[librarySource]); 1138 setValue(UNITS, <Source>[librarySource]);
1139 1139
1140 LibrarySpecificUnit unit = 1140 LibrarySpecificUnit unit =
1141 new LibrarySpecificUnit(librarySource, librarySource); 1141 new LibrarySpecificUnit(librarySource, librarySource);
1142 entry = getCacheEntry(unit); 1142 entry = getCacheEntry(unit);
1143 setValue(HINTS, AnalysisError.NO_ERRORS); 1143 setValue(HINTS, AnalysisError.NO_ERRORS);
1144 // dartEntry.setValue(LINTS, AnalysisError.NO_ERRORS); 1144 // dartEntry.setValue(LINTS, AnalysisError.NO_ERRORS);
1145 entry.setState(RESOLVE_REFERENCES_ERRORS, CacheState.FLUSHED); 1145 setValue(INFER_STATIC_VARIABLE_TYPES_ERRORS, AnalysisError.NO_ERRORS);
1146 setValue(LIBRARY_UNIT_ERRORS, AnalysisError.NO_ERRORS);
1147 setValue(PARTIALLY_RESOLVE_REFERENCES_ERRORS, AnalysisError.NO_ERRORS);
1148 setValue(RESOLVE_FUNCTION_BODIES_ERRORS, AnalysisError.NO_ERRORS);
1149 setValue(RESOLVE_TYPE_NAMES_ERRORS, AnalysisError.NO_ERRORS);
1146 entry.setState(RESOLVED_UNIT, CacheState.FLUSHED); 1150 entry.setState(RESOLVED_UNIT, CacheState.FLUSHED);
1147 entry.setState(RESOLVED_UNIT1, CacheState.FLUSHED); 1151 entry.setState(RESOLVED_UNIT1, CacheState.FLUSHED);
1148 entry.setState(RESOLVED_UNIT2, CacheState.FLUSHED); 1152 entry.setState(RESOLVED_UNIT2, CacheState.FLUSHED);
1149 entry.setState(RESOLVED_UNIT3, CacheState.FLUSHED); 1153 entry.setState(RESOLVED_UNIT3, CacheState.FLUSHED);
1150 entry.setState(RESOLVED_UNIT4, CacheState.FLUSHED); 1154 entry.setState(RESOLVED_UNIT4, CacheState.FLUSHED);
1151 entry.setState(RESOLVED_UNIT5, CacheState.FLUSHED); 1155 entry.setState(RESOLVED_UNIT5, CacheState.FLUSHED);
1152 entry.setState(RESOLVED_UNIT6, CacheState.FLUSHED); 1156 entry.setState(RESOLVED_UNIT6, CacheState.FLUSHED);
1153 entry.setState(RESOLVED_UNIT7, CacheState.FLUSHED); 1157 entry.setState(RESOLVED_UNIT7, CacheState.FLUSHED);
1154 entry.setState(RESOLVED_UNIT8, CacheState.FLUSHED); 1158 entry.setState(RESOLVED_UNIT8, CacheState.FLUSHED);
1155 // USED_IMPORTED_ELEMENTS 1159 // USED_IMPORTED_ELEMENTS
1156 // USED_LOCAL_ELEMENTS 1160 // USED_LOCAL_ELEMENTS
1161 setValue(VARIABLE_REFERENCE_ERRORS, AnalysisError.NO_ERRORS);
1157 setValue(VERIFY_ERRORS, AnalysisError.NO_ERRORS); 1162 setValue(VERIFY_ERRORS, AnalysisError.NO_ERRORS);
1158 }); 1163 });
1159 1164
1160 CacheEntry entry = getCacheEntry(AnalysisContextTarget.request); 1165 CacheEntry entry = getCacheEntry(AnalysisContextTarget.request);
1161 entry.setValue(TYPE_PROVIDER, typeProvider, TargetedResult.EMPTY_LIST); 1166 entry.setValue(TYPE_PROVIDER, typeProvider, TargetedResult.EMPTY_LIST);
1162 } 1167 }
1163 1168
1164 @override 1169 @override
1165 void removeListener(AnalysisListener listener) { 1170 void removeListener(AnalysisListener listener) {
1166 _listeners.remove(listener); 1171 _listeners.remove(listener);
(...skipping 922 matching lines...) Expand 10 before | Expand all | Expand 10 after
2089 new PendingFuture<T>(_context, target, computeValue); 2094 new PendingFuture<T>(_context, target, computeValue);
2090 if (!pendingFuture.evaluate(entry)) { 2095 if (!pendingFuture.evaluate(entry)) {
2091 _context._pendingFutureTargets 2096 _context._pendingFutureTargets
2092 .putIfAbsent(target, () => <PendingFuture>[]) 2097 .putIfAbsent(target, () => <PendingFuture>[])
2093 .add(pendingFuture); 2098 .add(pendingFuture);
2094 scheduleComputation(); 2099 scheduleComputation();
2095 } 2100 }
2096 return pendingFuture.future; 2101 return pendingFuture.future;
2097 } 2102 }
2098 } 2103 }
OLDNEW
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/generated/incremental_resolver.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698