| Index: pkg/analyzer/lib/src/generated/source.dart
|
| ===================================================================
|
| --- pkg/analyzer/lib/src/generated/source.dart (revision 43154)
|
| +++ pkg/analyzer/lib/src/generated/source.dart (working copy)
|
| @@ -10,6 +10,9 @@
|
| import "dart:math" as math;
|
| import 'dart:collection';
|
|
|
| +import 'package:analyzer/file_system/file_system.dart';
|
| +import 'package:analyzer/source/package_map_resolver.dart';
|
| +
|
| import 'engine.dart';
|
| import 'java_core.dart';
|
| import 'java_engine.dart';
|
| @@ -595,6 +598,14 @@
|
| this._localSourcePredicate = localSourcePredicate;
|
| }
|
|
|
| + /// A table mapping package names to paths of directories containing
|
| + /// the package (or [null] if there is no registered package URI resolver).
|
| + Map<String, List<Folder>> get packageMap {
|
| + PackageMapUriResolver resolver =
|
| + _resolvers.firstWhere((r) => r is PackageMapUriResolver, orElse: null);
|
| + return resolver != null ? resolver.packageMap : null;
|
| + }
|
| +
|
| /**
|
| * Return a source object representing the given absolute URI, or `null` if the URI is not a
|
| * valid URI or if it is not an absolute URI.
|
|
|