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

Unified Diff: sdk/lib/_internal/compiler/samples/leap/leap_leg.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: sdk/lib/_internal/compiler/samples/leap/leap_leg.dart
diff --git a/sdk/lib/_internal/compiler/samples/leap/leap_leg.dart b/sdk/lib/_internal/compiler/samples/leap/leap_leg.dart
index 3969f901960a3cf82f8f624a76a50fc221dd2209..137c236e0a00e251dc7c79cdde190380c0e05810 100644
--- a/sdk/lib/_internal/compiler/samples/leap/leap_leg.dart
+++ b/sdk/lib/_internal/compiler/samples/leap/leap_leg.dart
@@ -142,28 +142,28 @@ class Runner {
FunctionType ft = fe.computeType(compiler);
- sb.add("<div>${indentation}");
+ sb.write("<div>${indentation}");
ft.returnType.name.printOn(sb);
- sb.add(" ");
+ sb.write(" ");
fe.name.printOn(sb);
- sb.add("(");
+ sb.write("(");
ft.parameterTypes.printOn(sb, ", ");
- sb.add(");</div>");
+ sb.write(");</div>");
}
void printField(FieldElement fe, [String indentation = ""]) {
- sb.add("<div>${indentation}var ");
+ sb.write("<div>${indentation}var ");
fe.name.printOn(sb);
- sb.add(";</div>");
+ sb.write(";</div>");
}
void printClass(ClassElement ce) {
ce.parseNode(compiler);
- sb.add("<div>class ");
+ sb.write("<div>class ");
ce.name.printOn(sb);
- sb.add(" {");
+ sb.write(" {");
for (Element e in ce.members.reverse()) {
switch(e.kind) {
@@ -178,7 +178,7 @@ class Runner {
break;
}
}
- sb.add("}</div>");
+ sb.write("}</div>");
}
for (Element c in e.topLevelElements.reverse()) {

Powered by Google App Engine
This is Rietveld 408576698