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

Unified Diff: lib/compiler/implementation/scanner/token.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/token.dart
diff --git a/lib/compiler/implementation/scanner/token.dart b/lib/compiler/implementation/scanner/token.dart
index b34da91203a7e7133ae33c724b7d89eac8fcb42d..1555cff9bccee653bed532f71469a27813dd19f0 100644
--- a/lib/compiler/implementation/scanner/token.dart
+++ b/lib/compiler/implementation/scanner/token.dart
@@ -190,7 +190,7 @@ interface SourceString extends Iterable<int> default StringWrapper {
String slowToString();
- bool isEmpty();
+ bool get isEmpty;
bool isPrivate();
}
@@ -224,9 +224,9 @@ class StringWrapper implements SourceString {
stringValue.substring(initial, stringValue.length - terminal));
}
- bool isEmpty() => stringValue.isEmpty();
+ bool get isEmpty => stringValue.isEmpty;
- bool isPrivate() => !isEmpty() && identical(stringValue.charCodeAt(0), $_);
+ bool isPrivate() => !isEmpty && identical(stringValue.charCodeAt(0), $_);
}
class StringCodeIterator implements Iterator<int> {
« no previous file with comments | « lib/compiler/implementation/scanner/string_scanner.dart ('k') | lib/compiler/implementation/ssa/bailout.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698