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

Unified Diff: pkg/front_end/lib/src/base/instrumentation.dart

Issue 2874033003: Set MethodInvocation.interfaceTarget during type inference. (Closed)
Patch Set: Created 3 years, 7 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/front_end/lib/src/base/instrumentation.dart
diff --git a/pkg/front_end/lib/src/base/instrumentation.dart b/pkg/front_end/lib/src/base/instrumentation.dart
index d80fff493ec715028ee6b27d1cbd8cc3acf25d5e..50e99c40b29e1ce00b5cd7f7f223d669c696f0aa 100644
--- a/pkg/front_end/lib/src/base/instrumentation.dart
+++ b/pkg/front_end/lib/src/base/instrumentation.dart
@@ -26,6 +26,20 @@ abstract class InstrumentationValue {
bool matches(String description) => description == toString();
}
+/// Instance of [InstrumentationValue] describing a [Procedure].
+class InstrumentationValueForProcedure extends InstrumentationValue {
+ final Procedure procedure;
+
+ InstrumentationValueForProcedure(this.procedure);
+
+ @override
+ String toString() => procedure
+ .toString()
+ .replaceAll('dart.core::', '')
+ .replaceAll('dart.async::', '')
+ .replaceAll('test::', '');
+}
+
/// Instance of [InstrumentationValue] describing a [DartType].
class InstrumentationValueForType extends InstrumentationValue {
final DartType type;

Powered by Google App Engine
This is Rietveld 408576698