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

Unified Diff: pkg/analyzer/test/generated/test_support.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/test/generated/test_support.dart
diff --git a/pkg/analyzer/test/generated/test_support.dart b/pkg/analyzer/test/generated/test_support.dart
index ce0b3f0af6ee8fe840f397c95103f2938d675e46..06f47e59679575e6c8cb194fea92fdf6c0942482 100644
--- a/pkg/analyzer/test/generated/test_support.dart
+++ b/pkg/analyzer/test/generated/test_support.dart
@@ -18,6 +18,7 @@ import 'package:analyzer/src/generated/java_engine.dart';
import 'package:analyzer/src/generated/source.dart';
import 'package:plugin/manager.dart';
import 'package:plugin/plugin.dart';
+import 'package:source_span/source_span.dart' as source_span;
import 'package:test/test.dart';
import 'analysis_context_factory.dart';
@@ -544,6 +545,8 @@ class TestSource extends Source {
int _modificationStamp = 0;
bool exists2 = true;
+ source_span.SourceFile _sourceFile;
+
/**
* A flag indicating whether an exception should be generated when an attempt
* is made to access the contents of this source.
@@ -586,6 +589,10 @@ class TestSource extends Source {
return _name;
}
+ @override
+ source_span.SourceFile get sourceFile =>
+ _sourceFile ??= new source_span.SourceFile(_contents, url: uri);
+
Uri get uri => new Uri.file(_name);
UriKind get uriKind {

Powered by Google App Engine
This is Rietveld 408576698