Skip to content

Commit 59d6d60

Browse files
committed
fix(analyzer): fix a warning about an unused variable
1 parent 3ec3d5e commit 59d6d60

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

modules/change_detection/src/parser/context_with_variable_bindings.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export class ContextWithVariableBindings {
3131
}
3232

3333
clearValues() {
34-
for (var [k, v] of MapWrapper.iterable(this.varBindings)) {
34+
for (var k of MapWrapper.keys(this.varBindings)) {
3535
MapWrapper.set(this.varBindings, k, null);
3636
}
3737
}

modules/facade/src/collection.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@ class MapWrapper {
5050
static void delete(m, k) { m.remove(k); }
5151
static void clear(m) { m.clear(); }
5252
static Iterable iterable(m) { return new IterableMap(m); }
53+
static Iterable keys(m) { return m.keys; }
54+
static Iterable values(m) { return m.values; }
5355
}
5456

5557
// TODO: how to export StringMap=Map as a type?

modules/facade/src/collection.es6

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ export class MapWrapper {
2525
static delete(m, k) { m.delete(k); }
2626
static clear(m) { m.clear(); }
2727
static iterable(m) { return m; }
28+
static keys(m) { return m.keys(); }
29+
static values(m) { return m.values(); }
2830
}
2931

3032
// TODO: cannot export StringMap as a type as Dart does not support renaming types...

0 commit comments

Comments
 (0)