| Index: pkg/analyzer/lib/src/generated/source_io.dart
|
| diff --git a/pkg/analyzer/lib/src/generated/source_io.dart b/pkg/analyzer/lib/src/generated/source_io.dart
|
| index b5f02e82e564224d1a87657364d4da99cc196048..b7ec971bd2bb3445f924400449e8c9876d238732 100644
|
| --- a/pkg/analyzer/lib/src/generated/source_io.dart
|
| +++ b/pkg/analyzer/lib/src/generated/source_io.dart
|
| @@ -94,6 +94,11 @@ class FileBasedSource implements Source {
|
| final JavaFile file;
|
|
|
| /**
|
| + * The cached absolute path of this source.
|
| + */
|
| + String _absolutePath;
|
| +
|
| + /**
|
| * The cached encoding for this source.
|
| */
|
| String _encoding;
|
| @@ -138,7 +143,12 @@ class FileBasedSource implements Source {
|
| }
|
|
|
| @override
|
| - String get fullName => file.getAbsolutePath();
|
| + String get fullName {
|
| + if (_absolutePath == null) {
|
| + _absolutePath = file.getAbsolutePath();
|
| + }
|
| + return _absolutePath;
|
| + }
|
|
|
| @override
|
| int get modificationStamp => file.lastModified();
|
|
|