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

Unified Diff: third_party/pkg/angular/lib/tools/common.dart

Issue 124053002: Adding Angular and dependent packages for testing (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 12 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
Index: third_party/pkg/angular/lib/tools/common.dart
diff --git a/third_party/pkg/angular/lib/tools/common.dart b/third_party/pkg/angular/lib/tools/common.dart
new file mode 100644
index 0000000000000000000000000000000000000000..a6eb482b5f0e9ec9fa564e65c2b8f4f36ad8a834
--- /dev/null
+++ b/third_party/pkg/angular/lib/tools/common.dart
@@ -0,0 +1,44 @@
+library angular.tools.common;
+
+class DirectiveInfo {
+ String selector;
+ String template;
+ List<String> expressionAttrs = <String>[];
+ List<String> expressions = <String>[];
+ DirectiveInfo([this.selector, this.expressionAttrs, this.expressions]) {
+ if (expressionAttrs == null) {
+ expressionAttrs = <String>[];
+ }
+ if (expressions == null) {
+ expressions = <String>[];
+ }
+ }
+}
+
+const String DIRECTIVE = 'DIRECTIVE';
+const String COMPONENT = 'COMPONENT';
+
+class DirectiveMetadata {
+ String className;
+ String type; // DIRECTIVE/COMPONENT
+ String selector;
+ String template;
+ Map<String, String> attributeMappings;
+ List<String> exportExpressionAttrs;
+ List<String> exportExpressions;
+
+ DirectiveMetadata([this.className, this.type, this.selector,
+ this.attributeMappings, this.exportExpressionAttrs,
+ this.exportExpressions]) {
+ if (attributeMappings == null) {
+ attributeMappings = <String, String>{};
+ }
+ if (exportExpressions == null) {
+ exportExpressions = <String>[];
+ }
+ if (exportExpressionAttrs == null) {
+ exportExpressionAttrs = <String>[];
+ }
+ }
+}
+

Powered by Google App Engine
This is Rietveld 408576698