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

Unified Diff: dart/sdk/lib/_internal/compiler/implementation/js_backend/runtime_types.dart

Issue 12294028: Fix warnings spotted by dart. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 10 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: dart/sdk/lib/_internal/compiler/implementation/js_backend/runtime_types.dart
diff --git a/dart/sdk/lib/_internal/compiler/implementation/js_backend/runtime_types.dart b/dart/sdk/lib/_internal/compiler/implementation/js_backend/runtime_types.dart
index 746df0e8314b54715af2dd13d17c024902cec9ad..bfad2078dfcb9b3a5fea2f08d9412d4320bf9230 100644
--- a/dart/sdk/lib/_internal/compiler/implementation/js_backend/runtime_types.dart
+++ b/dart/sdk/lib/_internal/compiler/implementation/js_backend/runtime_types.dart
@@ -234,25 +234,25 @@ class RuntimeTypeInformation {
StringBuffer builder = new StringBuffer();
void build(DartType part) {
if (part is TypeVariableType) {
- builder.add(onVariable(part));
+ builder.write(onVariable(part));
} else {
bool hasArguments = part is InterfaceType && !part.isRaw;
Element element = part.element;
if (element == compiler.dynamicClass) {
- builder.add('null');
+ builder.write('null');
} else {
String name = getJsName(element);
if (!hasArguments) {
- builder.add(name);
+ builder.write(name);
} else {
- builder.add('[');
- builder.add(name);
+ builder.write('[');
+ builder.write(name);
InterfaceType interface = part;
for (DartType argument in interface.typeArguments) {
- builder.add(', ');
+ builder.write(', ');
build(argument);
}
- builder.add(']');
+ builder.write(']');
}
}
}

Powered by Google App Engine
This is Rietveld 408576698