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

Unified Diff: dart/sdk/lib/_internal/compiler/implementation/scanner/keyword.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/scanner/keyword.dart
diff --git a/dart/sdk/lib/_internal/compiler/implementation/scanner/keyword.dart b/dart/sdk/lib/_internal/compiler/implementation/scanner/keyword.dart
index e9f59305bf0684ad121813c338808c69744cfe6c..6f47f738f8a379c8dfe2992ec66b8790446c6ec2 100644
--- a/dart/sdk/lib/_internal/compiler/implementation/scanner/keyword.dart
+++ b/dart/sdk/lib/_internal/compiler/implementation/scanner/keyword.dart
@@ -106,7 +106,7 @@ class Keyword extends Iterable<int> implements SourceString {
Iterator<int> get iterator => new StringCodeIterator(syntax);
void printOn(StringBuffer sb) {
- sb.add(syntax);
+ sb.write(syntax);
}
String toString() => syntax;
@@ -203,19 +203,19 @@ class ArrayKeywordState extends KeywordState {
String toString() {
StringBuffer sb = new StringBuffer();
- sb.add("[");
+ sb.write("[");
if (keyword != null) {
- sb.add("*");
- sb.add(keyword);
- sb.add(" ");
+ sb.write("*");
+ sb.write(keyword);
+ sb.write(" ");
}
List<KeywordState> foo = table;
for (int i = 0; i < foo.length; i++) {
if (foo[i] != null) {
- sb.add("${new String.fromCharCodes([i + $a])}: ${foo[i]}; ");
+ sb.write("${new String.fromCharCodes([i + $a])}: ${foo[i]}; ");
}
}
- sb.add("]");
+ sb.write("]");
return sb.toString();
}
}

Powered by Google App Engine
This is Rietveld 408576698