| Index: lib/src/initializer.dart
|
| diff --git a/lib/src/initializer.dart b/lib/src/initializer.dart
|
| index 3ddf0cced6a096aa7f56344084a1b042b88542ec..60a04d51dbdadedbaccd6e1d93cec7a06142d03b 100644
|
| --- a/lib/src/initializer.dart
|
| +++ b/lib/src/initializer.dart
|
| @@ -26,3 +26,23 @@ abstract class Initializer<T> {
|
|
|
| /// Typedef for a custom filter function.
|
| typedef bool InitializerFilter(Initializer initializer);
|
| +
|
| +/// When annotating libraries, this is passed to the initializer.
|
| +class LibraryIdentifier {
|
| + // The qualified name of the library.
|
| + final Symbol name;
|
| +
|
| + // The package this library lives in. May be null if its the same as the root
|
| + // package.
|
| + final String package;
|
| +
|
| + // The path to the library.
|
| + final String path;
|
| +
|
| + const LibraryIdentifier(this.name, this.package, this.path);
|
| +
|
| + bool operator ==(LibraryIdentifier other) =>
|
| + name == other.name && package == other.package && path == other.path;
|
| +
|
| + String toString() => '$name: $package:$path';
|
| +}
|
|
|