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

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

Issue 300033008: Remember propagated types for PropertyInducingElement(s). (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 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 | editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/element/PropertyInducingElementImpl.java » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/element/PropertyInducingElement.java
diff --git a/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/element/PropertyInducingElement.java b/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/element/PropertyInducingElement.java
index c529dc08189bff45d9bab5e163f7784a964d2ffa..59ded6a989e9e9368bbd2e2fe4dcdd0f323f6c97 100644
--- a/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/element/PropertyInducingElement.java
+++ b/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/element/PropertyInducingElement.java
@@ -13,6 +13,8 @@
*/
package com.google.dart.engine.element;
+import com.google.dart.engine.type.Type;
+
/**
* The interface {@code PropertyInducingElement} defines the behavior of elements representing a
* variable that has an associated getter and possibly a setter. Note that explicitly defined
@@ -41,6 +43,14 @@ public interface PropertyInducingElement extends VariableElement {
public PropertyAccessorElement getGetter();
/**
+ * Return the propagated type of this variable, or {@code null} if type propagation has not been
+ * performed, for example because the variable is not final.
+ *
+ * @return the propagated type of this variable
+ */
+ public Type getPropagatedType();
+
+ /**
* Return the setter associated with this variable, or {@code null} if the variable is effectively
* {@code final} and therefore does not have a setter associated with it. (This can happen either
* because the variable is explicitly defined as being {@code final} or because the variable is
« no previous file with comments | « no previous file | editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/element/PropertyInducingElementImpl.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698