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 { |