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

Unified Diff: pkg/analyzer/lib/src/context/context.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/context/cache.dart ('k') | pkg/analyzer/lib/src/dart/ast/ast.dart » ('j') | no next file with comments »
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 7ebbf8b81f4bb2069e83e21031ddbc47eacaae61..79425b8d469e982971b749994a4c981f7609e755 100644
--- a/pkg/analyzer/lib/src/context/context.dart
+++ b/pkg/analyzer/lib/src/context/context.dart
@@ -700,8 +700,7 @@ class AnalysisContextImpl implements InternalAnalysisContext {
}
@override
- Object/*=V*/ computeResult/*<V>*/(
- AnalysisTarget target, ResultDescriptor/*<V>*/ descriptor) {
+ V computeResult<V>(AnalysisTarget target, ResultDescriptor<V> descriptor) {
// Make sure we are not trying to invoke the task model in a reentrant
// fashion.
assert(!driver.isTaskRunning);
@@ -841,8 +840,8 @@ class AnalysisContextImpl implements InternalAnalysisContext {
@deprecated
@override
- Object/*=V*/ getConfigurationData/*<V>*/(ResultDescriptor/*<V>*/ key) =>
- (_configurationData[key] ?? key?.defaultValue) as Object/*=V*/;
+ V getConfigurationData<V>(ResultDescriptor<V> key) =>
+ (_configurationData[key] ?? key?.defaultValue) as V;
@override
TimestampedData<String> getContents(Source source) {
@@ -1026,8 +1025,7 @@ class AnalysisContextImpl implements InternalAnalysisContext {
}
@override
- Object/*=V*/ getResult/*<V>*/(
- AnalysisTarget target, ResultDescriptor/*<V>*/ result) {
+ V getResult<V>(AnalysisTarget target, ResultDescriptor<V> result) {
return _cache.getValue(target, result);
}
@@ -1662,7 +1660,7 @@ class AnalysisContextImpl implements InternalAnalysisContext {
AnalysisEngine.instance.logger.logInformation(message);
}
- bool _notEqual/*<T>*/(List/*<T>*/ first, List/*<T>*/ second) {
+ bool _notEqual<T>(List<T> first, List<T> second) {
int length = first.length;
if (length != second.length) {
return true;
« no previous file with comments | « pkg/analyzer/lib/src/context/cache.dart ('k') | pkg/analyzer/lib/src/dart/ast/ast.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698