2018-08-21 14:48:08 +00:00
|
|
|
library angel_container;
|
|
|
|
|
2018-07-10 18:18:10 +00:00
|
|
|
export 'src/container.dart';
|
2018-08-21 14:48:08 +00:00
|
|
|
export 'src/empty/empty.dart';
|
2018-11-08 16:39:20 +00:00
|
|
|
export 'src/static/static.dart';
|
2018-07-10 18:18:10 +00:00
|
|
|
export 'src/exception.dart';
|
2018-08-21 13:37:52 +00:00
|
|
|
export 'src/reflector.dart';
|
2018-08-21 14:48:08 +00:00
|
|
|
|
|
|
|
/// An annotation used by `package:angel_container_generator` to generate reflection metadata for types chosen by the user.
|
|
|
|
///
|
|
|
|
/// When attached to a library, it generates a class that implements the `Reflector` interface.
|
|
|
|
///
|
|
|
|
/// When attached to a class, it can be used to customize the output of the generator.
|
|
|
|
class GenerateReflector {
|
|
|
|
/// The list of types that should have reflection metadata generated for them.
|
|
|
|
final List<Type> types;
|
|
|
|
|
|
|
|
/// The list of top-level functions that should have reflection metadata generated for them.
|
|
|
|
final List<Function> functions;
|
|
|
|
|
|
|
|
/// The list of symbols within this class that should have reflection metadata generated for them.
|
|
|
|
///
|
|
|
|
/// If omitted, then all symbols will be included.
|
|
|
|
final List<Symbol> symbols;
|
|
|
|
|
|
|
|
/// An explicit name for the generated reflector.
|
|
|
|
///
|
|
|
|
/// By default, a class with the library's name in PascalCase is created,
|
|
|
|
/// with the text "Reflector" appended.
|
|
|
|
///
|
|
|
|
/// Ex. `my_cool_library` becomes `const MyCoolLibraryReflector()`.
|
|
|
|
final String name;
|
|
|
|
|
|
|
|
const GenerateReflector(
|
|
|
|
{this.types: const <Type>[],
|
|
|
|
this.functions: const <Function>[],
|
|
|
|
this.symbols: const <Symbol>[],
|
|
|
|
this.name});
|
|
|
|
}
|