Index: runtime/lib/mirrors_impl.dart |
diff --git a/runtime/lib/mirrors_impl.dart b/runtime/lib/mirrors_impl.dart |
index d8c78e12bdbb34af710de83e3d7e8c006c528906..b4923abfb808d28698ab4df441bb01a2b18315f7 100644 |
--- a/runtime/lib/mirrors_impl.dart |
+++ b/runtime/lib/mirrors_impl.dart |
@@ -22,24 +22,24 @@ Map _filterMap(Map old_map, bool filter(key, value)) { |
String _makeSignatureString(TypeMirror returnType, |
List<ParameterMirror> parameters) { |
StringBuffer buf = new StringBuffer(); |
- buf.add(returnType.qualifiedName); |
- buf.add(' ('); |
+ buf.write(returnType.qualifiedName); |
+ buf.write(' ('); |
bool found_optional_param = false; |
for (int i = 0; i < parameters.length; i++) { |
var param = parameters[i]; |
if (param.isOptional && !found_optional_param) { |
- buf.add('['); |
+ buf.write('['); |
found_optional_param = true; |
} |
- buf.add(param.type.qualifiedName); |
+ buf.write(param.type.qualifiedName); |
if (i < (parameters.length - 1)) { |
- buf.add(', '); |
+ buf.write(', '); |
} |
} |
if (found_optional_param) { |
- buf.add(']'); |
+ buf.write(']'); |
} |
- buf.add(')'); |
+ buf.write(')'); |
return buf.toString(); |
} |
@@ -253,7 +253,7 @@ String _dartEscape(String str) { |
} |
break; |
} |
- buf.add(output); |
+ buf.write(output); |
} |
return buf.toString(); |
} |