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

Unified Diff: pkg/front_end/lib/src/base/source.dart

Issue 2498133002: Connect analyzer's AnalysisError object to front_end's CompilationError. (Closed)
Patch Set: Created 4 years, 1 month 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/front_end/lib/src/base/source.dart
diff --git a/pkg/front_end/lib/src/base/source.dart b/pkg/front_end/lib/src/base/source.dart
index 0ed4747915f61d9d45bc041f720f635fe9cb7486..e20a0345d88c31b7c34190bd59c75b21dd776755 100644
--- a/pkg/front_end/lib/src/base/source.dart
+++ b/pkg/front_end/lib/src/base/source.dart
@@ -5,6 +5,7 @@
import 'package:front_end/src/base/analysis_target.dart';
import 'package:front_end/src/base/timestamped_data.dart';
import 'package:front_end/src/base/uri_kind.dart';
+import 'package:source_span/source_span.dart' as source_span;
/**
* The interface `Source` defines the behavior of objects representing source code that can be
@@ -107,6 +108,11 @@ abstract class Source implements AnalysisTarget {
Source get source => this;
/**
+ * Return the [source_span.SourceFile] object corresponding to this source.
+ */
+ source_span.SourceFile get sourceFile;
+
+ /**
* Return the URI from which this source was originally derived.
*
* @return the URI from which this source was originally derived
« pkg/front_end/lib/compilation_error.dart ('K') | « pkg/front_end/lib/compilation_error.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698