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

Unified Diff: lib/compiler/implementation/scanner/string_scanner.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/string_scanner.dart
diff --git a/lib/compiler/implementation/scanner/string_scanner.dart b/lib/compiler/implementation/scanner/string_scanner.dart
index 51851e2eeed24ba1b51f3271784647adbf00a641..73744d827bdfbd9092d0e387ceef78049881d2d4 100644
--- a/lib/compiler/implementation/scanner/string_scanner.dart
+++ b/lib/compiler/implementation/scanner/string_scanner.dart
@@ -42,7 +42,7 @@ class SubstringWrapper implements SourceString {
const SubstringWrapper(String this.internalString,
int this.begin, int this.end);
- int hashCode() => slowToString().hashCode();
+ int get hashCode => slowToString().hashCode;
bool operator ==(other) {
return other is SourceString && slowToString() == other.slowToString();

Powered by Google App Engine
This is Rietveld 408576698