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

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

Issue 2486973004: Update cross-context options encoding to account for patchPlatform. (Closed)
Patch Set: Created 4 years, 1 month 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 | « pkg/analyzer/lib/src/generated/package.dart ('k') | 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/sdk.dart
diff --git a/pkg/analyzer/lib/src/generated/sdk.dart b/pkg/analyzer/lib/src/generated/sdk.dart
index c3e8e655eb6254c1ff689483fe5066fa510d8696..a03afbed585bb0ae643e0de9352e434782d9f771 100644
--- a/pkg/analyzer/lib/src/generated/sdk.dart
+++ b/pkg/analyzer/lib/src/generated/sdk.dart
@@ -212,7 +212,10 @@ class SdkDescription {
@override
int get hashCode {
- int hashCode = options.encodeCrossContextOptions();
+ int hashCode = 0;
+ for (int value in options.encodeCrossContextOptions()) {
+ hashCode = JenkinsSmiHash.combine(hashCode, value);
+ }
for (String path in paths) {
hashCode = JenkinsSmiHash.combine(hashCode, path.hashCode);
}
@@ -222,8 +225,9 @@ class SdkDescription {
@override
bool operator ==(Object other) {
if (other is SdkDescription) {
- if (options.encodeCrossContextOptions() !=
- other.options.encodeCrossContextOptions()) {
+ if (!AnalysisOptions.crossContextOptionsEqual(
+ options.encodeCrossContextOptions(),
+ other.options.encodeCrossContextOptions())) {
return false;
}
int length = paths.length;
« no previous file with comments | « pkg/analyzer/lib/src/generated/package.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698