feat(compiler): added support for host actions

This commit is contained in:
vsavkin
2015-05-11 12:31:16 -07:00
parent a9ce0f7afb
commit f9c1de46b3
22 changed files with 330 additions and 17 deletions
@@ -82,6 +82,9 @@ class StringMapWrapper {
}
return m;
}
static List<String> keys(Map<String,dynamic> a) {
return a.keys.toList();
}
static bool isEmpty(Map m) => m.isEmpty;
}
@@ -53,6 +53,7 @@ export class StringMapWrapper {
static contains(map, key) { return map.hasOwnProperty(key); }
static get(map, key) { return map.hasOwnProperty(key) ? map[key] : undefined; }
static set(map, key, value) { map[key] = value; }
static keys(map) { return Object.keys(map); }
static isEmpty(map) {
for (var prop in map) {
return false;