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

Unified Diff: dart/lib/compiler/implementation/tree/dartstring.dart

Issue 10876008: Remove most superfluous getter arguments from dart2js. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 4 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/lib/compiler/implementation/tree/dartstring.dart
diff --git a/dart/lib/compiler/implementation/tree/dartstring.dart b/dart/lib/compiler/implementation/tree/dartstring.dart
index e46a03af67be8f698e67962c378fdbb8ebda5e8b..d427bb6499537acff1e1abcea9867943dc142f19 100644
--- a/dart/lib/compiler/implementation/tree/dartstring.dart
+++ b/dart/lib/compiler/implementation/tree/dartstring.dart
@@ -51,10 +51,10 @@ class DartString implements Iterable<int> {
class LiteralDartString extends DartString {
final String string;
const LiteralDartString(this.string);
- int get length() => string.length;
+ int get length => string.length;
Iterator<int> iterator() => new StringCodeIterator(string);
String slowToString() => string;
- SourceString get source() => new StringWrapper(string);
+ SourceString get source => new StringWrapper(string);
}
/**
@@ -124,7 +124,7 @@ class ConsDartString extends DartString {
toStringCache = left.slowToString().concat(right.slowToString());
return toStringCache;
}
- SourceString get source() => new StringWrapper(slowToString());
+ SourceString get source => new StringWrapper(slowToString());
}
class ConsDartStringIterator implements Iterator<int> {
« no previous file with comments | « dart/lib/compiler/implementation/tools/mini_parser.dart ('k') | dart/lib/compiler/implementation/tree/nodes.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698