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

Unified Diff: pkg/analyzer/lib/src/summary/package_bundle_reader.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/analyzer/lib/src/summary/package_bundle_reader.dart
diff --git a/pkg/analyzer/lib/src/summary/package_bundle_reader.dart b/pkg/analyzer/lib/src/summary/package_bundle_reader.dart
index 23645da1d89ae9620ec7da0ab37b2d135aaa4d67..4c6580b027b9ffd26aeb617098a5677c862c26f3 100644
--- a/pkg/analyzer/lib/src/summary/package_bundle_reader.dart
+++ b/pkg/analyzer/lib/src/summary/package_bundle_reader.dart
@@ -21,6 +21,7 @@ import 'package:analyzer/task/dart.dart';
import 'package:analyzer/task/general.dart';
import 'package:analyzer/task/model.dart';
import 'package:path/path.dart' as pathos;
+import 'package:source_span/source_span.dart' as source_span;
/**
* The [ResultProvider] that provides results from input package summaries.
@@ -105,6 +106,10 @@ class InSummarySource extends Source {
String get shortName => pathos.basename(fullName);
@override
+ source_span.SourceFile get sourceFile =>
+ throw new StateError('Tried to get location info for InSummarySource');
+
+ @override
UriKind get uriKind => UriKind.PACKAGE_URI;
@override

Powered by Google App Engine
This is Rietveld 408576698