fix(analyzer): fix a warning about an unused variable
This commit is contained in:
parent
3ec3d5e084
commit
59d6d604b4
|
@ -31,7 +31,7 @@ export class ContextWithVariableBindings {
|
||||||
}
|
}
|
||||||
|
|
||||||
clearValues() {
|
clearValues() {
|
||||||
for (var [k, v] of MapWrapper.iterable(this.varBindings)) {
|
for (var k of MapWrapper.keys(this.varBindings)) {
|
||||||
MapWrapper.set(this.varBindings, k, null);
|
MapWrapper.set(this.varBindings, k, null);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -50,6 +50,8 @@ class MapWrapper {
|
||||||
static void delete(m, k) { m.remove(k); }
|
static void delete(m, k) { m.remove(k); }
|
||||||
static void clear(m) { m.clear(); }
|
static void clear(m) { m.clear(); }
|
||||||
static Iterable iterable(m) { return new IterableMap(m); }
|
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?
|
// TODO: how to export StringMap=Map as a type?
|
||||||
|
|
|
@ -25,6 +25,8 @@ export class MapWrapper {
|
||||||
static delete(m, k) { m.delete(k); }
|
static delete(m, k) { m.delete(k); }
|
||||||
static clear(m) { m.clear(); }
|
static clear(m) { m.clear(); }
|
||||||
static iterable(m) { return m; }
|
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...
|
// TODO: cannot export StringMap as a type as Dart does not support renaming types...
|
||||||
|
|
Loading…
Reference in New Issue