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

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

Issue 1555073002: Revert element hierarchy to its original form (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 4 years, 12 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/lib/dart/element/element.dart
diff --git a/pkg/analyzer/lib/dart/element/element.dart b/pkg/analyzer/lib/dart/element/element.dart
index e0efffcbe6098d9a7005e6189da8b9e12e26d37e..7d4308cf118d752975bd09cc43d59410dba980c3 100644
--- a/pkg/analyzer/lib/dart/element/element.dart
+++ b/pkg/analyzer/lib/dart/element/element.dart
@@ -558,13 +558,6 @@ abstract class Element implements AnalysisTarget {
String get displayName;
/**
- * Return the content of the documentation comment (including delimiters) for
- * this element, or `null` if this element does not or cannot have
- * documentation.
- */
- String get documentationComment;
-
- /**
* Return the source range of the documentation comment for this element,
* or `null` if this element does not or cannot have a documentation.
*
@@ -574,6 +567,13 @@ abstract class Element implements AnalysisTarget {
SourceRange get docRange;
/**
+ * Return the content of the documentation comment (including delimiters) for
+ * this element, or `null` if this element does not or cannot have
+ * documentation.
+ */
+ String get documentationComment;
+
+ /**
* Return the element that either physically or logically encloses this
* element. This will be `null` if this element is a library because libraries
* are the top-level elements in the model.
@@ -1153,7 +1153,8 @@ abstract class FunctionElement implements ExecutableElement, LocalElement {
*
* Clients may not extend, implement or mix-in this class.
*/
-abstract class FunctionTypeAliasElement implements FunctionTypedElement {
+abstract class FunctionTypeAliasElement
+ implements FunctionTypedElement, TypeDefiningElement {
/**
* An empty array of type alias elements.
*/
@@ -1177,8 +1178,7 @@ abstract class FunctionTypeAliasElement implements FunctionTypedElement {
*
* Clients may not extend, implement or mix-in this class.
*/
-abstract class FunctionTypedElement
- implements TypeDefiningElement, TypeParameterizedElement {
+abstract class FunctionTypedElement implements TypeParameterizedElement {
/**
* Return a list containing all of the parameters defined by this executable
* element.
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698