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

Unified Diff: pkg/analyzer/lib/src/generated/resolver.dart

Issue 936823002: Mask ResolvableLibrary hashCode. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 10 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/lib/src/generated/resolver.dart
diff --git a/pkg/analyzer/lib/src/generated/resolver.dart b/pkg/analyzer/lib/src/generated/resolver.dart
index fc2696d417ca76784b8da0d939173ab7cc71446f..a0b7d00f7200ae53bb608457a7f6305c58cbb47e 100644
--- a/pkg/analyzer/lib/src/generated/resolver.dart
+++ b/pkg/analyzer/lib/src/generated/resolver.dart
@@ -10085,7 +10085,7 @@ class ResolvableLibrary {
/**
* The artifitial hash code for this object.
*/
- final int _hashCode = _NEXT_HASH_CODE++;
+ final int _hashCode = _nextHashCode();
/**
* The source specifying the defining compilation unit of this library.
@@ -10325,6 +10325,12 @@ class ResolvableLibrary {
@override
String toString() => librarySource.shortName;
+
+ static int _nextHashCode() {
+ int next = (_NEXT_HASH_CODE + 1) & 0xFFFFFF;
+ _NEXT_HASH_CODE = next;
+ return next;
+ }
}
/**
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698