| 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>[];
|
| + }
|
| + }
|
| +}
|
| +
|
|
|