first chunk of interfaces that are valid via dart analyzer

This commit is contained in:
Misko Hevery
2014-09-19 16:38:37 -07:00
committed by Tobias Bosch
parent 29c20f7a50
commit 8afa421d75
40 changed files with 462 additions and 9 deletions

View File

@ -0,0 +1,6 @@
name: change_detection
environment:
sdk: '>=1.4.0'
dependencies:
dev_dependencies:
unittest: '>=0.10.1 <0.12.0'

View File

@ -0,0 +1,5 @@
export class ChangeDetection {
detectChanges():int {}
}

View File

@ -0,0 +1,3 @@
export class ProtoRecord {
}

View File

@ -0,0 +1,27 @@
export class ProtoWatchGroup {
watch(
expression:String,
context:dynamic,
{isCollection})
{
}
}
/*
@Component(
bind: {
'title': 'title',
'name': 'name'
}
)
class MyComponent implements ChangeListener {
String name;
String title;
onChange(List<Record> changes) {
}
}
*/

View File

@ -0,0 +1,3 @@
export class Record {
}

View File

@ -0,0 +1,4 @@
export class WatchGroup {
@FIELD('final dispatcher:WatchGroupDispatcher')
constructor() {}
}

View File

@ -0,0 +1,4 @@
export class WatchGroupDispatcher {
notify(record:Record, context) {}
}