File tree Expand file tree Collapse file tree 5 files changed +47
-2
lines changed Expand file tree Collapse file tree 5 files changed +47
-2
lines changed Original file line number Diff line number Diff line change 1+ import { Type , FIELD } from 'facade/lang' ;
2+ import { Directive } from '../annotations/directive'
3+
4+ export class AnnotatedType {
5+ constructor ( annotation :Directive , type :Type ) {
6+ this . annotation = annotation ;
7+ this . type = type ;
8+ }
9+ }
Original file line number Diff line number Diff line change 1+ import { Type } from 'facade/lang' ;
2+ import { Directive } from '../annotations/directive'
3+
4+ /**
5+ * Interface representing a way of extracting [Directive] annotations from
6+ * [Type]. This interface has three native implementations:
7+ *
8+ * 1) JavaScript native implementation
9+ * 2) Dart reflective implementation
10+ * 3) Dart transformer generated implementation
11+ */
12+ export class AnnotationsExtractor {
13+ extract ( type :Type ) :Directive {
14+ return null ;
15+ }
16+ }
Original file line number Diff line number Diff line change 1+ import { Set } from 'facade/lang' ;
2+ //import {AnnotatedType} from './annotated_type';
3+
4+ export class Selector {
5+ constructor ( directives :Set < AnnotatedType > ) {
6+ this . directives = directives ;
7+ }
8+
9+ /**
10+ * When presented with an element description it will return the current set of
11+ * directives which are present on the element.
12+ *
13+ * @param elementName Name of the element
14+ * @param attributes Attributes on the Element.
15+ */
16+ visitElement ( elementName :String , attributes :Map < string , string > ) :List < AnnotatedType > {
17+ return null ;
18+ }
19+ }
Original file line number Diff line number Diff line change 11library facade.collection;
22
33import 'dart:collection' show HashMap;
4- export 'dart:collection' show Map;
5- export 'dart:core' show List;
4+ export 'dart:core' show Map, List, Set;
65
76class MapWrapper {
87 static HashMap create () => new HashMap ();
Original file line number Diff line number Diff line change 11export var List = window . Array ;
22export var Map = window . Map ;
3+ export var Set = window . Set ;
4+
35export class MapWrapper {
46 static create ( ) :HashMap { return new HashMap ( ) ; }
57 static get ( m , k ) { return m [ k ] ; }
You can’t perform that action at this time.
0 commit comments