File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -235,15 +235,15 @@ class WatchGroup implements _EvalWatchList, _WatchGroupList {
235
235
}
236
236
237
237
// Convert the args from AST to WatchRecords
238
- Iterable < WatchRecord < _Handler >> records = argsAST.map ((ast) =>
239
- _cache. putIfAbsent ( ast.expression, () => ast. setupWatch ( this ))) ;
240
- int i = 0 ;
241
- records. forEach (( WatchRecord < _Handler > record) {
242
- _ArgHandler handler = new _PositionalArgHandler (this , evalWatchRecord, i++ );
238
+ for ( var i = 0 ; i < argsAST.length; i ++ ) {
239
+ var ast = argsAST[i] ;
240
+ WatchRecord < _Handler > record =
241
+ _cache. putIfAbsent (ast.expression, () => ast. setupWatch ( this ));
242
+ _ArgHandler handler = new _PositionalArgHandler (this , evalWatchRecord, i);
243
243
_ArgHandlerList ._add (invokeHandler, handler);
244
244
record.handler.addForwardHandler (handler);
245
245
handler.acceptValue (record.currentValue);
246
- });
246
+ }
247
247
248
248
namedArgsAST.forEach ((Symbol name, AST ast) {
249
249
WatchRecord <_Handler > record = _cache.putIfAbsent (ast.expression,
You can’t perform that action at this time.
0 commit comments