Index: pkg/compiler/lib/src/helpers/trace.dart |
diff --git a/pkg/compiler/lib/src/helpers/trace.dart b/pkg/compiler/lib/src/helpers/trace.dart |
index b928bb6add130e2f833ee0d87ac3c910bd22867d..0889efd248db02bb2ab4a9351de9bac791cc7b54 100644 |
--- a/pkg/compiler/lib/src/helpers/trace.dart |
+++ b/pkg/compiler/lib/src/helpers/trace.dart |
@@ -60,8 +60,11 @@ traceExceptions(List<String> exceptions) { |
} |
/// Function signature of [traceAndReport]. |
-typedef void TraceAndReport(Compiler compiler, Spannable node, String message, |
- {bool condition(String stackTrace), int limit, |
+typedef void TraceAndReport(DiagnosticReporter reporter, |
+ Spannable node, |
+ String message, |
+ {bool condition(String stackTrace), |
+ int limit, |
bool throwOnPrint}); |
/// Calls [reportHere] and [trace] with the same message. |
@@ -74,7 +77,9 @@ TraceAndReport get traceAndReport { |
TraceAndReport get reportAndTrace => traceAndReport; |
/// Implementation of [traceAndReport]. |
-void _traceAndReport(Compiler compiler, Spannable node, String message, |
+void _traceAndReport(DiagnosticReporter reporter, |
+ Spannable node, |
+ String message, |
{bool condition(String stackTrace), int limit, |
bool throwOnPrint: false}) { |
@@ -82,7 +87,7 @@ void _traceAndReport(Compiler compiler, Spannable node, String message, |
condition: (String stackTrace) { |
bool result = condition != null ? condition(stackTrace) : true; |
if (result) { |
- reportHere(compiler, node, message); |
+ reportHere(reporter, node, message); |
} |
return result; |
}); |