| commit | 9ec5b0b782765d2677a705580347eb0c27322cb7 | [log] [tgz] |
|---|---|---|
| author | Sam Rawlins <srawlins@google.com> | Tue Sep 30 21:02:39 2025 -0700 |
| committer | Commit Queue <dart-scoped@luci-project-accounts.iam.gserviceaccount.com> | Tue Sep 30 21:02:39 2025 -0700 |
| tree | 8f7a61bd865319c8df5af35737b68f9f4e0b26f9 | |
| parent | c850242ef99554b7351d6a4e9a3a8a6a716c16e1 [diff] |
analyzer: mock SDK: add Stopwatch This class is needed for a planned analyzer plugin for the flutter/flutter repository. Change-Id: Ia24619ac689931150d79649ab451dd673bdead83 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/452531 Reviewed-by: Ben Konyi <bkonyi@google.com> Reviewed-by: Konstantin Shcheglov <scheglov@google.com> Commit-Queue: Samuel Rawlins <srawlins@google.com>
diff --git a/pkg/analyzer/lib/src/test_utilities/mock_sdk.dart b/pkg/analyzer/lib/src/test_utilities/mock_sdk.dart index 17443b8..3381132 100644 --- a/pkg/analyzer/lib/src/test_utilities/mock_sdk.dart +++ b/pkg/analyzer/lib/src/test_utilities/mock_sdk.dart
@@ -640,6 +640,8 @@ abstract interface class StackTrace {} +class Stopwatch {} + abstract final class String implements Comparable<String>, Pattern { external factory String.fromCharCodes(Iterable<int> charCodes, [int start = 0, int? end]);