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

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

Issue 2694403003: Add CompilationUnitElement.lineInfo and resynthesize it. (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 f7dbe75406e424889f0c82e910fe07f98a27997a..192485a63f79c71da3f1e1072066e774d63613db 100644
--- a/pkg/analyzer/lib/dart/element/element.dart
+++ b/pkg/analyzer/lib/dart/element/element.dart
@@ -453,6 +453,11 @@ abstract class CompilationUnitElement implements Element, UriReferencedElement {
bool get hasLoadLibraryFunction;
/**
+ * Return the [LineInfo] for the [source], or `null` if not computed yet.
+ */
+ LineInfo get lineInfo;
+
+ /**
* Return a list containing all of the top-level variables contained in this
* compilation unit.
*/
@@ -719,7 +724,7 @@ abstract class Element implements AnalysisTarget, ResolutionTarget {
* Use the given [visitor] to visit this element. Return the value returned by
* the visitor as a result of visiting this element.
*/
- /*=T*/ accept/*<T>*/(ElementVisitor<dynamic/*=T*/> visitor);
+ /*=T*/ accept/*<T>*/(ElementVisitor<dynamic/*=T*/ > visitor);
/**
* Return the documentation comment for this element as it appears in the
« 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