OLD | NEW |
1 library test; | 1 library test; |
2 | 2 |
3 import 'dart:js'; | 3 import 'dart:js'; |
4 | 4 |
5 typedef void Callback({int i}); | 5 typedef void Callback({int i}); |
6 | 6 |
7 class A {} | 7 class A {} |
8 class _A {} | 8 class _A {} |
9 class B<T> {} | 9 class B<T> {} |
10 class _B<T> {} | 10 class _B<T> {} |
11 | 11 |
12 f() {} | 12 f() {} |
13 _f() {} | 13 _f() {} |
14 | 14 |
15 const String constant = "abc"; | 15 const String constant = "abc"; |
16 final String finalConstant = "abc"; | 16 final String finalConstant = "abc"; |
17 final String lazy = (() { | 17 final String lazy = (() { |
18 print('lazy'); | 18 print('lazy'); |
19 return "abc"; | 19 return "abc"; |
20 })(); | 20 })(); |
21 String mutable = "abc"; | 21 String mutable = "abc"; |
22 String lazyMutable = (() { | 22 String lazyMutable = (() { |
23 print('lazyMutable'); | 23 print('lazyMutable'); |
24 return "abc"; | 24 return "abc"; |
25 })(); | 25 })(); |
OLD | NEW |