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

Side by Side Diff: runtime/lib/timer_impl.dart

Issue 2708663002: Fix more lint style issues in runtime patches. (Closed)
Patch Set: Created 3 years, 10 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
« no previous file with comments | « runtime/lib/symbol_patch.dart ('k') | runtime/lib/timer_patch.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 import 'dart:_internal' hide Symbol;
6
5 // Timer heap implemented as a array-based binary heap[0]. 7 // Timer heap implemented as a array-based binary heap[0].
6 // This allows for O(1) `first`, O(log(n)) `remove`/`removeFirst` and O(log(n)) 8 // This allows for O(1) `first`, O(log(n)) `remove`/`removeFirst` and O(log(n))
7 // `add`. 9 // `add`.
8 // 10 //
9 // To ensure the timers are ordered by insertion time, the _Timer class has a 11 // To ensure the timers are ordered by insertion time, the _Timer class has a
10 // `_id` field set when added to the heap. 12 // `_id` field set when added to the heap.
11 // 13 //
12 // [0] http://en.wikipedia.org/wiki/Binary_heap 14 // [0] http://en.wikipedia.org/wiki/Binary_heap
13 class _TimerHeap { 15 class _TimerHeap {
14 List<_Timer> _list; 16 List<_Timer> _list;
(...skipping 448 matching lines...) Expand 10 before | Expand all | Expand 10 after
463 return new _Timer.periodic(milliSeconds, callback); 465 return new _Timer.periodic(milliSeconds, callback);
464 } 466 }
465 return new _Timer(milliSeconds, callback); 467 return new _Timer(milliSeconds, callback);
466 } 468 }
467 } 469 }
468 470
469 471
470 _setupHooks() { 472 _setupHooks() {
471 VMLibraryHooks.timerFactory = _Timer._factory; 473 VMLibraryHooks.timerFactory = _Timer._factory;
472 } 474 }
OLDNEW
« no previous file with comments | « runtime/lib/symbol_patch.dart ('k') | runtime/lib/timer_patch.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698