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

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

Issue 322603002: New analyzer snapshot. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 6 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 | « pkg/analyzer/lib/src/generated/constant.dart ('k') | pkg/analyzer/lib/src/generated/engine.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/lib/src/generated/element.dart
diff --git a/pkg/analyzer/lib/src/generated/element.dart b/pkg/analyzer/lib/src/generated/element.dart
index 50b872b9f94fb253f2d9888c971aeb7039a230a6..8154c4713494c27ca622e435b678333d249899ef 100644
--- a/pkg/analyzer/lib/src/generated/element.dart
+++ b/pkg/analyzer/lib/src/generated/element.dart
@@ -4624,6 +4624,9 @@ class FieldMember extends VariableMember implements FieldElement {
PropertyAccessorElement get getter => PropertyAccessorMember.from(baseElement.getter, definingType);
@override
+ DartType get propagatedType => substituteFor(baseElement.propagatedType);
+
+ @override
PropertyAccessorElement get setter => PropertyAccessorMember.from(baseElement.setter, definingType);
@override
@@ -8220,6 +8223,9 @@ abstract class Member implements Element {
* @return the result of transforming the type
*/
DartType substituteFor(DartType type) {
+ if (type == null) {
+ return null;
+ }
List<DartType> argumentTypes = _definingType.typeArguments;
List<DartType> parameterTypes = TypeParameterTypeImpl.getTypes(_definingType.typeParameters);
return type.substitute2(argumentTypes, parameterTypes);
@@ -9810,6 +9816,14 @@ abstract class PropertyInducingElement implements VariableElement {
PropertyAccessorElement get getter;
/**
+ * Return the propagated type of this variable, or `null` if type propagation has not been
+ * performed, for example because the variable is not final.
+ *
+ * @return the propagated type of this variable
+ */
+ DartType get propagatedType;
+
+ /**
* Return the setter associated with this variable, or `null` if the variable is effectively
* `final` and therefore does not have a setter associated with it. (This can happen either
* because the variable is explicitly defined as being `final` or because the variable is
@@ -9846,6 +9860,12 @@ abstract class PropertyInducingElementImpl extends VariableElementImpl implement
PropertyAccessorElement setter;
/**
+ * The propagated type of this variable, or `null` if type propagation has not been
+ * performed.
+ */
+ DartType propagatedType;
+
+ /**
* An empty array of elements.
*/
static List<PropertyInducingElement> EMPTY_ARRAY = new List<PropertyInducingElement>(0);
« no previous file with comments | « pkg/analyzer/lib/src/generated/constant.dart ('k') | pkg/analyzer/lib/src/generated/engine.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698