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

Unified Diff: lib/src/file.dart

Issue 1376433003: Fix the typing of FileSpan.{start,end}. (Closed) Base URL: git@github.com:dart-lang/source_span@master
Patch Set: Created 5 years, 3 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 | « CHANGELOG.md ('k') | pubspec.yaml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/file.dart
diff --git a/lib/src/file.dart b/lib/src/file.dart
index 95fa92ca3b12a7586ca4d3e995c9407039cd69f1..37790ce9296b8d8a31104373a422e36e22841aa9 100644
--- a/lib/src/file.dart
+++ b/lib/src/file.dart
@@ -246,6 +246,9 @@ abstract class FileSpan implements SourceSpanWithContext {
/// The [file] that [this] belongs to.
SourceFile get file;
+ FileLocation get start;
+ FileLocation get end;
+
/// Returns a new span that covers both [this] and [other].
///
/// Unlike [union], [other] may be disjoint from [this]. If it is, the text
« no previous file with comments | « CHANGELOG.md ('k') | pubspec.yaml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698