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; |