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

Unified Diff: editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/element/PropertyAccessorElement.java

Issue 26746002: Issue 13918. final fields induce setters that are illegal to call (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 2 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
Index: editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/element/PropertyAccessorElement.java
diff --git a/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/element/PropertyAccessorElement.java b/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/element/PropertyAccessorElement.java
index 24066adf1b47547e4b7a472d06ecfb30cad68fa2..2217604fe3367ffffbb4f3ec19438a788ab4a214 100644
--- a/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/element/PropertyAccessorElement.java
+++ b/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/element/PropertyAccessorElement.java
@@ -66,6 +66,13 @@ public interface PropertyAccessorElement extends ExecutableElement {
public boolean isAbstract();
/**
+ * Return {@code true} if this setter for final variable, so it causes warning when used.
+ *
+ * @return {@code true} if this accessor is excluded setter
+ */
+ public boolean isExcludedSetter();
+
+ /**
* Return {@code true} if this accessor represents a getter.
*
* @return {@code true} if this accessor represents a getter

Powered by Google App Engine
This is Rietveld 408576698