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

Unified Diff: pkg/compiler/lib/src/helpers/trace.dart

Issue 1149403009: Refactoring resolution of local access and unqualified access of statics (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years, 6 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/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 a6bdcf67c2b307ef405b834893223cec8822ca6f..dc57d77cc837b8a8154a15812f06bb3621a6e182 100644
--- a/pkg/compiler/lib/src/helpers/trace.dart
+++ b/pkg/compiler/lib/src/helpers/trace.dart
@@ -53,6 +53,14 @@ void _trace(String message, {bool condition(String stackTrace), int limit,
}
}
+traceExceptions(List<String> exceptions) {
karlklose 2015/06/08 09:05:30 Please add some documentation.
Johnni Winther 2015/06/08 09:36:14 Done.
+ return (String stackTrace) {
+ return !exceptions.any((String exception) {
+ return stackTrace.contains(exception);
karlklose 2015/06/08 09:05:30 'return !exceptions.any(stackTrace.contains);'
Johnni Winther 2015/06/08 09:36:14 Done.
+ });
+ };
+}
+
/// Function signature of [traceAndReport].
typedef void TraceAndReport(Compiler compiler, Spannable node, String message,
{bool condition(String stackTrace), int limit,

Powered by Google App Engine
This is Rietveld 408576698