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

Side by Side 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, 11 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 library angular.tools.common;
2
3 class DirectiveInfo {
4 String selector;
5 String template;
6 List<String> expressionAttrs = <String>[];
7 List<String> expressions = <String>[];
8 DirectiveInfo([this.selector, this.expressionAttrs, this.expressions]) {
9 if (expressionAttrs == null) {
10 expressionAttrs = <String>[];
11 }
12 if (expressions == null) {
13 expressions = <String>[];
14 }
15 }
16 }
17
18 const String DIRECTIVE = 'DIRECTIVE';
19 const String COMPONENT = 'COMPONENT';
20
21 class DirectiveMetadata {
22 String className;
23 String type; // DIRECTIVE/COMPONENT
24 String selector;
25 String template;
26 Map<String, String> attributeMappings;
27 List<String> exportExpressionAttrs;
28 List<String> exportExpressions;
29
30 DirectiveMetadata([this.className, this.type, this.selector,
31 this.attributeMappings, this.exportExpressionAttrs,
32 this.exportExpressions]) {
33 if (attributeMappings == null) {
34 attributeMappings = <String, String>{};
35 }
36 if (exportExpressions == null) {
37 exportExpressions = <String>[];
38 }
39 if (exportExpressionAttrs == null) {
40 exportExpressionAttrs = <String>[];
41 }
42 }
43 }
44
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698