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

Unified Diff: pkg/analyzer/lib/src/generated/utilities_general.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/generated/utilities_general.dart
diff --git a/pkg/analyzer/lib/src/generated/utilities_general.dart b/pkg/analyzer/lib/src/generated/utilities_general.dart
index e0600dcfcf64b48f41823ed475c97cb025c17984..b9dca93c681bf8f7f9f51d12122a44e30e9ec685 100644
--- a/pkg/analyzer/lib/src/generated/utilities_general.dart
+++ b/pkg/analyzer/lib/src/generated/utilities_general.dart
@@ -145,7 +145,7 @@ abstract class PerformanceTag {
* Make this the current tag for the isolate, run [f], and restore the
* previous tag. Returns the result of invoking [f].
*/
- makeCurrentWhile(f());
+ dynamic/*=E*/ makeCurrentWhile/*<E>*/(dynamic/*=E*/ f());
/**
* Reset the total time tracked by all [PerformanceTag]s to zero.
@@ -206,7 +206,7 @@ class _PerformanceTagImpl implements PerformanceTag {
return previous;
}
- makeCurrentWhile(f()) {
+ dynamic/*=E*/ makeCurrentWhile/*<E>*/(dynamic/*=E*/ f()) {
PerformanceTag prevTag = makeCurrent();
try {
return f();

Powered by Google App Engine
This is Rietveld 408576698