Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(29)

Side by Side Diff: runtime/observatory/lib/src/elements/class_view.dart

Issue 2999763002: Clear analyzer warning on Observatory (Closed)
Patch Set: Created 3 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 library class_view_element; 5 library class_view_element;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 import 'dart:html'; 8 import 'dart:html';
9 import 'package:observatory/models.dart' as M; 9 import 'package:observatory/models.dart' as M;
10 import 'package:observatory/src/elements/class_allocation_profile.dart'; 10 import 'package:observatory/src/elements/class_allocation_profile.dart';
(...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after
265 ..onClick.listen((e) async { 265 ..onClick.listen((e) async {
266 e.target.disabled = true; 266 e.target.disabled = true;
267 await _profiles.enable(_isolate, _cls); 267 await _profiles.enable(_isolate, _cls);
268 _refresh(); 268 _refresh();
269 }) 269 })
270 ] 270 ]
271 ], 271 ],
272 new DivElement() 272 new DivElement()
273 ..children = _loadProfile 273 ..children = _loadProfile
274 ? [ 274 ? [
275 new ClassAllocationProfileElement(_isolate, _cls, _profiles, 275 new ClassAllocationProfileElement(
276 _vm, _isolate, _cls, _profiles,
276 queue: _r.queue) 277 queue: _r.queue)
277 ] 278 ]
278 : const [], 279 : const [],
279 new DivElement() 280 new DivElement()
280 ..children = _cls.location != null 281 ..children = _cls.location != null
281 ? [ 282 ? [
282 new HRElement(), 283 new HRElement(),
283 new SourceInsetElement( 284 new SourceInsetElement(
284 _isolate, _cls.location, _scripts, _objects, _events, 285 _isolate, _cls.location, _scripts, _objects, _events,
285 queue: _r.queue) 286 queue: _r.queue)
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after
501 await _loadAdditionalData(); 502 await _loadAdditionalData();
502 _r.dirty(); 503 _r.dirty();
503 } 504 }
504 505
505 Future _loadAdditionalData() async { 506 Future _loadAdditionalData() async {
506 _classFields = 507 _classFields =
507 await Future.wait(_cls.fields.map((f) => _fields.get(_isolate, f.id))); 508 await Future.wait(_cls.fields.map((f) => _fields.get(_isolate, f.id)));
508 _r.dirty(); 509 _r.dirty();
509 } 510 }
510 } 511 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698