| Index: third_party/pkg/angular/lib/core/formatter.dart
|
| diff --git a/third_party/pkg/angular/lib/core/formatter.dart b/third_party/pkg/angular/lib/core/formatter.dart
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..1762c28a623354f07f0477fbc7af7bc0d47771c6
|
| --- /dev/null
|
| +++ b/third_party/pkg/angular/lib/core/formatter.dart
|
| @@ -0,0 +1,20 @@
|
| +part of angular.core_internal;
|
| +
|
| +
|
| +/**
|
| + * Registry of formatters at runtime.
|
| + */
|
| +@Injectable()
|
| +class FormatterMap extends AnnotationMap<Formatter> {
|
| + Injector _injector;
|
| + FormatterMap(Injector injector, MetadataExtractor extractMetadata)
|
| + : this._injector = injector,
|
| + super(injector, extractMetadata);
|
| +
|
| + call(String name) {
|
| + var filter = new Formatter(name: name);
|
| + var filterType = this[filter];
|
| + return _injector.get(filterType);
|
| + }
|
| +}
|
| +
|
|
|