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

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

Issue 1515533004: Clean up syntax in generic method comments (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years 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/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 10b85b75d9819f031471c8920353ef25bf0cf411..afe021626062dab159e58d4ebd91a185f7e631e1 100644
--- a/pkg/analyzer/lib/src/context/cache.dart
+++ b/pkg/analyzer/lib/src/context/cache.dart
@@ -40,9 +40,9 @@ class AnalysisCache {
final ReentrantSynchronousStream<InvalidatedResult> onResultInvalidated =
new ReentrantSynchronousStream<InvalidatedResult>();
- final List<
- ReentrantSynchronousStreamSubscription> onResultInvalidatedPartitionSubscriptions = <
- ReentrantSynchronousStreamSubscription>[];
+ final List<ReentrantSynchronousStreamSubscription>
+ onResultInvalidatedPartitionSubscriptions =
+ <ReentrantSynchronousStreamSubscription>[];
/**
* Initialize a newly created cache to have the given [_partitions]. The
@@ -384,7 +384,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.
*/
- /*<V>*/ dynamic /*V*/ getValue(ResultDescriptor /*<V>*/ descriptor) {
+ dynamic /*=V*/ getValue /*<V>*/ (ResultDescriptor /*<V>*/ descriptor) {
ResultData data = _resultMap[descriptor];
if (data == null) {
return descriptor.defaultValue;
@@ -482,11 +482,8 @@ class CacheEntry {
* Set the value of the result represented by the given [descriptor] to the
* given [value].
*/
- /*<V>*/ void setValue(
- ResultDescriptor /*<V>*/ descriptor,
- dynamic /*V*/
- value,
- List<TargetedResult> dependedOn) {
+ void setValue /*<V>*/ (ResultDescriptor /*<V>*/ descriptor,
+ dynamic /*=V*/ value, List<TargetedResult> dependedOn) {
// {
// String valueStr = '$value';
// if (valueStr.length > 20) {
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/context/context.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698