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

Unified Diff: frog/member.dart

Issue 8771054: Add a script to generate HTML and DOM docs with cross-links to one another. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Various fixes to get htmldoc running again. Created 9 years 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
« no previous file with comments | « frog/library.dart ('k') | frog/type.dart » ('j') | frog/type.dart » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: frog/member.dart
diff --git a/frog/member.dart b/frog/member.dart
index 8697f56ecef9a18aa6a8ebd020ddd4392bfd57eb..3f05171ce2c9709bc8c4acaa48db7f3524f802d6 100644
--- a/frog/member.dart
+++ b/frog/member.dart
@@ -197,7 +197,17 @@ class Member extends Element {
}
}
- int hashCode() => (declaringType.hashCode() << 4) ^ name.hashCode();
+ int hashCode() {
+ final typeCode = declaringType == null ? 1 : declaringType.hashCode();
+ final nameCode = isConstructor ? constructorName.hashCode() : name.hashCode();
Siggi Cherem (dart-lang) 2011/12/07 21:16:13 80
nweiz 2011/12/07 22:09:11 Done.
+ return (typeCode << 4) ^ nameCode;
+ }
+
+ bool operator ==(other) {
+ return other is Member && isConstructor == other.isConstructor &&
+ declaringType == other.declaringType && (isConstructor ?
+ constructorName == other.constructorName : name == other.name);
+ }
}
« no previous file with comments | « frog/library.dart ('k') | frog/type.dart » ('j') | frog/type.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698