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

Unified Diff: pkg/analysis_server/lib/src/services/index/index.dart

Issue 738673002: Use shorter DartElementLocation. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 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
Index: pkg/analysis_server/lib/src/services/index/index.dart
diff --git a/pkg/analysis_server/lib/src/services/index/index.dart b/pkg/analysis_server/lib/src/services/index/index.dart
index acfc8351e439cea12722351873c8c6dced98a428..359be7f47a1c2709025473d96d4d6e7efcf29bef 100644
--- a/pkg/analysis_server/lib/src/services/index/index.dart
+++ b/pkg/analysis_server/lib/src/services/index/index.dart
@@ -321,6 +321,11 @@ class NameElement extends ElementImpl {
ElementKind get kind => ElementKind.NAME;
@override
+ bool operator ==(Object other) {
+ return other is NameElement && other.name == name;
+ }
+
+ @override
accept(ElementVisitor visitor) => null;
}

Powered by Google App Engine
This is Rietveld 408576698