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

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

Issue 1137873003: Add a task for computing all constant values in a compilation unit. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 7 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 | pkg/analyzer/lib/src/plugin/engine_plugin.dart » ('j') | pkg/analyzer/lib/task/dart.dart » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/lib/src/generated/constant.dart
diff --git a/pkg/analyzer/lib/src/generated/constant.dart b/pkg/analyzer/lib/src/generated/constant.dart
index 1878062c4db6a6ec99f2e367e6b78c4d06bac4b0..1fb7b7f57346b2c02b031aabee39653bc6351e6a 100644
--- a/pkg/analyzer/lib/src/generated/constant.dart
+++ b/pkg/analyzer/lib/src/generated/constant.dart
@@ -900,6 +900,22 @@ class ConstantEvaluationTarget_Annotation implements ConstantEvaluationTarget {
ConstantEvaluationTarget_Annotation(
this.context, this.source, this.librarySource, this.annotation);
+
+ @override
+ int get hashCode => JenkinsSmiHash.hash4(context.hashCode, source.hashCode,
+ librarySource.hashCode, annotation.hashCode);
+
+ @override
+ bool operator ==(other) {
+ if (other is ConstantEvaluationTarget_Annotation) {
+ return this.context == other.context &&
+ this.source == other.source &&
+ this.librarySource == other.librarySource &&
+ this.annotation == other.annotation;
+ } else {
+ return false;
+ }
+ }
}
/**
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/plugin/engine_plugin.dart » ('j') | pkg/analyzer/lib/task/dart.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698