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

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

Issue 1665683002: Revert "Create ElementAnnotation objects prior to resolution." (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 11 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/lib/src/dart/element/element.dart
diff --git a/pkg/analyzer/lib/src/dart/element/element.dart b/pkg/analyzer/lib/src/dart/element/element.dart
index 68b98ce75784bef272d37e2fe2b184d9e5986c70..1ae2e9d9a18c6a469d42a3f0e508a28bb0c55fb0 100644
--- a/pkg/analyzer/lib/src/dart/element/element.dart
+++ b/pkg/analyzer/lib/src/dart/element/element.dart
@@ -1568,12 +1568,7 @@ class ElementAnnotationImpl implements ElementAnnotation {
* The element representing the field, variable, or constructor being used as
* an annotation.
*/
- Element element;
-
- /**
- * The element which this annotation annotates.
- */
- final Element annotatedElement;
+ final Element element;
/**
* The result of evaluating this annotation as a compile-time constant
@@ -1583,10 +1578,11 @@ class ElementAnnotationImpl implements ElementAnnotation {
EvaluationResultImpl evaluationResult;
/**
- * Initialize a newly created annotation. The given [annotatedElement] is the
- * element to which the annotation is being applied.
+ * Initialize a newly created annotation. The given [element] is the element
+ * representing the field, variable, or constructor being used as an
+ * annotation.
*/
- ElementAnnotationImpl(this.annotatedElement);
+ ElementAnnotationImpl(this.element);
@override
DartObject get constantValue => evaluationResult.value;
« no previous file with comments | « pkg/analyzer/lib/src/dart/element/builder.dart ('k') | pkg/analyzer/lib/src/generated/element_resolver.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698