fix(analyzer): fix a warning about an unused variable

This commit is contained in:
Victor Berchet 2014-12-11 00:30:21 +01:00
parent 3ec3d5e084
commit 59d6d604b4
3 changed files with 5 additions and 1 deletions

View File

@ -31,7 +31,7 @@ export class ContextWithVariableBindings {
}
clearValues() {
for (var [k, v] of MapWrapper.iterable(this.varBindings)) {
for (var k of MapWrapper.keys(this.varBindings)) {
MapWrapper.set(this.varBindings, k, null);
}
}

View File

@ -50,6 +50,8 @@ class MapWrapper {
static void delete(m, k) { m.remove(k); }
static void clear(m) { m.clear(); }
static Iterable iterable(m) { return new IterableMap(m); }
static Iterable keys(m) { return m.keys; }
static Iterable values(m) { return m.values; }
}
// TODO: how to export StringMap=Map as a type?

View File

@ -25,6 +25,8 @@ export class MapWrapper {
static delete(m, k) { m.delete(k); }
static clear(m) { m.clear(); }
static iterable(m) { return m; }
static keys(m) { return m.keys(); }
static values(m) { return m.values(); }
}
// TODO: cannot export StringMap as a type as Dart does not support renaming types...