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

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

Issue 1808123005: First batch of changes to make analyzer package strong mode error free (Closed) Base URL: https://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 side-by-side diff with in-line comments
Download patch
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 2c4ef437f19fd6030062f1e5cc2cd5326aa749c9..9ada7480ececc4966734c8fa214308889127897b 100644
--- a/pkg/analyzer/lib/src/context/context.dart
+++ b/pkg/analyzer/lib/src/context/context.dart
@@ -1019,8 +1019,9 @@ class AnalysisContextImpl implements InternalAnalysisContext {
}
@override
- Object getResult(AnalysisTarget target, ResultDescriptor result) {
- return _cache.getValue(target, result);
+ Object/*=V*/ getResult/*<V>*/(
+ AnalysisTarget target, ResultDescriptor/*<V>*/ result) {
+ return _cache.getValue(target, result) as Object/*=V*/;
}
@override
@@ -2009,7 +2010,7 @@ class AnalysisFutureHelper<T> {
return new CancelableFuture.error(new AnalysisNotScheduledError());
}
CacheEntry entry = _context.getCacheEntry(_target);
- PendingFuture pendingFuture =
+ PendingFuture<T> pendingFuture =
new PendingFuture<T>(_context, _target, (CacheEntry entry) {
CacheState state = entry.getState(_descriptor);
if (state == CacheState.ERROR) {

Powered by Google App Engine
This is Rietveld 408576698