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

Unified Diff: pkg/scheduled_test/lib/src/descriptor/utils.dart

Issue 12473003: Remove deprecated StringBuffer.add, addAll and addCharCode. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 9 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/scheduled_test/lib/src/descriptor/utils.dart
diff --git a/pkg/scheduled_test/lib/src/descriptor/utils.dart b/pkg/scheduled_test/lib/src/descriptor/utils.dart
index c6490195c91011d3f7a75fec0c0bb953ebb24498..30d809ee820e4677efc2ae75daef83e1d8e5c54f 100644
--- a/pkg/scheduled_test/lib/src/descriptor/utils.dart
+++ b/pkg/scheduled_test/lib/src/descriptor/utils.dart
@@ -48,7 +48,7 @@ String describePattern(Pattern pattern) {
if (pattern is! RegExp) return '$pattern';
var flags = new StringBuffer();
- if (!pattern.isCaseSensitive) flags.add('i');
- if (pattern.isMultiLine) flags.add('m');
+ if (!pattern.isCaseSensitive) flags.write('i');
+ if (pattern.isMultiLine) flags.write('m');
return '/${pattern.pattern}/$flags';
}

Powered by Google App Engine
This is Rietveld 408576698