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

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

Issue 16702002: New analyzer_experimental snapshot. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 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
Index: pkg/analyzer_experimental/lib/src/generated/element.dart
diff --git a/pkg/analyzer_experimental/lib/src/generated/element.dart b/pkg/analyzer_experimental/lib/src/generated/element.dart
index 98ec24155ad6581803804af5383d03d5a7fc334d..71b29b90dca29217324df556af8486e07fee3ba2 100644
--- a/pkg/analyzer_experimental/lib/src/generated/element.dart
+++ b/pkg/analyzer_experimental/lib/src/generated/element.dart
@@ -252,6 +252,18 @@ abstract class ClassElement implements Element {
PropertyAccessorElement lookUpSetter(String setterName, LibraryElement library);
}
/**
+ * The interface {@code ClassMemberElement} defines the behavior of elements that are contained
+ * within a {@link ClassElement}.
+ */
+abstract class ClassMemberElement implements Element {
+
+ /**
+ * Return the type in which this constructor is defined.
+ * @return the type in which this constructor is defined
+ */
+ ClassElement get enclosingElement;
+}
+/**
* The interface {@code CompilationUnitElement} defines the behavior of elements representing a
* compilation unit.
* @coverage dart.engine.element
@@ -308,13 +320,7 @@ abstract class CompilationUnitElement implements Element, UriReferencedElement {
* constructor or a factory method defined within a type.
* @coverage dart.engine.element
*/
-abstract class ConstructorElement implements ExecutableElement {
-
- /**
- * Return the type in which this constructor is defined.
- * @return the type in which this constructor is defined
- */
- ClassElement get enclosingElement;
+abstract class ConstructorElement implements ClassMemberElement, ExecutableElement {
/**
* Return the constructor to which this constructor is redirecting.
@@ -709,13 +715,7 @@ abstract class ExternalHtmlScriptElement implements HtmlScriptElement {
* within a type.
* @coverage dart.engine.element
*/
-abstract class FieldElement implements PropertyInducingElement {
-
- /**
- * Return the type in which this field is defined.
- * @return the type in which this field is defined
- */
- ClassElement get enclosingElement;
+abstract class FieldElement implements ClassMemberElement, PropertyInducingElement {
}
/**
* The interface {@code FieldFormalParameterElement} defines the behavior of elements representing a
@@ -973,13 +973,7 @@ abstract class LocalVariableElement implements LocalElement, VariableElement {
* defined within a type.
* @coverage dart.engine.element
*/
-abstract class MethodElement implements ExecutableElement {
-
- /**
- * Return the type in which this method is defined.
- * @return the type in which this method is defined
- */
- ClassElement get enclosingElement;
+abstract class MethodElement implements ClassMemberElement, ExecutableElement {
/**
* Return {@code true} if this method is abstract. Methods are abstract if they are not external

Powered by Google App Engine
This is Rietveld 408576698