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 // FletchDebuggerCommands=b breakHere,r,bt,f 5,restart,bt,f 11,restart,bt,d 0,f 3,restart | 5 // FletchDebuggerCommands=b breakHere,r,bt,f 5,restart,bt,f 11,restart,bt,d 0,f 3,restart |
6 | 6 |
7 void breakHere() {} | 7 void breakHere() {} |
8 | 8 |
9 void foo(int i) { | 9 void foo(int i) { |
10 print(i); | 10 print(i); |
11 if (i == 0) { | 11 if (i == 0) { |
12 breakHere(); | 12 breakHere(); |
13 } else if (i > 5) { | 13 } else if (i > 5) { |
14 var local = i + 1; | 14 var local = i + 1; |
15 foo(i - 1); | 15 foo(i - 1); |
16 } else if (i > 3) { | 16 } else if (i > 3) { |
17 var local = i + 1; | 17 var local = i + 1; |
18 var local2 = i + 2; | 18 var local2 = i + 2; |
19 foo(i - 1); | 19 foo(i - 1); |
20 } else { | 20 } else { |
21 foo(i - 1); | 21 foo(i - 1); |
22 } | 22 } |
23 } | 23 } |
24 | 24 |
25 void main() { | 25 void main() { |
26 foo(10); | 26 foo(10); |
27 } | 27 } |
OLD | NEW |