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

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

Issue 2713243003: Add toSource() to ElementAnnotation, ElementAnnotationImpl (issue 28631) (Closed)
Patch Set: Created 3 years, 10 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 | pkg/analyzer/lib/src/dart/element/element.dart » ('j') | 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 192485a63f79c71da3f1e1072066e774d63613db..7cb29398897e2a5679fe850b3e51399f34ca0be6 100644
--- a/pkg/analyzer/lib/dart/element/element.dart
+++ b/pkg/analyzer/lib/dart/element/element.dart
@@ -867,6 +867,13 @@ abstract class ElementAnnotation
* value of this annotation could not be computed because of errors.
*/
DartObject computeConstantValue();
+
+ /**
+ * Return a textual description of this annotation in a form approximating
+ * valid source. The returned string will not be valid source primarily in the
+ * case where the annotation itself is not well-formed.
+ */
+ String toSource();
}
/**
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/dart/element/element.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698