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

Unified Diff: pkg/analysis_server/lib/src/services/correction/util.dart

Issue 525993003: Remove excessive check. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 4 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/analysis_server/lib/src/services/refactoring/inline_method.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analysis_server/lib/src/services/correction/util.dart
diff --git a/pkg/analysis_server/lib/src/services/correction/util.dart b/pkg/analysis_server/lib/src/services/correction/util.dart
index 832ef44c4908653bf67033e903355d6c0c545293..fdec5b8227502858eae7329d78745326af8cf18e 100644
--- a/pkg/analysis_server/lib/src/services/correction/util.dart
+++ b/pkg/analysis_server/lib/src/services/correction/util.dart
@@ -419,13 +419,11 @@ bool hasDisplayName(Element element, String name) {
}
/**
- * Checks if the given [PropertyAccessorElement] is an accessor of a class
+ * Checks if the given [PropertyAccessorElement] is an accessor of a
* [FieldElement].
*/
-bool isClassFieldAccessorElement(PropertyAccessorElement accessor) {
- return accessor != null &&
- accessor.variable is FieldElement &&
- accessor.variable.enclosingElement is ClassElement;
+bool isFieldAccessorElement(PropertyAccessorElement accessor) {
+ return accessor != null && accessor.variable is FieldElement;
}
« no previous file with comments | « no previous file | pkg/analysis_server/lib/src/services/refactoring/inline_method.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698