Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(223)

Unified Diff: third_party/pkg/angular/lib/core/registry_static.dart

Issue 257423008: Update all Angular libs (run update_all.sh). (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/pkg/angular/lib/core/registry_dynamic.dart ('k') | third_party/pkg/angular/lib/core/scope.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/pkg/angular/lib/core/registry_static.dart
diff --git a/third_party/pkg/angular/lib/core/registry_static.dart b/third_party/pkg/angular/lib/core/registry_static.dart
new file mode 100644
index 0000000000000000000000000000000000000000..fcb287b13e357ac6f3b5d8ea055ab08b6136df67
--- /dev/null
+++ b/third_party/pkg/angular/lib/core/registry_static.dart
@@ -0,0 +1,17 @@
+library angular.core_static;
+
+import 'package:angular/core/annotation_src.dart' show Injectable;
+import 'package:angular/core/registry.dart';
+
+@Injectable()
+class StaticMetadataExtractor extends MetadataExtractor {
+ final Map<Type, Iterable> metadataMap;
+ final List empty = const [];
+
+ StaticMetadataExtractor(this.metadataMap);
+
+ Iterable call(Type type) {
+ Iterable i = metadataMap[type];
+ return i == null ? empty : i;
+ }
+}
« no previous file with comments | « third_party/pkg/angular/lib/core/registry_dynamic.dart ('k') | third_party/pkg/angular/lib/core/scope.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698