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

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

Issue 2948393002: Clean up type parameters in comments (Closed)
Patch Set: Created 3 years, 6 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 | « pkg/analyzer/lib/src/cancelable_future.dart ('k') | pkg/analyzer/lib/src/context/context.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/lib/src/context/cache.dart
diff --git a/pkg/analyzer/lib/src/context/cache.dart b/pkg/analyzer/lib/src/context/cache.dart
index ef780314a2ee2c4f4decd1415f00ebc3fb6e83c3..3f7bcf79a918759c06ff730d0eb492911ce82188 100644
--- a/pkg/analyzer/lib/src/context/cache.dart
+++ b/pkg/analyzer/lib/src/context/cache.dart
@@ -196,8 +196,7 @@ class AnalysisCache {
* It does not update the cache, if the corresponding [CacheEntry] does not
* exist, then the default value is returned.
*/
- Object/*=V*/ getValue/*<V>*/(
- AnalysisTarget target, ResultDescriptor/*<V>*/ result) {
+ V getValue<V>(AnalysisTarget target, ResultDescriptor<V> result) {
CacheEntry entry = get(target);
if (entry == null) {
return result.defaultValue;
@@ -445,7 +444,7 @@ class CacheEntry {
* Return the value of the result represented by the given [descriptor], or
* the default value for the result if this entry does not have a valid value.
*/
- dynamic/*=V*/ getValue/*<V>*/(ResultDescriptor/*<V>*/ descriptor) {
+ V getValue<V>(ResultDescriptor<V> descriptor) {
ResultData data = _resultMap[descriptor];
if (data == null) {
return descriptor.defaultValue;
@@ -453,7 +452,7 @@ class CacheEntry {
if (_partition != null) {
_partition.resultAccessed(target, descriptor);
}
- return data.value as Object/*=V*/;
+ return data.value as V;
}
/**
@@ -548,7 +547,7 @@ class CacheEntry {
* Set the value of the result represented by the given [descriptor] to the
* given [value].
*/
- void setValue/*<V>*/(ResultDescriptor/*<V>*/ descriptor, dynamic/*=V*/ value,
+ void setValue<V>(ResultDescriptor<V> descriptor, V value,
List<TargetedResult> dependedOn) {
// {
// String valueStr = '$value';
« no previous file with comments | « pkg/analyzer/lib/src/cancelable_future.dart ('k') | pkg/analyzer/lib/src/context/context.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698