| OLD | NEW |
| 1 // Copyright (c) 2015, the Fletch project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, the Dartino 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.md file. | 3 // BSD-style license that can be found in the LICENSE.md file. |
| 4 | 4 |
| 5 import 'dart/performance_service.dart'; | 5 import 'dart/performance_service.dart'; |
| 6 | 6 |
| 7 class PerformanceServiceImpl implements PerformanceService { | 7 class PerformanceServiceImpl implements PerformanceService { |
| 8 int echo(int n) => n; | 8 int echo(int n) => n; |
| 9 | 9 |
| 10 int countTreeNodes(TreeNode node) { | 10 int countTreeNodes(TreeNode node) { |
| 11 int sum = 1; | 11 int sum = 1; |
| (...skipping 13 matching lines...) Expand all Loading... |
| 25 } | 25 } |
| 26 } | 26 } |
| 27 | 27 |
| 28 main() { | 28 main() { |
| 29 var impl = new PerformanceServiceImpl(); | 29 var impl = new PerformanceServiceImpl(); |
| 30 PerformanceService.initialize(impl); | 30 PerformanceService.initialize(impl); |
| 31 while (PerformanceService.hasNextEvent()) { | 31 while (PerformanceService.hasNextEvent()) { |
| 32 PerformanceService.handleNextEvent(); | 32 PerformanceService.handleNextEvent(); |
| 33 } | 33 } |
| 34 } | 34 } |
| OLD | NEW |