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

Unified Diff: lib/compiler/implementation/scanner/byte_strings.dart

Issue 11238035: Make isEmpty a getter. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Update status file with co19 issue number. Created 8 years, 2 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: lib/compiler/implementation/scanner/byte_strings.dart
diff --git a/lib/compiler/implementation/scanner/byte_strings.dart b/lib/compiler/implementation/scanner/byte_strings.dart
index 157c5012b56dc023f715ee5e57ed29db3d4f7a4d..f0b385a6326306877f00fba2ef44606de599909f 100644
--- a/lib/compiler/implementation/scanner/byte_strings.dart
+++ b/lib/compiler/implementation/scanner/byte_strings.dart
@@ -46,8 +46,8 @@ class ByteString implements SourceString {
sb.add(slowToString());
}
- bool isEmpty() => length == 0;
- bool isPrivate() => !isEmpty() && identical(bytes[offset], $_);
+ bool get isEmpty => length == 0;
+ bool isPrivate() => !isEmpty && identical(bytes[offset], $_);
String get stringValue => null;
}

Powered by Google App Engine
This is Rietveld 408576698