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

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

Issue 11191078: Make hashCode a getter and not a method. (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 9f3c454bec980c3615a36d86fdcbb17a6da8e70b..8d61f60df5f8b1340b91be23e4871da2a0a96183 100644
--- a/lib/compiler/implementation/scanner/byte_strings.dart
+++ b/lib/compiler/implementation/scanner/byte_strings.dart
@@ -26,7 +26,7 @@ class ByteString implements SourceString {
Iterator<int> iterator() => new Utf8Decoder(bytes, offset, length);
- int hashCode() {
+ int get hashCode {
if (_hashCode == null) {
_hashCode = computeHashCode();
}

Powered by Google App Engine
This is Rietveld 408576698